/* Dark Mode */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .navbar {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

body.dark-mode .features,
body.dark-mode .stats,
body.dark-mode .quick-links {
    background: #2d3748;
}

body.dark-mode .feature-card,
body.dark-mode .news-card,
body.dark-mode .staff-card,
body.dark-mode .notice-item,
body.dark-mode .achievement-card,
body.dark-mode .quick-link-card,
body.dark-mode .upload-section,
body.dark-mode .search-filter-section,
body.dark-mode .contact-form,
body.dark-mode .contact-info {
    background: #374151;
    color: #e0e0e0;
}

body.dark-mode .page-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

body.dark-mode footer {
    background: #111;
}

/* Theme Toggle in Navbar */
.theme-toggle-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 1rem;
}

.theme-toggle-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* Utility Buttons */
.utility-buttons {
    position: fixed;
    top: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 998;
}

.utility-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.utility-btn:hover {
    background: #667eea;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .theme-toggle,
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .theme-toggle {
        bottom: 80px;
    }
    
    .utility-buttons {
        top: 80px;
        right: 10px;
    }
    
    .utility-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
