:root {
    --primary: #6366f1;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #1f2937;
    --light: #f9fafb;
    --gen-z-font: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--gen-z-font);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Slideshow */
.slideshow {
    position: relative;
    height: 400px;
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: var(--dark);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.menu-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--dark);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
}

.cookie-consent.show {
    display: block;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.cookie-accept {
    background: var(--primary);
    color: white;
}

.cookie-reject {
    background: transparent;
    color: white;
    border: 1px solid white;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: var(--gen-z-font);
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--gen-z-font);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #4f46e5;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: var(--primary);
    color: white;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slideshow {
        height: 300px;
    }
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo img {
    height: 35px;
    margin-right: 8px;
}

.nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-btn {
    background: var(--accent);
}

.admin-btn:hover {
    background: #e69008;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: white;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    z-index: 1000;
    padding: 2rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-nav-link:hover {
    background: #f8f9fa;
}

.mobile-nav-link.admin-btn {
    background: var(--accent);
    color: white;
}

.mobile-nav-link.admin-btn:hover {
    background: #e69008;
}

/* Overlay untuk mobile nav */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.mobile-nav-overlay.active {
    display: block;
}

/* Body no-scroll ketika mobile nav aktif */
body.no-scroll {
    overflow: hidden;
}

/* Footer Styles */
.footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    padding: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo span {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--accent);
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.footer-section p {
    margin-bottom: 0.8rem;
    color: #bbb;
    line-height: 1.5;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 7, 7, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: #bbb;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: none;
    z-index: 99;
    font-size: 1.2rem;
}

.back-to-top:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* Responsive Design untuk Header dan Footer */
@media (max-width: 1024px) {
    .nav-list {
        gap: 0.8rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }
    
    .logo a {
        font-size: 1.1rem;
    }
    
    .logo img {
        height: 30px;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-section {
        padding: 0.5rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.8rem 0;
    }
    
    .logo a {
        font-size: 1rem;
    }
    
    .logo img {
        height: 28px;
        margin-right: 6px;
    }
    
    .mobile-nav {
        width: 85%;
        padding: 1.5rem;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        padding: 1rem 15px 0;
    }
    
    .back-to-top {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Animation untuk mobile nav */
@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-nav.active {
    animation: slideIn 0.3s ease-out;
}

.mobile-nav-overlay.active {
    animation: fadeIn 0.3s ease-out;
}
/* Additional Styles for the New Pages */

.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--dark);
    font-size: 1.1rem;
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.card-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

/* Status Badges */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-available {
    background: #10b981;
    color: white;
}

.status-warning {
    background: #f59e0b;
    color: white;
}

.status-expired {
    background: #ef4444;
    color: white;
}

.status-habis {
    background: #6b7280;
    color: white;
}

.status-sakit {
    background: #ef4444;
    color: white;
}

.status-sembuh {
    background: #10b981;
    color: white;
}

/* BMI Badges */
.bmi-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.bmi-badge.kurus {
    background: #3b82f6;
    color: white;
}

.bmi-badge.normal {
    background: #10b981;
    color: white;
}

.bmi-badge.gemuk {
    background: #f59e0b;
    color: white;
}

.bmi-badge.obesitas {
    background: #ef4444;
    color: white;
}

/* Stok Badges */
.stok-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    display: inline-block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--dark);
    font-weight: 500;
}

/* Filters */
.filters {
    margin-bottom: 1.5rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: end;
}

/* BMI Calculator Styles */
.bmi-result {
    text-align: center;
    padding: 2rem;
}

.bmi-placeholder {
    color: #6b7280;
}

.bmi-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.bmi-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
}

.bmi-category {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.bmi-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.bmi-categories > div {
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
}

.underweight { background: #3b82f6; color: white; }
.normal { background: #10b981; color: white; }
.overweight { background: #f59e0b; color: white; }
.obese { background: #ef4444; color: white; }

.recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.recommendation {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.recommendation h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.recommendation ul {
    margin-left: 1rem;
}

.recommendation li {
    margin-bottom: 0.5rem;
}

/* Checkbox Styles */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .card-header .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bmi-categories {
        grid-template-columns: 1fr;
    }
    
    .recommendations {
        grid-template-columns: 1fr;
    }
}

#popupPengumuman {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
}

.popup-content {
    background: #fff;
    max-width: 400px;
    margin: 80px auto;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    position: relative;
    width: 90vw; /* agar di mobile tidak kepanjangan */
}

.popup-content img {
    width: 100%;
    max-width: 320px;
    border-radius: 6px;
    margin-bottom: 5px;
}

/* Responsive untuk mobile */
@media (max-width: 600px) {
    .popup-content {
        max-width: 95vw;
        margin: 32px auto;
        padding: 12px;
    }
    .popup-content img {
        max-width: 95vw;
    }
}

/* Back to Top Button */
.backToTop {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 99;
    display: none; /* Hidden by default */
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 60%, #2ecc71);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(52,152,219,0.15);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}
.backToTop:hover, .backToTop:focus {
    background: linear-gradient(135deg, #2ecc71 60%, #3498db);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(46,204,113,0.2);
    outline: none;
}
.backToTop i {
    pointer-events: none;
}

/* Responsif untuk layar kecil */
@media (max-width: 600px) {
    .backToTop {
        right: 12px;
        bottom: 16px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Health Statistics Styles */
.health-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #2c7be5 0%, #1a56db 100%);
    color: white;
    border-radius: 15px;
}

.health-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.health-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2c7be5 0%, #1a56db 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-info h3 {
    margin: 0 0 5px 0;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
}

/* Chart Section */
.chart-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.chart-section h2 {
    margin-bottom: 25px;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-container {
    height: 400px;
    position: relative;
}

/* History Section */
.history-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.health-table {
    width: 100%;
    border-collapse: collapse;
}

.health-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
}

.health-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.health-table tr:hover {
    background: #f8f9fa;
}

/* Disease Section */
.disease-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.disease-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.disease-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #2c7be5;
    position: relative;
}

.disease-card h4 {
    margin: 0 0 10px 0;
    color: #2d3748;
}

.disease-date {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.disease-desc {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.disease-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-healed {
    background: #c6f6d5;
    color: #22543d;
}

.status-treatment {
    background: #fed7d7;
    color: #742a2a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .health-header h1 {
        font-size: 2rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .health-table {
        font-size: 0.9rem;
    }
    
    .disease-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .health-header {
        padding: 20px;
    }
    
    .health-header h1 {
        font-size: 1.5rem;
    }
    
    .chart-section,
    .history-section,
    .disease-section {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    margin-bottom: 30px;
}

.loading-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

.loading-spinner {
    margin: 20px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

.loading-text {
    margin-top: 20px;
}

.loading-text p {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 300;
}

.loading-details {
    display: flex;
    justify-content: space-between;
    max-width: 300px;
    margin: 0 auto;
    font-size: 12px;
    opacity: 0.8;
}

/* Progress bar alternative */
.progress-container {
    width: 300px;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin: 15px auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: white;
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: progressAnimation 2s ease-in-out infinite;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes progressAnimation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Internet speed based styles */
.slow-internet .spinner {
    border-width: 3px;
    width: 40px;
    height: 40px;
}

.slow-internet .loading-logo img {
    width: 80px;
    height: 80px;
}

.fast-internet .spinner {
    border-width: 6px;
    width: 60px;
    height: 60px;
}

.fast-internet .loading-logo img {
    width: 120px;
    height: 120px;
}