@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');

:root {
    /* Color Palette */
    --bg-primary: #0b0c10;
    --bg-secondary: #1f2833;
    --bg-tertiary: #121820;
    --bg-glass: rgba(31, 40, 51, 0.45);
    
    --accent-primary: #66fcf1;
    --accent-secondary: #45f3e5;
    --accent-glow: rgba(102, 252, 241, 0.15);
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    
    --text-main: #c5c6c7;
    --text-light: #ffffff;
    --text-muted: #8b949e;
    
    --border-color: rgba(102, 252, 241, 0.1);
    --border-glass: rgba(255, 255, 255, 0.05);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(102, 252, 241, 0.25);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(102, 252, 241, 0.12) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-weight: 700;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--text-light);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Glassmorphism Container */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(102, 252, 241, 0.2);
    box-shadow: var(--shadow-md), 0 0 15px rgba(102, 252, 241, 0.05);
}

/* Header & Navigation */
.glass-navbar {
    background: rgba(11, 12, 16, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 8px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(102, 252, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 252, 241, 0.4), var(--shadow-glow);
    color: #000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: var(--text-light);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* Auth Pages Layout */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.15);
}

/* Dashboard Layout */
.dashboard-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(102, 252, 241, 0.08);
    color: var(--accent-primary);
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(102, 252, 241, 0.1);
    color: var(--accent-primary);
    font-size: 24px;
}

.stat-info h4 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-info p {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-light);
    font-family: var(--font-heading);
}

/* Plan Cards */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.plan-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.plan-card.popular {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent-primary);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 30px;
    transform: rotate(45deg);
}

.plan-header {
    margin-bottom: 20px;
}

.plan-name {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.plan-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-light);
    font-family: var(--font-heading);
}

.plan-price span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.plan-feature::before {
    content: "✓";
    color: var(--accent-primary);
    font-weight: 700;
}

/* Tables styling */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    text-align: left;
}

.custom-table th {
    padding: 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
}

.custom-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-main);
    font-size: 14px;
}

.custom-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-primary {
    background: rgba(102, 252, 241, 0.15);
    color: var(--accent-primary);
}

/* Embed codes copy-box */
.code-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 14px;
    font-family: monospace;
    font-size: 13px;
    color: var(--accent-primary);
    position: relative;
    overflow-x: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 11px;
    font-family: var(--font-heading);
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--accent-primary);
    color: #000;
}

/* Custom Alert Banner */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Upload Area */
.upload-dropzone {
    border: 2px dashed rgba(102, 252, 241, 0.3);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.upload-dropzone:hover {
    border-color: var(--accent-primary);
    background: rgba(102, 252, 241, 0.04);
}

.upload-dropzone input[type="file"] {
    display: none;
}

/* Video Player container */
.video-player-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border: 1px solid var(--border-glass);
    background: #000;
}

.video-player-container video {
    width: 100%;
    display: block;
}

/* Embed Layout */
.embed-layout {
    background: #000;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.embed-layout video {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
}

/* Utilities */
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-10 { margin-top: 10px; }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-10 { gap: 10px; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Navbar */
    .navbar {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links .btn {
        width: 100%;
        margin-top: 5px;
    }

    /* Dashboard Header */
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    /* Video Player */
    .video-player-container {
        max-width: 100%;
    }

    /* Dashboard Stats & Forms */
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        display: flex;
        flex-direction: column;
    }
    
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .sidebar-link {
        white-space: nowrap;
        font-size: 14px;
        padding: 10px 12px;
    }
}
