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

/* --- DESIGN SYSTEM TOKENS --- */
:root {
    --bg-main: #ffffff;
    --bg-surface: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-glow: rgba(124, 58, 237, 0.2);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --primary: #7c3aed; /* Premium Purple */
    --primary-hover: #6d28d9;
    --primary-glow: rgba(124, 58, 237, 0.2);
    
    --secondary: #0284c7; /* Skyblue */
    --secondary-hover: #0369a1;
    --secondary-glow: rgba(2, 132, 199, 0.15);
    
    --accent: #ea580c; /* Orange */
    --accent-yellow: #eab308; /* Yellow */
    --danger: #dc2626; /* Red */
    --success: #16a34a; /* Green */
    
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Outfit', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 0 30px rgba(124, 58, 237, 0.05);
}

/* --- RESET & BASIC STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-type: border-box;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(2, 132, 199, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
    border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- LAYOUT CONTAINERS --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- NAVIGATION BAR --- */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo-title span {
    color: var(--primary);
}

.logo-tagline {
    font-size: 0.52rem;
    letter-spacing: 0.8px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 1px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #0d9488);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(20, 184, 166, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(20, 184, 166, 0.6);
    background: linear-gradient(135deg, var(--secondary-hover), var(--secondary));
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: var(--text-secondary);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

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

/* --- HERO SECTION --- */
.hero {
    padding: 100px 0 60px 0;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

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

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* --- FEATURES GRID --- */
.features {
    padding: 60px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- FORMS & LOGIN CARD --- */
.form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 40px 24px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    padding: 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    border-top: 2px solid var(--primary-glow);
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.15);
}

select.form-control option {
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

/* --- ALERTS --- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

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

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- DASHBOARD LAYOUT --- */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 72px);
}

/* --- SIDEBAR --- */
.sidebar {
    width: 260px;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid var(--border-color);
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-item:hover, .sidebar-item.active {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.06);
}

.sidebar-item.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0.02));
    border-left: 3px solid var(--primary);
    padding-left: 13px; /* account for border width */
}

/* --- CONTENT AREA --- */
.dashboard-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

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

.dashboard-header h1 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
}

.dashboard-header p {
    color: var(--text-secondary);
}

/* --- STATS GRID --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-glow);
}

.stat-info h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card-icon.violet {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
}

.stat-card-icon.teal {
    background: rgba(20, 184, 166, 0.1);
    color: var(--secondary);
}

.stat-card-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-card-icon.amber {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
}

/* --- TABLES & LISTS --- */
.data-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    backdrop-filter: blur(12px);
    margin-bottom: 32px;
}

.data-panel-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th, .table td {
    padding: 14px 16px;
    font-size: 0.95rem;
}

.table th {
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: rgba(15, 23, 42, 0.015);
}

/* --- BADGES --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.badge-present {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

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

.badge-info {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary);
}

/* --- PROFILE GRID FOR STUDENT VIEW --- */
.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.profile-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.profile-details {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.profile-detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.profile-detail-item span:first-child {
    color: var(--text-secondary);
}

.profile-detail-item span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* --- ATTENDANCE CIRCLE PROGRESS --- */
.attendance-circle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.attendance-circle {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--bg-surface) 79%, transparent 80% 100%),
                conic-gradient(var(--secondary) calc(var(--percentage) * 1%), var(--border-color) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow-md);
}

.attendance-percentage {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* --- CHARTS / PLOTS PANEL --- */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

/* --- MODAL DIALOG --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 500px;
    padding: 32px;
    position: relative;
}

/* --- ACTIONS ROW --- */
.actions-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

/* --- UTILITIES --- */
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-8 { margin-bottom: 32px !important; }
.mt-4 { margin-top: 16px !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-4 { gap: 16px; }

/* --- HERO SPLIT LAYOUT --- */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    text-align: left;
}
.hero-content {
    flex: 1.2;
}
.hero-image-wrapper {
    flex: 0.8;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    display: flex;
    overflow: hidden;
    position: relative;
}
.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    object-fit: cover;
    transition: var(--transition);
}
.hero-image-wrapper:hover .hero-image {
    transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 16px 12px;
    }
    
    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .sidebar-item {
        padding: 8px 14px;
        font-size: 0.88rem;
        border-radius: var(--radius-sm);
        background: rgba(124, 58, 237, 0.02);
        border: 1px solid var(--border-color);
    }
    
    .sidebar-item.active {
        border-left: none;
        border-bottom: 2px solid var(--primary);
        padding-left: 14px;
        background: rgba(124, 58, 237, 0.08);
    }
    
    .dashboard-content {
        padding: 24px 16px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .dashboard-header h1 {
        font-size: 1.85rem;
    }
    
    .profile-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    
    .grid-3 {
        grid-template-columns: 1fr !important;
    }
    
    .charts-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .hero-split {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .glass-nav .nav-links a.nav-link {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .logo-tagline {
        display: none;
    }
    
    .logo-title {
        font-size: 1.15rem;
    }
    
    .nav-container {
        height: 64px;
        padding: 0 16px;
    }
    
    .nav-links span {
        display: none !important; /* Hide 'Admin Console' label on small viewports */
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .dashboard-content {
        padding: 16px 12px;
    }
    
    .data-panel {
        padding: 20px 14px;
        margin-bottom: 20px;
    }
    
    .login-card {
        padding: 28px 20px;
    }
    
    .form-header h2 {
        font-size: 1.75rem;
    }
    
    .table th, .table td {
        padding: 10px 12px;
        font-size: 0.88rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.88rem;
    }
    
    .btn-sm {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

/* --- LEADERBOARD MARQUEE TICKER --- */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.marquee-content {
    display: inline-flex;
    gap: 24px;
    animation: marquee-scroll 95s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.leaderboard-card {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 24px;
    min-width: 380px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.leaderboard-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 12px));
    }
}

/* --- NEWS TICKER --- */
.news-ticker-container {
    display: flex;
    align-items: center;
    background: rgba(239, 68, 68, 0.06);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    height: 44px;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-ticker-label {
    background: var(--danger);
    color: #fff;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    z-index: 10;
    font-family: var(--font-display);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.news-ticker-marquee {
    overflow: hidden;
    white-space: nowrap;
    flex-grow: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.news-ticker-content {
    display: inline-flex;
    gap: 48px;
    animation: news-scroll 75s linear infinite;
}

.news-ticker-content:hover {
    animation-play-state: paused;
}

.news-item-text {
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@keyframes news-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
