/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Core Custom Properties */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #121829;
    --bg-card: rgba(22, 30, 53, 0.65);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --primary-cyan: #06b6d4;
    --primary-purple: #a855f7;
    --primary-pink: #ec4899;
    --glow-cyan: 0 0 15px rgba(6, 182, 212, 0.4);
    --glow-purple: 0 0 15px rgba(168, 85, 247, 0.4);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --sidebar-width: 260px;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.08) 0px, transparent 50%);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #1f293d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2b3a58;
}

a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: var(--primary-purple);
    text-shadow: var(--glow-purple);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card {
    background: rgba(18, 24, 41, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.25);
    box-shadow: 0 8px 24px -4px rgba(6, 182, 212, 0.15);
}

/* Gradient Buttons */
.btn-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}
.btn-gradient:hover {
    transform: scale(1.03);
    box-shadow: var(--glow-purple), var(--glow-cyan);
    color: #fff;
    text-shadow: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-cyan);
    color: var(--text-primary);
    text-shadow: none;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: var(--glow-cyan);
}

/* Header / Navigation */
.main-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
}
.logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}
.logo span {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

/* Main Landing / Hero */
.hero-section {
    padding: 160px 20px 80px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title span {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    position: fixed;
    top: 70px;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sidebar-menu {
    list-style: none;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}
.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-cyan);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.stat-card-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.stat-card-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
}
.stat-card-footer {
    font-size: 0.75rem;
    color: var(--primary-cyan);
    margin-top: 8px;
}

/* Redirection (go.php) */
.redirect-wrapper {
    max-width: 600px;
    margin: 120px auto;
    padding: 40px;
    text-align: center;
}
.countdown-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(6, 182, 212, 0.15);
    border-top: 4px solid var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    animation: rotate 1s linear infinite;
}
.countdown-number {
    animation: none;
    font-size: 2.5rem;
    color: var(--primary-cyan);
    text-shadow: var(--glow-cyan);
    position: absolute;
}
.ad-banner-mock-728 {
    background: rgba(6, 182, 212, 0.05);
    border: 1px dashed var(--primary-cyan);
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    text-align: center;
}
.ad-banner-mock-300 {
    background: rgba(168, 85, 247, 0.05);
    border: 1px dashed var(--primary-purple);
    padding: 20px;
    margin: 30px auto;
    border-radius: 8px;
    max-width: 300px;
    text-align: center;
}

/* Beautiful Data Table */
.data-table-container {
    overflow-x: auto;
    margin-top: 20px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.data-table th {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
}
.data-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.875rem;
    color: var(--text-primary);
}
.data-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-active, .badge-approved {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.badge-rejected, .badge-suspended, .badge-banned {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
}
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}
.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}
.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 32px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    .main-header {
        padding: 0 20px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 0px 6px 20px rgba(37, 211, 102, 0.5);
    color: #FFF !important;
    text-shadow: none;
}

