/* ===== COMMON STYLES (APPLY TO ALL PAGES) ===== */
:root {
    --sidebar-bg: #0033cc;
    --sidebar-icon-color: #fff;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --header-bg: linear-gradient(135deg, #99c2ff 0%, #66a3ff 100%);
    --footer-bg: #0055ff;
    --footer-text: #fff;
    --warning-color: #ffc107;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --danger-color: #dc3545;
}

body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Noto Sans Tamil', 'Latha', 'Nunito', sans-serif;
    /* Tamil Font Priority */
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== LOGIN PAGE SPECIFIC STYLES ===== */
/* Only apply when on login/register page */
body.login-page {
    background: linear-gradient(135deg, #000000 0%, #000428 50%, #004e92 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    min-height: 100vh;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animated Birds Container - Only for login */
.birds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    z-index: 1;
}

/* Individual Bird Styles */
.bird {
    position: absolute;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50,20 Q70,10 90,20 Q85,40 70,50 Q90,60 90,80 Q70,70 50,80 Q30,70 10,80 Q10,60 30,50 Q15,40 10,20 Q30,10 50,20 Z' fill='rgba(255,255,255,0.8)'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    width: 60px;
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Bird Animation Variations */
.bird-1 {
    top: 20%;
    left: -100px;
    animation: flyBird1 20s linear infinite;
    width: 50px;
    height: 33px;
    opacity: 0.8;
}

.bird-2 {
    top: 30%;
    left: -120px;
    animation: flyBird2 25s linear infinite 3s;
    width: 40px;
    height: 27px;
    opacity: 0.7;
}

.bird-3 {
    top: 40%;
    left: -80px;
    animation: flyBird3 22s linear infinite 5s;
    width: 45px;
    height: 30px;
    opacity: 0.9;
}

.bird-4 {
    top: 15%;
    left: -150px;
    animation: flyBird4 18s linear infinite 7s;
    width: 35px;
    height: 23px;
    opacity: 0.6;
}

.bird-5 {
    top: 35%;
    left: -200px;
    animation: flyBird5 30s linear infinite 2s;
    width: 55px;
    height: 37px;
    opacity: 0.8;
}

.bird-6 {
    top: 25%;
    right: -100px;
    animation: flyBird6 20s linear infinite 4s;
    width: 50px;
    height: 33px;
    opacity: 0.7;
    transform: scaleX(-1);
}

.bird-7 {
    top: 45%;
    right: -150px;
    animation: flyBird7 25s linear infinite 6s;
    width: 40px;
    height: 27px;
    opacity: 0.6;
    transform: scaleX(-1);
}

/* Bird Flying Animations */
@keyframes flyBird1 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    25% {
        transform: translateX(25vw) translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateX(50vw) translateY(10px) rotate(0deg);
    }

    75% {
        transform: translateX(75vw) translateY(-15px) rotate(-5deg);
    }

    100% {
        transform: translateX(100vw) translateY(0) rotate(0deg);
    }
}

@keyframes flyBird2 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    25% {
        transform: translateX(25vw) translateY(15px) rotate(-3deg);
    }

    50% {
        transform: translateX(50vw) translateY(-10px) rotate(0deg);
    }

    75% {
        transform: translateX(75vw) translateY(20px) rotate(3deg);
    }

    100% {
        transform: translateX(100vw) translateY(0) rotate(0deg);
    }
}

@keyframes flyBird3 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    25% {
        transform: translateX(25vw) translateY(-25px) rotate(2deg);
    }

    50% {
        transform: translateX(50vw) translateY(5px) rotate(0deg);
    }

    75% {
        transform: translateX(75vw) translateY(-30px) rotate(-2deg);
    }

    100% {
        transform: translateX(100vw) translateY(0) rotate(0deg);
    }
}

@keyframes flyBird4 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    33% {
        transform: translateX(33vw) translateY(10px) rotate(-4deg);
    }

    66% {
        transform: translateX(66vw) translateY(-20px) rotate(4deg);
    }

    100% {
        transform: translateX(100vw) translateY(0) rotate(0deg);
    }
}

@keyframes flyBird5 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    20% {
        transform: translateX(20vw) translateY(-15px) rotate(3deg);
    }

    40% {
        transform: translateX(40vw) translateY(25px) rotate(-3deg);
    }

    60% {
        transform: translateX(60vw) translateY(-10px) rotate(2deg);
    }

    80% {
        transform: translateX(80vw) translateY(20px) rotate(-2deg);
    }

    100% {
        transform: translateX(100vw) translateY(0) rotate(0deg);
    }
}

@keyframes flyBird6 {
    0% {
        transform: translateX(0) translateY(0) scaleX(-1) rotate(0deg);
    }

    25% {
        transform: translateX(-25vw) translateY(-15px) scaleX(-1) rotate(-5deg);
    }

    50% {
        transform: translateX(-50vw) translateY(10px) scaleX(-1) rotate(0deg);
    }

    75% {
        transform: translateX(-75vw) translateY(-20px) scaleX(-1) rotate(5deg);
    }

    100% {
        transform: translateX(-100vw) translateY(0) scaleX(-1) rotate(0deg);
    }
}

@keyframes flyBird7 {
    0% {
        transform: translateX(0) translateY(0) scaleX(-1) rotate(0deg);
    }

    33% {
        transform: translateX(-33vw) translateY(20px) scaleX(-1) rotate(4deg);
    }

    66% {
        transform: translateX(-66vw) translateY(-15px) scaleX(-1) rotate(-4deg);
    }

    100% {
        transform: translateX(-100vw) translateY(0) scaleX(-1) rotate(0deg);
    }
}

/* Stars in the background - Only for login */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.star:nth-child(1) {
    width: 2px;
    height: 2px;
    top: 15%;
    left: 20%;
    animation: twinkle 3s infinite;
}

.star:nth-child(2) {
    width: 3px;
    height: 3px;
    top: 25%;
    left: 60%;
    animation: twinkle 4s infinite 1s;
}

.star:nth-child(3) {
    width: 2px;
    height: 2px;
    top: 40%;
    left: 40%;
    animation: twinkle 5s infinite 0.5s;
}

.star:nth-child(4) {
    width: 3px;
    height: 3px;
    top: 30%;
    left: 80%;
    animation: twinkle 6s infinite 2s;
}

.star:nth-child(5) {
    width: 2px;
    height: 2px;
    top: 50%;
    left: 10%;
    animation: twinkle 4s infinite 1.5s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Full Page Login Background - Only for login */
.full-page-login {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Auth Card Styles - Centered with birds above - Only for login */
.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
    margin-top: 60px;
}

/* Bird Title - Only for login */
.bird-title {
    text-align: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    z-index: 3;
}

.bird-title i {
    margin: 0 10px;
    animation: birdFlap 1s infinite alternate;
}

@keyframes birdFlap {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    100% {
        transform: translateY(-5px) rotate(-5deg);
    }
}

/* Auth Card - Login specific */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #004e92 0%, #000000 100%);
    border-radius: 20px 20px 0 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo section for login */
.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.app-logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #004e92 0%, #000000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.welcome-text {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.subtitle {
    color: #718096;
    font-size: 0.9rem;
}

/* Form styles for login */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group {
    position: relative;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #004e92;
    box-shadow: 0 0 0 3px rgba(0, 78, 146, 0.1);
    background: white;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    cursor: pointer;
    z-index: 3;
}

/* Login button specific */
.btn-login {
    background: linear-gradient(135deg, #000000 0%, #004e92 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    color: white;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    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.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 78, 146, 0.4);
}

.links {
    text-align: center;
    margin-top: 20px;
}

.links a {
    color: #004e92;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #000428;
    text-decoration: underline;
}

.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
}

/* Responsive adjustments for login only */
@media (max-width: 768px) {
    .auth-container {
        margin-top: 40px;
        padding: 0 20px;
    }

    .auth-card {
        padding: 30px 25px;
    }

    .bird-title {
        font-size: 1.5rem;
        top: -40px;
    }

    .birds-container {
        height: 40%;
    }

    .bird {
        width: 40px;
        height: 27px;
    }

    .bird-1,
    .bird-6 {
        width: 35px;
        height: 23px;
    }

    .bird-2,
    .bird-7 {
        width: 30px;
        height: 20px;
    }

    .bird-3 {
        width: 32px;
        height: 21px;
    }

    .bird-4 {
        width: 28px;
        height: 19px;
    }

    .bird-5 {
        width: 38px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 25px 20px;
    }

    .bird-title {
        font-size: 1.3rem;
        top: -35px;
    }

    .welcome-text {
        font-size: 1.3rem;
    }

    .app-logo {
        font-size: 2rem;
    }
}

/* ===== COMMON STYLES FOR ALL PAGES ===== */
/* Footer Styles */
.app-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* Sidebar Styles */
.sidebar {
    background-color: var(--sidebar-bg);
    width: var(--sidebar-width);
    height: 100vh;
    transition: all 0.3s ease;
    position: fixed;
    z-index: 1000;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    min-height: 70px;
}

.sidebar-header h3 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
    width: auto;
}

.sidebar.collapsed .sidebar-header h3 {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.toggle-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.toggle-btn:hover {
    transform: scale(1.1);
}

/* Sidebar Menu Container */
.sidebar-menu-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 20px;
}

/* Custom Scrollbar for Sidebar */
.sidebar-menu-container::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-menu-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.sidebar-menu-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-group {
    margin-bottom: 15px;
}

.menu-group-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 10px 20px 5px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.sidebar.collapsed .menu-group-title {
    text-align: center;
    font-size: 0;
    padding: 10px 0 5px;
}

/* Keep the divider line visible but title hidden */
.sidebar.collapsed .menu-group-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--sidebar-icon-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
    position: relative;
}

.sidebar-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu li a.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: white;
    color: white;
}

.sidebar-menu li a i {
    width: 25px;
    font-size: 1.2rem;
    margin-right: 15px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-menu li a span {
    transition: opacity 0.3s ease;
    opacity: 1;
}

.sidebar.collapsed .sidebar-menu li a {
    padding: 15px 0;
    justify-content: center;
}

.sidebar.collapsed .sidebar-menu li a i {
    margin-right: 0;
    font-size: 1.4rem;
}

.sidebar.collapsed .sidebar-menu li a span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    position: absolute;
}

/* Tooltips for collapsed sidebar */
.sidebar.collapsed .sidebar-menu li a[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1001;
    margin-left: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sidebar.collapsed .sidebar-menu li a[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.8);
    margin-left: 5px;
    z-index: 1001;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

/* Navbar */
.navbar {
    background: var(--header-bg);
    padding: 0;
    height: 70px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.navbar-brand h4 {
    color: white;
    margin: 0;
    font-weight: 700;
}

/* Navbar Scrollable Menu */
.navbar-main-content {
    flex: 1;
    display: flex;
    align-items: center;
    overflow-x: hidden;
    height: 70px;
    margin: 0 20px;
    position: relative;
    /* Hide scrollbar by default for visual cleanliness */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.navbar-main-content::-webkit-scrollbar {
    display: none;
}

.navbar-nav-scroll {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    white-space: nowrap;
}

.nav-item-scroll {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link-scroll {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.nav-link-scroll:hover,
.nav-link-scroll.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-bottom-color: white;
}

/* Scroll Buttons */
.scroll-indicator {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 2;
    transition: all 0.2s ease;
    opacity: 0;
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.4);
}

.scroll-indicator.left {
    left: 0;
}

.scroll-indicator.right {
    right: 0;
}

/* Right Section (Quick Actions & User) */
.navbar-right-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.quick-actions-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-actions-btn:hover,
.quick-actions-btn.show {
    background: white;
    color: #004e92;
}

.user-dropdown .nav-link {
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background 0.2s;
    background: transparent;
    border: none;
}

.user-dropdown .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menus */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px;
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 200px;
    background: white;
    animation: fadeInDropdown 0.2s ease;
}

.dropdown-menu.show {
    display: block;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 5px;
    color: #4a5568;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f7fafc;
    color: #004e92;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Login Page specific hiding */
body.login-page .sidebar,
body.login-page .navbar {
    display: none;
}

body.login-page .main-content {
    margin-left: 0;
}

/* Mobile Adjustments */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 5px;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .main-content.mobile-sidebar-open {
        overflow: hidden;
    }

    .navbar-main-content {
        margin: 0 10px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-menu li {
    animation: slideIn 0.3s ease forwards;
}

/* Ensure scrollbar is always visible when content overflows */
.navbar-main-content:has(.navbar-nav-scroll:not(:empty)) {
    overflow-x: auto;
}

/* Force scrollbar visibility */
.navbar-main-content.always-show-scrollbar {
    overflow-x: scroll !important;
}

.navbar-main-content.always-show-scrollbar::-webkit-scrollbar {
    display: block !important;
    visibility: visible !important;
}

/* JavaScript helper class for scroll detection */
.navbar-main-content.scrollable {
    overflow-x: auto;
}