/* Time2Party - Fixed CSS with NO ERRORS */
/* Viga font for headings, vibrant purple theme */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Viga&display=swap');

/* CSS Variables */
:root {
    /* Main Colors - Vibrant purple */
    --primary-purple: #A020F0;
    --dark-purple: #6B1FB0;
    --neon-purple: #B030FF;
    --neon-pink: #FF1493;
    --electric-purple: #8A2BE2;
    
    /* Accents */
    --gold: #FFD700;
    --dark-gold: #CC9900;
    --orange: #FF8C00;
    --cyan: #00FFFF;
    --neon-blue: #4169E1;
    
    /* Backgrounds */
    --bg-black: #000000;
    --bg-dark: #0a0a0a;
    --bg-purple-dark: #1a0a1a;
    
    /* Text */
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --text-muted: #999999;
    
    /* Borders */
    --border-neon: #B030FF;
    --border-purple: #A020F0;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 16px;
}

/* Headings - VIGA Font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Viga', sans-serif;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-white);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--gold);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-purple);
}

/* Links */
a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--cyan);
}

/* Neon Effects */
.neon-glow {
    filter: drop-shadow(0 0 10px var(--neon-purple)) drop-shadow(0 0 20px var(--neon-purple));
}

.neon-border {
    border: 2px solid var(--border-neon);
    box-shadow: 0 0 10px var(--border-neon), inset 0 0 10px rgba(176, 48, 255, 0.2);
}

/* HEADER */
.site-header {
    background: var(--bg-black);
    padding: 30px 0 20px 0;
    border-bottom: 3px solid var(--primary-purple);
    box-shadow: 0 5px 20px rgba(160, 32, 240, 0.4);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* LOGO */
.logo {
    font-family: 'Viga', sans-serif;
    font-size: 4.5em;
    font-weight: 400;
    color: var(--primary-purple);
    margin-bottom: 10px;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 15px rgba(160, 32, 240, 0.8)) drop-shadow(0 0 25px rgba(160, 32, 240, 0.6));
}

.logo span {
    color: var(--gold);
}

/* TAGLINE */
.tagline {
    color: var(--gold);
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    font-style: italic;
    margin-top: 10px;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* NAVIGATION */
.main-nav {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--electric-purple) 100%);
    padding: 0;
    border-bottom: 2px solid var(--neon-purple);
    box-shadow: 0 3px 15px rgba(160, 32, 240, 0.4);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    padding: 18px 30px;
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-family: 'Poppins', sans-serif;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan);
    border-bottom-color: var(--cyan);
    transform: translateY(-2px);
}

/* CONTAINER */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* PANELS */
.panel {
    background: rgba(20, 10, 30, 0.8);
    border: 2px solid var(--primary-purple);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(160, 32, 240, 0.3);
    backdrop-filter: blur(10px);
}

.panel-header {
    font-size: 1.8em;
    font-weight: 400;
    font-family: 'Viga', sans-serif;
    color: var(--gold);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-purple);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.panel-body {
    color: var(--text-gray);
    line-height: 1.8;
}

/* FORMS */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(160, 32, 240, 0.1);
    border: 2px solid var(--primary-purple);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    background: rgba(160, 32, 240, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--electric-purple) 100%);
    color: var(--text-white);
    border: 2px solid var(--neon-purple);
    box-shadow: 0 4px 15px rgba(160, 32, 240, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(160, 32, 240, 0.8);
    border-color: var(--cyan);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--cyan) 100%);
    color: var(--text-white);
    border: 2px solid var(--cyan);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(65, 105, 225, 0.8);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
    color: var(--bg-black);
    border: 2px solid var(--gold);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
}

.btn-danger {
    background: linear-gradient(135deg, #FF0066 0%, #CC0044 100%);
    color: var(--text-white);
    border: 2px solid #FF0066;
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 0, 102, 0.8);
}

.btn-success {
    background: linear-gradient(135deg, #00FF88 0%, #00CC66 100%);
    color: var(--bg-black);
    border: 2px solid #00FF88;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.8);
}

/* ALERTS */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
    font-family: 'Poppins', sans-serif;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00FF88;
    color: #00FF88;
}

.alert-error {
    background: rgba(255, 0, 102, 0.1);
    border-color: #FF0066;
    color: #FF6699;
}

.alert-warning {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.alert-info {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--cyan);
    color: var(--cyan);
}

/* TABLES */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 2px solid var(--primary-purple);
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    color: var(--text-white);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(160, 32, 240, 0.2);
    color: var(--text-gray);
}

tr:hover {
    background: rgba(160, 32, 240, 0.1);
}

tr:last-child td {
    border-bottom: none;
}

/* STATS SECTION - DASHBOARD GRID (Used in index.php) */
.dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.dash-card {
    flex: 1 1 calc(25% - 20px);
    min-width: 220px;
    background: linear-gradient(135deg, rgba(160, 32, 240, 0.2) 0%, rgba(65, 105, 225, 0.2) 100%);
    border: 2px solid var(--primary-purple);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(160, 32, 240, 0.3);
}

.dash-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(160, 32, 240, 0.6);
    border-color: var(--cyan);
}

.dash-card-title {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    font-weight: 500;
}

.dash-card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    margin-bottom: 10px;
    font-family: 'Viga', sans-serif;
}

.dash-card-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ALTERNATIVE STATS LAYOUT */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(20, 10, 30, 0.6);
    border: 2px solid var(--primary-purple);
    border-radius: 12px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(160, 32, 240, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stats-row:hover {
    background: rgba(160, 32, 240, 0.2);
    transform: translateX(5px);
}

.stats-label {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* GRID LAYOUT FOR FEATURES */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.feature-box {
    flex: 1 1 calc(25% - 20px);
    min-width: 250px;
    background: linear-gradient(135deg, rgba(160, 32, 240, 0.2) 0%, rgba(65, 105, 225, 0.2) 100%);
    border: 2px solid var(--primary-purple);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(160, 32, 240, 0.6);
    border-color: var(--cyan);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-title {
    font-family: 'Viga', sans-serif;
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-premium {
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
    color: var(--bg-black);
}

.badge-free {
    background: rgba(160, 32, 240, 0.3);
    color: var(--text-white);
    border: 1px solid var(--primary-purple);
}

.badge-active {
    background: rgba(0, 255, 136, 0.2);
    color: #00FF88;
    border: 1px solid #00FF88;
}

.badge-pending {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
    border: 1px solid var(--gold);
}

/* FOOTER */
footer {
    background: linear-gradient(180deg, var(--bg-black) 0%, var(--bg-purple-dark) 100%);
    border-top: 3px solid var(--primary-purple);
    padding: 40px 0 30px 0;
    margin-top: 60px;
    box-shadow: 0 -5px 20px rgba(160, 32, 240, 0.3);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--electric-purple) 100%);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    border: 2px solid var(--neon-purple);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(160, 32, 240, 0.3);
}

.footer-btn:hover {
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--cyan) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(160, 32, 240, 0.6);
    border-color: var(--cyan);
}

.footer-btn:active {
    transform: translateY(-1px);
}

.footer-info {
    margin: 30px 0;
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(160, 32, 240, 0.2);
    border: 2px solid var(--primary-purple);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-purple);
    border-color: var(--cyan);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(160, 32, 240, 0.5);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(160, 32, 240, 0.3);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-copyright {
    color: var(--text-gray);
    margin-bottom: 10px;
}

.footer-love {
    color: var(--gold);
    font-size: 0.85rem;
}

/* Legacy footer classes for compatibility */
.footer-section {
    margin: 20px 0;
}

.footer-section h3 {
    color: var(--primary-purple);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-family: 'Viga', sans-serif;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

/* UTILITIES */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* LOADING SPINNER */
.spinner {
    border: 4px solid rgba(160, 32, 240, 0.3);
    border-top: 4px solid var(--primary-purple);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black);
    border-left: 1px solid var(--primary-purple);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-purple) 0%, var(--electric-purple) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-purple) 0%, var(--cyan) 100%);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5em;
    }
    
    .tagline {
        font-size: 1em;
    }
    
    .nav-container {
        flex-direction: column;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
    
    .dashboard-grid {
        flex-direction: column;
    }
    
    .dash-card {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .features-grid {
        flex-direction: column;
    }
    
    .feature-box {
        flex: 1 1 100%;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .panel {
        padding: 20px;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2em;
    }
    
    .tagline {
        font-size: 0.9em;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .dash-card-value {
        font-size: 2rem;
    }
    
    .footer-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}