/* --- Global Styles & Variables --- */
* {
    box-sizing: border-box;
}

:root {
    /* Light Mode - WARM PALETTE */
    --primary-color: #FA812F;
    --primary-color-rgb: 250, 129, 47;
    --secondary-color: #FFB22C;
    --secondary-color-rgb: 255, 178, 44;
    --accent-color: #F3C623;
    --accent-color-rgb: 243, 198, 35;
    
    /* Enhanced Interactive Colors */
    --success-color: #10B981;
    --success-color-rgb: 16, 185, 129;
    --warning-color: #F59E0B;
    --warning-color-rgb: 245, 158, 11;
    --error-color: #EF4444;
    --error-color-rgb: 239, 68, 68;
    --info-color: #3B82F6;
    --info-color-rgb: 59, 130, 246;

    --bg-color: #FEF3E2;
    --text-color: #422C0F;
    --heading-color: #3B210A;
    --card-bg-color: #ffffff;
    --card-border-color: #F5E7D0;
    --card-shadow: 0 8px 32px rgba(200, 160, 100, 0.12);
    --card-hover-shadow: 0 12px 48px rgba(200, 160, 100, 0.18);
    --link-color: var(--primary-color);
    --subtle-text-color: #7A5C3A;
    --nav-bg: rgba(255, 251, 242, 0.95);
    --nav-text: var(--text-color);
    --nav-shadow: 0 4px 20px rgba(180, 150, 110, 0.08);
    --footer-bg: #3B210A;
    --footer-text: #FEF3E2;
    --footer-link-color: #FFB22C;
    --button-primary-bg: var(--primary-color);
    --button-primary-text: #ffffff;
    --button-secondary-border: var(--primary-color);
    --button-secondary-text: var(--primary-color);
    --button-secondary-hover-bg: var(--primary-color);
    --button-secondary-hover-text: #ffffff;
    --highlight-text-bg: rgba(var(--primary-color-rgb), 0.1);
    
    /* Enhanced Interactive Variables */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shimmer-gradient: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    --backdrop-blur: blur(16px);

    --header-height: 70px;
    --logo-container-height-nav: 45px;
    --logo-max-width-nav: 150px;

    /* Scrollbar Colors */
    --scrollbar-track: #F5E7D0;
    --scrollbar-thumb: linear-gradient(var(--primary-color), var(--secondary-color));
    --scrollbar-thumb-hover: linear-gradient(var(--accent-color), var(--primary-color));
}

body.dark-mode {
    /* Dark Mode - WARM PALETTE */
    --bg-color: #1A120B;
    --text-color: #FEF3E2;
    --heading-color: #FFF5E9;
    --card-bg-color: rgba(44, 29, 15, 0.8);
    --card-border-color: #422C0F;
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    --link-color: #FFB22C;
    --subtle-text-color: #BCA28A;
    --nav-bg: rgba(33, 22, 10, 0.95);
    --nav-text: var(--text-color);
    --nav-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --footer-bg: #110C07;
    --footer-text: #FEF3E2;
    --footer-link-color: #F3C623;

    --button-primary-bg: #FFB22C;
    --button-primary-text: #2C1D0F;
    --button-secondary-border: #FFB22C;
    --button-secondary-text: #FFB22C;
    --button-secondary-hover-bg: #FFB22C;
    --button-secondary-hover-text: #2C1D0F;
    --highlight-text-bg: rgba(var(--secondary-color-rgb), 0.15);
    
    /* Enhanced Dark Mode Variables */
    --glass-bg: rgba(44, 29, 15, 0.25);
    --glass-border: rgba(255, 178, 44, 0.18);
    --shimmer-gradient: linear-gradient(90deg, transparent, rgba(255, 178, 44, 0.2), transparent);

    /* Dark mode scrollbar colors */
    --scrollbar-track: #2C1D0F;
    --scrollbar-thumb: linear-gradient(var(--secondary-color), var(--accent-color));
    --scrollbar-thumb-hover: linear-gradient(var(--accent-color), var(--link-color));
}

/* Global scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
    border-width: 1px;
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--scrollbar-track);
    scroll-padding-top: calc(var(--header-height) + 2rem);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    position: relative;
}

/* Animated background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(var(--primary-color-rgb), 0.02) 0%,
        rgba(var(--secondary-color-rgb), 0.02) 25%,
        rgba(var(--accent-color-rgb), 0.02) 50%,
        rgba(var(--primary-color-rgb), 0.02) 75%,
        rgba(var(--secondary-color-rgb), 0.02) 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.dark-mode html {
    scrollbar-color: var(--secondary-color) var(--scrollbar-track);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation for floating background pattern */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* === MODERN HEADER STYLES === */

/* Header Variables */
:root {
    --header-height: 80px;
    --mobile-header-height: 70px;
    --header-padding: 1rem 2rem;
    --header-mobile-padding: 0.75rem 1rem;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-border: rgba(var(--primary-color-rgb), 0.1);
    --header-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --header-backdrop: blur(16px);
    --nav-item-radius: 12px;
    --nav-item-padding: 0.75rem 1.25rem;
    --action-btn-size: 44px;
    --mobile-nav-width: 320px;
}

/* Dark mode header variables */
body.dark-mode {
    --header-bg: rgba(26, 18, 11, 0.95);
    --header-border: rgba(var(--secondary-color-rgb), 0.15);
    --header-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Modern Header Container */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: var(--header-backdrop);
    -webkit-backdrop-filter: var(--header-backdrop);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
    transition: all var(--transition-normal);
    height: var(--header-height);
}

/* Header Navigation */
.header-nav {
    height: 100%;
    width: 100%;
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--header-padding);
    gap: 2rem;
}

/* === LOGO SECTION === */
.logo-section {
    flex-shrink: 0;
    z-index: 1001;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-normal);
    padding: 0.5rem;
    border-radius: var(--border-radius-lg);
}

.brand-link:hover {
    transform: scale(1.05);
}

.brand-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.brand-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.brand-suffix {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--subtle-text-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: -0.25rem;
}

/* === DESKTOP NAVIGATION === */
.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--nav-item-padding);
    border-radius: var(--nav-item-radius);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-color-rgb), 0.1), transparent);
    transition: left var(--transition-normal);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(var(--primary-color-rgb), 0.08);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(var(--primary-color-rgb), 0.12);
    font-weight: 600;
}

.nav-icon {
    font-size: 1rem;
    transition: transform var(--transition-normal);
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.nav-text {
    position: relative;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    background: transparent !important;
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform var(--transition-normal);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    padding: 0.75rem;
    min-width: 220px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1002;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    margin-bottom: 0.25rem;
}

.dropdown-link:last-child {
    margin-bottom: 0;
}

.dropdown-link:hover {
    background: rgba(var(--primary-color-rgb), 0.08);
    color: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-link i {
    width: 16px;
    text-align: center;
    color: var(--subtle-text-color);
}

.dropdown-link:hover i {
    color: var(--primary-color);
}

/* Admin Link Special Styling */
.admin-item .nav-link.admin-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.admin-item .nav-link.admin-link:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.4);
}

.admin-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.admin-item .nav-link.admin-link:hover .admin-glow {
    left: 100%;
}

/* === HEADER ACTIONS === */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.action-btn {
    width: var(--action-btn-size);
    height: var(--action-btn-size);
    border: 1px solid var(--card-border-color);
    background: var(--card-bg-color);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    transition: all var(--transition-normal);
    transform: translate(-50%, -50%);
}

.action-btn:hover::before {
    width: 100%;
    height: 100%;
}

.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.action-btn:active {
    transform: scale(0.95);
}

/* Search Button */
.search-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
}

.theme-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.moon-icon,
.sun-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-normal);
}

.moon-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.sun-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(180deg);
}

body.dark-mode .moon-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-180deg);
}

body.dark-mode .sun-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
}

.hamburger {
    width: 20px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === MOBILE SEARCH === */
.mobile-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: var(--header-backdrop);
    -webkit-backdrop-filter: var(--header-backdrop);
    border-bottom: 1px solid var(--header-border);
    padding: 1rem 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.mobile-search.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--subtle-text-color);
    font-size: 1rem;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 1rem 6rem 1rem 3rem; /* Increased right padding for both buttons */
    border: 2px solid var(--card-border-color);
    border-radius: var(--border-radius-lg);
    background: var(--card-bg-color);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-normal);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.search-clear {
    position: absolute;
    right: 4rem; /* Adjusted to make space for submit button */
    background: none;
    border: none;
    color: var(--subtle-text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.search-clear:hover {
    background: rgba(var(--error-color-rgb), 0.1);
    color: var(--error-color);
}

.search-submit {
    position: absolute;
    right: 1rem;
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.3);
}

.search-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.4);
}

.search-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(var(--primary-color-rgb), 0.3);
}

.search-submit i {
    font-size: 0.875rem;
}

/* === MOBILE NAVIGATION === */
.mobile-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: var(--mobile-nav-width);
    height: calc(100vh - var(--header-height));
    background: var(--card-bg-color);
    border-left: 1px solid var(--card-border-color);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 998;
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-content {
    padding: 2rem 1.5rem;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: 0.75rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: all var(--transition-normal);
    background: transparent;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(var(--primary-color-rgb), 0.08);
    color: var(--primary-color);
    transform: translateX(4px);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Mobile Submenu */
.has-submenu .toggle-icon {
    margin-left: auto;
    transition: transform var(--transition-normal);
}

.has-submenu.active .toggle-icon {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
    background: rgba(var(--primary-color-rgb), 0.03);
    border-radius: var(--border-radius-md);
    margin-top: 0.5rem;
}

.has-submenu.active .mobile-submenu {
    max-height: 300px;
    padding: 0.75rem 0;
}

.submenu-link {
    padding: 0.75rem 1.5rem 0.75rem 3rem !important;
    font-size: 0.9rem !important;
    color: var(--subtle-text-color) !important;
}

.submenu-link:hover {
    color: var(--primary-color) !important;
    background: rgba(var(--primary-color-rgb), 0.08) !important;
}

/* Mobile Admin Link */
.mobile-nav .admin-item .admin-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    position: relative;
    overflow: hidden;
}

.mobile-nav .admin-item .admin-link:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: translateX(8px) scale(1.02);
}

.admin-badge {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 997;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* === RESPONSIVE BREAKPOINTS === */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .nav-wrapper {
        padding: var(--header-mobile-padding);
        gap: 1.5rem;
    }
    
    .nav-menu {
        gap: 0.25rem;
    }
    
    .nav-item-padding {
        --nav-item-padding: 0.6rem 1rem;
    }
    
    /* Hero section padding for tablets */
    .page-header > div,
    .page-header .container {
        padding: 2.5rem 1.5rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .page-header {
        margin-top: var(--mobile-header-height);
    }
    
    .main-content:first-child {
        margin-top: var(--mobile-header-height);
    }
    
    .modern-header {
        height: var(--mobile-header-height);
    }
    
    .mobile-nav {
        top: var(--mobile-header-height);
        height: calc(100vh - var(--mobile-header-height));
    }
    
    .mobile-search {
        padding: 0.75rem 1rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .brand-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    :root {
        --mobile-nav-width: 280px;
        --action-btn-size: 40px;
        --mobile-header-height: 64px;
    }
    
    .page-header {
        margin-top: var(--mobile-header-height);
    }
    
    .main-content:first-child {
        margin-top: var(--mobile-header-height);
    }
    
    .nav-wrapper {
        padding: 0.5rem 1rem;
        gap: 1rem;
    }
    
    .brand-content {
        gap: 0.5rem;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    .brand-suffix {
        font-size: 0.75rem;
    }
    
    .brand-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .mobile-nav-content {
        padding: 1.5rem 1rem;
    }
    
    .mobile-search {
        padding: 0.75rem 1rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .brand-text {
        display: none;
    }
    
    .brand-content {
        gap: 0;
    }
}

/* Notification animations */
.pulse-animation {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification-toast.fade-out {
    animation: fadeOut 0.5s ease;
}

@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* --- Existing Styles Below --- */

/* Fix for content being hidden behind page header */
.page-header {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    margin-top: var(--header-height); /* Add margin to account for fixed header */
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.1) 0%, 
        rgba(var(--secondary-color-rgb), 0.1) 50%, 
        rgba(var(--accent-color-rgb), 0.1) 100%);
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

/* Dark mode enhancements */
body.dark-mode .page-header {
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.08) 0%, 
        rgba(var(--secondary-color-rgb), 0.1) 50%, 
        rgba(var(--accent-color-rgb), 0.08) 100%);
    border-bottom-color: rgba(var(--secondary-color-rgb), 0.2);
}

/* Ensure proper main content positioning and spacing */
.main-content {
    position: relative;
    z-index: 10;
    margin-top: 0;
    padding-top: 1rem;
    min-height: calc(100vh - 200px);
    background: var(--body-bg);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

/* For pages without page-header, add margin to main-content */
.main-content:first-child {
    margin-top: var(--header-height);
}

.main-content .container {
    position: relative;
    z-index: 11;
    padding-top: 1rem;
    background: transparent;
}

/* Fix content card positioning */
.content-card {
    position: relative;
    z-index: 12;
    margin-top: 0;
    background: var(--card-bg-color);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    transition: box-shadow 0.3s ease;
}

.content-card:hover {
    box-shadow: 0 8px 32px rgba(var(--primary-color-rgb), 0.1);
}

/* Fix scroll behavior for empty states */
.content-section {
    position: relative;
    z-index: 2;
    padding-top: 1rem;
}

/* Ensure dropdown menus appear above everything */
.sort-dropdown {
    position: relative;
    z-index: 10000;
}

.actions-container {
    position: relative;
    z-index: 10000;
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.fade-in-left {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll.scale-in {
    opacity: 1;
    transform: scale(1);
}

/* Add delays for staggered animations */
.animate-on-scroll[data-delay="50"] { transition-delay: 50ms; }
.animate-on-scroll[data-delay="100"] { transition-delay: 100ms; }
.animate-on-scroll[data-delay="150"] { transition-delay: 150ms; }
.animate-on-scroll[data-delay="200"] { transition-delay: 200ms; }
.animate-on-scroll[data-delay="250"] { transition-delay: 250ms; }
.animate-on-scroll[data-delay="300"] { transition-delay: 300ms; }
.animate-on-scroll[data-delay="350"] { transition-delay: 350ms; }
.animate-on-scroll[data-delay="400"] { transition-delay: 400ms; }

/* Title decoration and floating animation */
.title-decoration {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto;
    border-radius: 2px;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Enhanced Body Styles */
body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

main {
    flex: 1;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.container {
    /* max-width: 1200px; */
    width: 100%;
    margin: 0 auto;
    /* background-color: var(--bg-color); */
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
    border: none;
    min-height: calc(100vh - var(--header-height));
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--heading-color);
    font-size: 2.5rem;
}

h1 .highlight {
    background-image: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

h2 {
    color: var(--heading-color);
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--card-border-color);
    padding-bottom: 10px;
}

.subject-list, .note-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subject-list {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.subject-list li {
    background: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(100, 70, 30, 0.08);
}

.subject-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.15);
    border-color: var(--primary-color);
}

.subject-list a {
    display: block;
    padding: 20px 25px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: inherit;
    position: relative;
    overflow: hidden;
}

.subject-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.subject-list a:hover::before {
    transform: scaleX(1);
}

/* Semester Section Styling */
.semester-section {
    margin-bottom: 50px;
    background: var(--card-bg-color);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--card-border-color);
    box-shadow: var(--card-shadow);
}

.semester-header {
    margin-bottom: 1.5rem;
}

.semester-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading-color);
}

.semester-title span {
    flex: 1;
}

.semester-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
}

.subjects-container {
    margin-top: 1rem;
}

.subject-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.subject-item {
    transition: all var(--transition-normal);
}

.subject-link {
    display: block;
    padding: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

.subject-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--shimmer-gradient);
    transition: left 0.6s ease;
}

.subject-link:hover::before {
    left: 100%;
}

.subject-link:hover {
    transform: translateX(8px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.15);
}

.subject-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.subject-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.subject-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    min-width: 1.2rem;
}

.subject-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.subject-code {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading-color);
}

.subject-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--subtle-text-color);
}

.note-count, .reading-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.subject-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-indicator {
    width: 60px;
    height: 4px;
    background: var(--card-border-color);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    width: attr(data-progress percentage, 0%);
    transition: width 1s ease;
}

.action-icon {
    color: var(--primary-color);
    font-size: 1rem;
    transition: transform var(--transition-normal);
}

.subject-link:hover .action-icon {
    transform: translateX(4px);
}

.empty-state-mini {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--subtle-text-color);
    background: var(--glass-bg);
    border-radius: var(--border-radius-md);
    border: 2px dashed var(--glass-border);
}

.empty-state-mini i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state-mini p {
    margin: 0;
    font-size: 0.9rem;
}

/* Enhanced Hero Section Responsive Design */
.page-header > div,
.page-header .container {
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    min-height: 200px; /* Ensure consistent height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Large tablets - reduce padding slightly */
@media (max-width: 1024px) and (min-width: 769px) {
    .page-header > div,
    .page-header .container {
        padding: 2.5rem 1.5rem;
        min-height: 180px;
    }
}

/* Small tablets and large phones */
@media (max-width: 768px) and (min-width: 481px) {
    .page-header > div,
    .page-header .container {
        padding: 2rem 1.5rem;
        min-height: 160px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .page-header > div,
    .page-header .container {
        padding: 1.5rem 1rem;
        min-height: 140px;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .page-header > div,
    .page-header .container {
        padding: 1rem 0.75rem;
        min-height: 120px;
    }
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FA812F' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--subtle-text-color);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb .separator {
    color: var(--subtle-text-color);
    margin: 0 0.2rem;
}

.breadcrumb .current {
    color: var(--text-color);
    font-weight: 500;
}

/* Page Title */
.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin: 0 0 1rem;
    color: var(--heading-color);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-title i {
    color: var(--primary-color);
    font-size: 0.8em;
}

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

/* Page Subtitle */
.page-subtitle {
    font-size: 1.25rem;
    color: var(--subtle-text-color);
    margin: 0 0 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* Page Actions */
.page-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Enhanced hover effects for page action buttons */
.page-actions .cta-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 150px;
}

.page-actions .cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.page-actions .cta-button:hover::after {
    left: 100%;
}

.page-actions .cta-button:hover {
    transform: translateY(-3px) scale(1.02);
}

.page-actions .cta-button.secondary:hover {
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.25);
}

.page-actions .cta-button.tertiary:hover {
    box-shadow: 0 8px 25px rgba(var(--error-color-rgb), 0.25);
}

/* Stats Container */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--subtle-text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Enhanced Search and Filter */
.content-header {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--glass-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    position: relative;
    z-index: 1000;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--subtle-text-color);
    font-size: 1.1rem;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius-xl);
    background: var(--card-bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all var(--transition-normal);
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
    transform: scale(1.02);
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--subtle-text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear:hover {
    background: var(--error-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.search-clear:active {
    transform: translateY(-50%) scale(0.95);
}

.filter-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--glass-border);
    background: var(--card-bg-color);
    color: var(--text-color);
    border-radius: var(--border-radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--shimmer-gradient);
    transition: left 0.6s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
    transform: translateY(-1px);
}

.filter-btn.active:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 6px 16px rgba(var(--primary-color-rgb), 0.4);
}

/* Enhanced Subject Page Styles */
.subject-stats {
    margin-top: 2rem;
}

.stat-group {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Modern Note Cards - Redesigned from scratch */
.modern-notes-container {
    margin-top: 2rem;
}

.modern-notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.modern-note-card {
    background: var(--card-bg-color);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb), 0.08);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    height: 280px;
    display: flex;
    flex-direction: column;
}

.modern-note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.02) 0%, 
        rgba(var(--secondary-color-rgb), 0.03) 50%, 
        rgba(var(--accent-color-rgb), 0.02) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.modern-note-card:hover::before {
    opacity: 1;
}

.modern-note-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--primary-color-rgb), 0.15);
    border-color: var(--primary-color);
}

.modern-note-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
    padding: 0;
    overflow: hidden;
}

.note-visual {
    height: 120px;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 70%, 
        var(--accent-color) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.note-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M30 30c0-11.046 8.954-20 20-20s20 8.954 20 20-8.954 20-20 20-20-8.954-20-20zm10 0c0 5.523 4.477 10 10 10s10-4.477 10-10-4.477-10-10-10-10 4.477-10 10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 6s ease-in-out infinite;
}

/* ===== NOTE ICON SYSTEM - REDESIGNED FROM SCRATCH ===== */

/* Main note icon wrapper */
.note-icon-wrapper {
    /* Container properties */
    width: 80px;
    height: 80px;
    position: relative;
    
    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Visual design */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(0, 0, 0, 0.1) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* Shadows and depth */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    
    /* Animations */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: center;
    
    /* Interactive states preparation */
    cursor: pointer;
    overflow: hidden;
}

/* Note icon wrapper hover effect */
.modern-note-card:hover .note-icon-wrapper {
    /* Transform effects */
    transform: translateY(-8px) scale(1.1);
    
    /* Enhanced glow */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.35) 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(0, 0, 0, 0.05) 100%
    );
    border-color: rgba(255, 255, 255, 0.4);
    
    /* Elevated shadow */
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

/* Note icon itself */
.note-icon {
    /* Typography for SVG icons */
    font-size: 36px;
    line-height: 1;
    font-weight: 400; /* SVG icons work better with normal weight */
    
    /* Color and effects */
    color: #ffffff;
    
    /* SVG-specific styling */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* SVG icon effects */
    filter: 
        drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3))
        drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5))
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    
    /* Animation */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Ensure proper rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Note icon hover effect */
.modern-note-card:hover .note-icon {
    /* Enhanced glow and scale for SVG */
    transform: translate(-50%, -50%) scale(1.15);
    
    /* SVG-optimized glow effects */
    filter: 
        drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4))
        drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6))
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.3))
        drop-shadow(0 0 16px rgba(255, 255, 255, 0.4));
    
    /* Enhanced color for better visibility */
    color: rgba(255, 255, 255, 0.95);
}

/* Animated background shimmer effect */
.note-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: transform 0.6s ease;
    opacity: 0;
}

.modern-note-card:hover .note-icon-wrapper::before {
    animation: shimmer 1.5s ease-in-out infinite;
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ===== RESPONSIVE DESIGN FOR NOTE ICONS ===== */

/* Tablet responsive */
@media (max-width: 768px) {
    .note-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .note-icon {
        font-size: 32px;
        /* Adjust SVG rendering for smaller sizes */
        filter: 
            drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3))
            drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .note-icon-wrapper {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }
    
    .note-icon {
        font-size: 28px;
        /* Simplified effects for mobile performance */
        filter: 
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3))
            drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
    }
    
    .modern-note-card:hover .note-icon-wrapper {
        transform: translateY(-4px) scale(1.05);
    }
}

/* Ultra-mobile responsive */
@media (max-width: 320px) {
    .note-icon-wrapper {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }
    
    .note-icon {
        font-size: 24px;
        /* Minimal effects for ultra-mobile */
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    }
    
    .modern-note-card:hover .note-icon-wrapper {
        transform: translateY(-2px) scale(1.03);
    }
    
    .note-icon-wrapper::before {
        display: none; /* Disable shimmer on very small screens for performance */
    }
}



.note-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
    transform-origin: left;
}

.modern-note-card:hover .note-accent {
    transform: scaleX(1);
}

.note-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.note-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-description {
    font-size: 0.9rem;
    color: var(--subtle-text-color);
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

.note-action {
    padding: 1rem 1.5rem;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-normal);
}

.modern-note-card:hover .note-action {
    background: rgba(var(--primary-color-rgb), 0.1);
    border-top-color: rgba(var(--primary-color-rgb), 0.2);
}

.action-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: color var(--transition-normal);
}

.action-icon {
    color: var(--primary-color);
    font-size: 1rem;
    transition: all var(--transition-normal);
    opacity: 0.7;
}

.modern-note-card:hover .action-icon {
    transform: translateX(4px) scale(1.1);
    opacity: 1;
}

.modern-note-card:hover .action-text {
    color: var(--secondary-color);
}

/* List view for modern note cards */
.modern-notes-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.modern-notes-grid.list-view .modern-note-card {
    height: auto;
    min-height: 100px;
}

.modern-notes-grid.list-view .modern-note-link {
    flex-direction: row;
    align-items: center;
}

.modern-notes-grid.list-view .note-visual {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--border-radius-lg);
    margin: 1rem;
}

.modern-notes-grid.list-view .note-body {
    flex: 1;
    padding: 1rem;
}

.modern-notes-grid.list-view .note-action {
    padding: 1rem 1.5rem;
    border-top: none;
    border-left: 1px solid rgba(var(--primary-color-rgb), 0.1);
    background: transparent;
    width: 120px;
    flex-shrink: 0;
}

/* Responsive design for modern note cards */
@media (max-width: 768px) {
    .modern-notes-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .modern-note-card {
        height: 260px;
    }
    
    .note-visual {
        height: 100px;
    }
    

    
    
    .note-body {
        padding: 1.25rem;
    }
    
    .note-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .modern-notes-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .modern-note-card {
        height: 240px;
    }
    
    .note-visual {
        height: 90px;
    }
    
    
    
    .note-body {
        padding: 1rem;
    }
    
    .note-action {
        padding: 0.75rem 1rem;
    }
    
    /* List view adjustments for mobile */
    .modern-notes-grid.list-view .modern-note-link {
        flex-direction: column;
    }
    
    .modern-notes-grid.list-view .note-visual {
        width: 100%;
        height: 80px;
        margin: 0;
        border-radius: 0;
    }
    
    .modern-notes-grid.list-view .note-action {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(var(--primary-color-rgb), 0.1);
    }
}

/* Enhanced Note Cards */
.notes-container {
    margin-top: 2rem;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.note-card {
    background: var(--card-bg-color);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
    position: relative;
    box-shadow: var(--card-shadow);
}

.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
    transform-origin: left;
}

.note-card:hover::before {
    transform: scaleX(1);
}

.note-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-color);
}

.note-link {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}



.note-badge {
    background: var(--glass-bg);
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid var(--glass-border);
}

.note-content {
    flex: 1;
    margin-bottom: 1rem;
}

.note-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 0 0 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--subtle-text-color);
    flex-wrap: wrap;
}

.note-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.note-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--success-color);
    font-weight: 600;
}

.status-icon {
    font-size: 1rem;
}

.read-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform var(--transition-normal);
}

.note-card:hover .read-icon {
    transform: translateX(4px);
}

/* View Toggle States */
.notes-grid.list-view {
    grid-template-columns: 1fr;
}

.notes-grid.list-view .note-card {
    max-width: none;
}

.notes-grid.list-view .note-link {
    flex-direction: row;
    align-items: center;
    padding: 1rem 1.5rem;
}

.notes-grid.list-view .note-header {
    margin-bottom: 0;
    margin-right: 1rem;
}

.notes-grid.list-view .note-content {
    flex: 1;
    margin-bottom: 0;
    margin-right: 1rem;
}

.notes-grid.list-view .note-footer {
    padding-top: 0;
    border-top: none;
    margin-top: 0;
}

/* Breadcrumb Enhancements */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-normal);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-link:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translateX(-2px);
}

.separator {
    color: var(--subtle-text-color);
    opacity: 0.6;
}

.current {
    color: var(--text-color);
    font-weight: 600;
    background: var(--glass-bg);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
}

.title-icon {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Sort and Filter Controls */
.sort-dropdown {
    position: relative;
    display: inline-block;
    z-index: 10001;
}

.sort-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg-color);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-hover-shadow);
    padding: 0.5rem 0;
    min-width: 200px;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

.sort-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-color);
    cursor: pointer;
    transition: background var(--transition-normal);
}

.sort-option:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
}

.sort-option.active {
    background: var(--primary-color);
    color: white;
}

/* ===========================
   RESPONSIVE DESIGN SYSTEM
   =========================== */

/* Large Desktops (1920px and above) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
        padding: 40px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    .page-title {
        font-size: clamp(3rem, 6vw, 5rem);
    }
    
    .notes-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 3fr 2fr 2fr;
        gap: 4rem;
    }
}

/* Desktop (1200px - 1919px) */
@media (min-width: 1200px) and (max-width: 1919px) {
    .container {
        max-width: 1200px;
        padding: 30px;
    }
    
    .notes-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }
}

/* Large Tablets / Small Desktops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 100%;
        padding: 25px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .notes-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2.5rem;
    }
    
    .page-title {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
    }
    
    .stats-container {
        gap: 2rem;
    }
}

/* Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        padding: 20px;
    }
    
    /* Header adjustments */
    .nav-center {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .nav-container {
        padding: 12px 20px;
    }
    
    /* Grid adjustments */
    .notes-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-section:last-child {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }
    
    .actions-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .page-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .stats-container {
        gap: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
}

/* Large Mobile / Small Tablets (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        padding: 15px;
    }
    
    /* Header mobile adjustments */
    .nav-container {
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    
    .nav-center {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .nav-right {
        gap: 10px;
    }
    
    /* Content adjustments */
    .notes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .note-link {
        padding: 1.25rem;
    }
    
    .note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .actions-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .page-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        text-align: center;
    }
    
    .page-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .content-header {
        padding: 1.5rem;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile (480px - 575px) */
@media (min-width: 480px) and (max-width: 575px) {
    .container {
        padding: 12px;
    }
    
    /* Header ultra-mobile */
    .nav-container {
        padding: 8px 12px;
    }
    
    .logo-image {
        height: 35px;
        max-width: 120px;
    }
    
    .dark-mode-toggle,
    .hamburger-menu {
        padding: 10px;
        font-size: 1rem;
    }
    
    /* Content ultra-mobile */
    .note-link {
        padding: 1rem;
    }
    
    
    .note-title {
        font-size: 1rem;
    }
    
    .note-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .page-title {
        font-size: clamp(1.6rem, 9vw, 2.2rem);
    }
    
    .page-subtitle {
        font-size: 0.95rem;
    }
    
    .btn,
    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .content-header {
        padding: 1rem;
    }
    
    .search-input {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .stats-container {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 200px;
    }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    /* Base adjustments */
    :root {
        --header-height: 60px;
        --logo-container-height-nav: 35px;
        --logo-max-width-nav: 100px;
    }
    
    .container {
        padding: 10px;
        min-height: calc(100vh - 60px);
    }
    
    /* Header tiny mobile */
    .nav-container {
        padding: 6px 10px;
        min-height: 60px;
    }
    
    .logo-image {
        height: 30px;
        max-width: 100px;
    }
    
    .dark-mode-toggle,
    .hamburger-menu {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .nav-right {
        gap: 8px;
    }
    
    /* Content tiny mobile - remove duplicate padding rule */
    
    .page-title {
        font-size: clamp(1.4rem, 10vw, 2rem);
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .page-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-actions .cta-button {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .content-header {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .search-input {
        padding: 0.75rem 0.75rem 0.75rem 2.25rem;
        font-size: 0.85rem;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .notes-grid {
        gap: 0.75rem;
    }
    
    .note-link {
        padding: 0.75rem;
    }
    
    .note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    
    .note-title {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .note-meta {
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.75rem;
    }
    
    .note-footer {
        padding-top: 0.75rem;
    }
    
    .actions-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .btn,
    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .subject-link {
        padding: 1rem;
    }
    
    .subject-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .subject-actions {
        align-self: stretch;
        justify-content: space-between;
    }
    
    /* Footer tiny mobile */
    .footer-content {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .footer-bottom-content {
        padding: 0 1rem;
        font-size: 0.8rem;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    /* Enhanced tiny mobile adjustments */
    .semester-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .semester-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 1.1rem;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 150px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .main-content {
        padding-top: 0.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 319px) {
    .container {
        padding: 8px;
    }
    
    .nav-container {
        padding: 5px 8px;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .page-subtitle {
        font-size: 0.8rem;
    }
    
    .note-link {
        padding: 0.5rem;
    }
    
    .note-title {
        font-size: 0.9rem;
    }
    
    .btn,
    .cta-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* Ensure content doesn't get hidden behind sticky header on scroll */
.page-header,
.main-content,
.content-card {
    scroll-margin-top: var(--header-height);
}

/* Additional scroll behavior for smooth navigation */
html {
    scroll-padding-top: var(--header-height);
}

/* Ensure proper layering and visibility during scroll */
body.scrolling .main-content {
    padding-top: 1rem;
    margin-top: 0;
}

/* Fix for sticky header overlap */
@media (max-width: 768px) {
    
    /* Mobile padding - handled by unified responsive system above */
    
    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .page-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .page-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .page-actions .cta-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .main-content {
        padding-top: 0.5rem;
    }
}

/* Subtle entrance animations */
.page-header > div {
    animation: fadeInUp 0.8s ease-out;
}

.breadcrumb {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.page-title {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.page-subtitle {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.page-actions {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improve visual hierarchy */
.page-title i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.page-title:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

/* Better focus states for accessibility */
.breadcrumb a:focus,
.page-actions .cta-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* CTA Button Styles - Enhanced Integration */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--shimmer-gradient);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.cta-button:active {
    transform: translateY(1px) scale(0.98);
}

/* CTA Button Variants */
.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.4);
}

.cta-button.primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.3);
}

.cta-button.secondary {
    background: var(--glass-bg);
    color: var(--text-color);
    border-color: var(--glass-border);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(var(--primary-color-rgb), 0.3);
}

.cta-button.secondary:active {
    transform: translateY(0) scale(0.98);
}

.cta-button.tertiary {
    background: transparent;
    color: var(--error-color);
    border-color: var(--error-color);
    box-shadow: 0 2px 8px rgba(var(--error-color-rgb), 0.1);
}

.cta-button.tertiary:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(var(--error-color-rgb), 0.3);
}

.cta-button.tertiary:active {
    transform: translateY(0) scale(0.98);
}

/* CTA Button Sizes */
.cta-button.small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.cta-button.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* CTA Button Icons */
.cta-button i {
    transition: transform var(--transition-normal);
    font-size: 0.9em;
}

.cta-button:hover i {
    transform: scale(1.1);
}

/* Disabled CTA Button */
.cta-button:disabled,
.cta-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dark Mode CTA Button Adjustments */
body.dark-mode .cta-button.secondary {
    background: rgba(var(--secondary-color-rgb), 0.1);
    border-color: rgba(var(--secondary-color-rgb), 0.3);
    color: var(--text-color);
}

body.dark-mode .cta-button.secondary:hover {
    background: var(--secondary-color);
    color: var(--footer-bg);
    border-color: var(--secondary-color);
}

body.dark-mode .cta-button.tertiary {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

body.dark-mode .cta-button.tertiary:hover {
    background: #ff6b6b;
    color: white;
}

/* Footer Styles - Add after existing styles */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
    padding: 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.1) 0%, 
        rgba(var(--secondary-color-rgb), 0.05) 100%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-section h3 {
    color: var(--footer-text);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section h3 i {
    color: var(--footer-link-color);
}

.footer-section p {
    color: var(--footer-text);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.footer-section ul li a:hover {
    color: var(--footer-link-color);
    opacity: 1;
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    color: var(--footer-text);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--footer-link-color);
    color: var(--footer-bg);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(var(--footer-link-color-rgb, 255, 178, 44), 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-content p {
    margin: 0;
    color: var(--footer-text);
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    opacity: 0.8;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--footer-link-color);
    opacity: 1;
}

/* Button Styles - Enhanced for subject page */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--shimmer-gradient);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.3);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-color);
    border-color: var(--glass-border);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(var(--primary-color-rgb), 0.3);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
       border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(var(--primary-color-rgb), 0.1);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(var(--primary-color-rgb), 0.3);
}

.btn-danger {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
    box-shadow: 0 2px 8px rgba(var(--error-color-rgb), 0.1);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(var(--error-color-rgb), 0.3);
}

/* Sort Button Styles */
.sort-btn,
.view-btn {
    background: var(--card-bg-color);
    color: var(--text-color);
    border: 2px solid var(--card-border-color);
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sort-btn:hover,
.view-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.2);
    text-decoration: none;
}

.sort-btn.active,
.view-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.3);
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--card-border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.view-toggle .view-btn {
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-right: 1px solid var(--card-border-color);
}

.view-toggle .view-btn:last-child {
    border-right: none;
}

.view-toggle .view-btn:hover {
    transform: none;
    box-shadow: none;
}

/* Enhanced Mobile Footer Styles */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .view-toggle {
        align-self: center;
        width: fit-content;
    }
    
    .btn,
    .sort-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 1.5rem 1rem;
    }
    
    .footer-bottom {
        padding: 1rem;
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .btn,
    .sort-btn,
    .view-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

.feedback-button:hover i {
    transform: scale(1.1) rotate(10deg);
}

/* Floating Action Buttons Container */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.floating-actions .back-to-top {
    position: relative;
    bottom: auto;
    right: auto;
    margin: 0;
}

/* Notification Button (if exists) */
.notification-button {
    position: relative;
    background: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    color: var(--nav-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 12px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-button:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(var(--primary-color-rgb), 0.3);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--bg-color);
    animation: pulse 2s infinite;
}

.notification-badge.visible {
    display: flex;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .feedback-button {
        bottom: 20px;
        left: 20px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .feedback-button {
        bottom: 15px;
        left: 15px;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .feedback-button span {
        display: none;
    }
    
    .feedback-button {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
    }
    
    .floating-actions {
        bottom: 15px;
        right: 15px;
    }
}

/* Dark Mode Adjustments */
body.dark-mode .feedback-button {
    background: rgba(var(--secondary-color-rgb), 0.1);
    border-color: var(--secondary-color);
    color: var(--text-color);
}

body.dark-mode .feedback-button:hover {
    background: var(--secondary-color);
    color: var(--footer-bg);
}

body.dark-mode .notification-button {
    background: rgba(var(--secondary-color-rgb), 0.1);
    border-color: rgba(var(--secondary-color-rgb), 0.3);
}

body.dark-mode .notification-button:hover {
    background: var(--secondary-color);
    color: var(--footer-bg);
}

/* Accessibility Enhancements */
.back-to-top:focus,
.feedback-button:focus,
.notification-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animation for smooth appearance */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-to-top.visible,
.feedback-button {
    animation: slideInUp 0.3s ease-out;
}

/* Tooltip styles for buttons */
.back-to-top::before,
.feedback-button::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    pointer-events: none;
    z-index: 1001;
}

.back-to-top:hover::before,
.feedback-button:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
    z-index: 1001;
}

.back-to-top:hover::before,
.feedback-button:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-to-top.visible,
.feedback-button {
    animation: slideInUp 0.3s ease-out;
}

/* Tooltip styles for buttons */
.back-to-top::before,
.feedback-button::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    pointer-events: none;
    z-index: 1001;
}

.back-to-top:hover::before,
.feedback-button:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
    z-index: 1001;
}

.back-to-top:hover::before,
.feedback-button:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* === NEW MODERN FOOTER STYLES === */

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--card-bg-color);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--card-border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.action-btn i {
    position: relative;
    z-index: 2;
    transition: all var(--transition-normal);
}

.action-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.3);
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn:hover i {
    color: white;
    transform: scale(1.1);
}

.scroll-top-btn.visible,
.feedback-btn.visible,
.theme-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Theme button special styling */
.theme-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* Modern Footer */
.modern-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.08) 0%, 
        rgba(var(--secondary-color-rgb), 0.04) 50%,
        rgba(var(--accent-color-rgb), 0.02) 100%);
    pointer-events: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-main {
    padding: 4rem 0 2rem;
}

.footer-main .footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Brand Section */
.footer-brand {
    grid-column: 1;
}

.brand-header {
    margin-bottom: 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--footer-text);
    margin: 0;
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--footer-link-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.brand-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: var(--footer-text);
}

.brand-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--footer-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-item i {
    color: var(--footer-link-color);
    font-size: 1.1rem;
}

/* Footer Sections */
.footer-section {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--footer-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--footer-link-color);
    font-size: 1rem;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--footer-text);
    text-decoration: none;
    padding: 0.5rem 0;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
    opacity: 0.9;
    position: relative;
    overflow: hidden;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--footer-link-color);
    transform: scaleY(0);
    transition: transform var(--transition-normal);
}

.footer-link:hover {
    opacity: 1;
    color: var(--footer-link-color);
    transform: translateX(8px);
    background: rgba(var(--footer-link-color-rgb, 255, 178, 44), 0.1);
}

.footer-link:hover::before {
    transform: scaleY(1);
}

.footer-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: all var(--transition-normal);
}

.footer-link:hover i {
    color: var(--footer-link-color);
    transform: scale(1.1);
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    color: var(--footer-text);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-normal);
}

.social-btn:hover::before {
    left: 100%;
}

.github-btn:hover {
    background: #333;
    border-color: #333;
    color: white;
    transform: translateY(-2px);
}

.discord-btn:hover {
    background: #5865F2;
    border-color: #5865F2;
    color: white;
    transform: translateY(-2px);
}

.telegram-btn:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: white;
    transform: translateY(-2px);
}

.email-btn:hover {
    background: var(--footer-link-color);
    border-color: var(--footer-link-color);
    color: var(--footer-bg);
    transform: translateY(-2px);
}

/* Newsletter Signup */
.newsletter-signup {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-signup h5 {
    margin: 0 0 1rem 0;
    color: var(--footer-text);
    font-size: 1rem;
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    font-size: 0.9rem;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

.newsletter-input::placeholder {
    color: rgba(var(--footer-text-rgb, 254, 243, 226), 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--footer-link-color);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    padding: 0.75rem;
    background: var(--footer-link-color);
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--footer-bg);
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    margin: 0;
    color: var(--footer-text);
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.heartbeat {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--footer-text);
    opacity: 0.8;
}

.footer-meta i {
    color: var(--footer-link-color);
    margin-right: 0.5rem;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    width: 0%;
    transition: width 0.1s ease;
}

/* Tooltips */
.tooltip-popup {
    position: absolute;
    background: var(--card-bg-color);
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border-color);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.tooltip-popup.visible {
    opacity: 1;
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--card-bg-color);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1002;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--error-color);
}

.notification-info {
    border-left: 4px solid var(--info-color);
}

.notification i {
    font-size: 1.2rem;
}

.notification-success i {
    color: var(--success-color);
}

.notification-error i {
    color: var(--error-color);
}

.notification-info i {
    color: var(--info-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-main .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .floating-actions {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-main .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: 1;
    }
    
    .brand-logo {
        justify-content: center;
    }
    
    .brand-stats {
        justify-content: center;
    }
    
    .social-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 300px;
        margin: 0 auto 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .floating-actions {
        bottom: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    
    .action-btn {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 2rem 0 1rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        max-width: 200px;
    }
    
    .brand-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .floating-actions {
        bottom: 0.75rem;
        right: 0.75rem;
    }
    
    .action-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .notification {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* Dark mode adjustments */
body.dark-mode .newsletter-input {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .newsletter-input:focus {
    background: rgba(0, 0, 0, 0.4);
}

body.dark-mode .newsletter-signup {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .social-btn {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .action-btn {
    background: rgba(26, 18, 11, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}


/* === NEW MODERN FOOTER STYLES === *//* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.footer-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--card-bg-color);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--card-border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.footer-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.footer-action-btn i {
    position: relative;
    z-index: 2;
    transition: all var(--transition-normal);
}

.footer-action-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.3);
}

.footer-action-btn:hover::before {
    opacity: 1;
}

.footer-action-btn:hover i {
    color: white;
    transform: scale(1.1);
}

.footer-action-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Modern Footer */
.modern-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.08) 0%, 
        rgba(var(--secondary-color-rgb), 0.04) 50%,
        rgba(var(--accent-color-rgb), 0.02) 100%);
    pointer-events: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-main {
    padding: 4rem 0 2rem;
}

.footer-main .footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Brand Section */
.footer-brand {
    grid-column: 1;
}

.brand-header {
    margin-bottom: 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(var(--primary-color-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--footer-text);
    margin: 0;
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 0.9rem;
    color: var(--footer-link-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.brand-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
    color: var(--footer-text);
}

.brand-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--footer-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.stat-item i {
    color: var(--footer-link-color);
    font-size: 1.1rem;
}

/* Footer Sections */
.footer-section {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--footer-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    color: var(--footer-link-color);
    font-size: 1rem;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--footer-text);
    text-decoration: none;
    padding: 0.5rem 0;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
    opacity: 0.9;
    position: relative;
    overflow: hidden;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--footer-link-color);
    transform: scaleY(0);
    transition: transform var(--transition-normal);
}

.footer-link:hover {
    opacity: 1;
    color: var(--footer-link-color);
    transform: translateX(8px);
    background: rgba(var(--footer-link-color-rgb, 255, 178, 44), 0.1);
}

.footer-link:hover::before {
    transform: scaleY(1);
}

.footer-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: all var(--transition-normal);
}

.footer-link:hover i {
    color: var(--footer-link-color);
    transform: scale(1.1);
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    color: var(--footer-text);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-normal);
}

.social-btn:hover::before {
    left: 100%;
}

.github-btn:hover {
    background: #333;
    border-color: #333;
    color: white;
    transform: translateY(-2px);
}

.discord-btn:hover {
    background: #5865F2;
    border-color: #5865F2;
    color: white;
    transform: translateY(-2px);
}

.telegram-btn:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: white;
    transform: translateY(-2px);
}

.email-btn:hover {
    background: var(--footer-link-color);
    border-color: var(--footer-link-color);
    color: var(--footer-bg);
    transform: translateY(-2px);
}

/* Newsletter Signup */
.newsletter-signup {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-signup h5 {
    margin: 0 0 1rem 0;
    color: var(--footer-text);
    font-size: 1rem;
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    font-size: 0.9rem;
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
}

.newsletter-input::placeholder {
    color: rgba(var(--footer-text-rgb, 254, 243, 226), 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--footer-link-color);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    padding: 0.75rem;
    background: var(--footer-link-color);
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--footer-bg);
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p {
    margin: 0;
    color: var(--footer-text);
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

.heartbeat {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--footer-text);
    opacity: 0.8;
}

.footer-meta i {
    color: var(--footer-link-color);
    margin-right: 0.5rem;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    width: 0%;
    transition: width 0.1s ease;
}

/* Tooltips */
.tooltip-popup {
    position: absolute;
    background: var(--card-bg-color);
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border-color);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.tooltip-popup.visible {
    opacity: 1;
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--card-bg-color);
    color: var(--text-color);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1002;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--error-color);
}

.notification-info {
    border-left: 4px solid var(--info-color);
}

.notification i {
    font-size: 1.2rem;
}

.notification-success i {
    color: var(--success-color);
}

.notification-error i {
    color: var(--error-color);
}

.notification-info i {
    color: var(--info-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-main .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .floating-actions {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-main .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: 1;
    }
    
    .brand-logo {
        justify-content: center;
    }
    
    .brand-stats {
        justify-content: center;
    }
    
    .social-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 300px;
        margin: 0 auto 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .floating-actions {
        bottom: 1rem;
        right: 1rem;
        gap: 0.5rem;
    }
    
    .footer-action-btn {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 2rem 0 1rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        max-width: 200px;
    }
    
    .brand-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .floating-actions {
        bottom: 0.75rem;
        right: 0.75rem;
    }
    
    .footer-action-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .notification {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* Dark mode adjustments */
body.dark-mode .newsletter-input {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .newsletter-input:focus {
    background: rgba(0, 0, 0, 0.4);
}

body.dark-mode .newsletter-signup {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .social-btn {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .footer-action-btn {
    background: rgba(26, 18, 11, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}
/* Fix for header action buttons visibility */
.header-actions .action-btn {
    width: var(--action-btn-size);
    height: var(--action-btn-size);
    border: 1px solid var(--card-border-color);
    background: var(--card-bg-color);
    border-radius: var(--border-radius-md);
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-actions .action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    transition: all var(--transition-normal);
    transform: translate(-50%, -50%);
    opacity: 0;
}

.header-actions .action-btn:hover::before {
    width: 100%;
    height: 100%;
    opacity: 1;
}

.header-actions .action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05) !important;
}

.header-actions .action-btn:active {
    transform: scale(0.95) !important;
}

/* Mobile responsive fixes */
@media (max-width: 480px) {
    .header-actions .action-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .header-actions .action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}
/* Fix mobile menu toggle visibility and theme icon positioning */

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
    display: none;
}

/* Show mobile menu toggle only on mobile */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Fix theme toggle icon positioning */
.header-actions .theme-toggle .theme-icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-actions .theme-toggle .moon-icon,
.header-actions .theme-toggle .sun-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-normal);
    font-size: 1.1rem;
}

.header-actions .theme-toggle .moon-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.header-actions .theme-toggle .sun-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(180deg);
}

/* Dark mode theme icon states */
body.dark-mode .header-actions .theme-toggle .moon-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-180deg);
}

body.dark-mode .header-actions .theme-toggle .sun-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Ensure proper z-index for theme icons */
.header-actions .theme-toggle .theme-icon i {
    z-index: 3;
}
/* Force hide mobile menu toggle on desktop with higher specificity */
.header-actions .mobile-menu-toggle {
    display: none !important;
}

/* Show mobile menu toggle only on mobile devices */
@media (max-width: 768px) {
    .header-actions .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Additional mobile breakpoint for tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .header-actions .mobile-menu-toggle {
        display: none !important;
    }
}
