body {
    margin: 0;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
    background: #f7f7f7;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Mobile Top Bar */
.mobile-top-bar {
    background: #22223b;
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 50px;
}

.mobile-logo {
    height: 40px;
    width: auto;
}

.mobile-brand-text {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Mobile Info Bar */
.mobile-info-bar {
    background: #4a4e69;
    padding: 0.5rem 0;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 1020;
}

/* Sidebar */
.sidebar {
    background: #22223b;
    color: #fff;
    padding-top: 1rem;
    min-height: 100vh;
    transition: transform 0.3s ease;
}

.logo-container {
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.logo {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar nav ul li {
    margin: 0;
    padding: 0;
}
.sidebar nav ul li a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: background 0.2s;
}
.sidebar nav ul li a i {
    font-size: 1.2rem;
    min-width: 1.5rem;
    text-align: center;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}
.sidebar nav ul li a:hover {
    background: #4a4e69;
}
.sidebar hr {
    border: 0;
    border-top: 1px solid #4a4e69;
    margin: 0.5rem 0;
}

.sidebar .nav-header {
    color: #fff !important;
    opacity: 0.8;
}

.sidebar .nav-link {
    color: #fff !important;
    cursor: pointer;
}

.sidebar .nav-link.active {
    background: #4a4e69;
    color: #fff !important;
}

.sidebar .nav-link:hover {
    background: #4a4e69;
    color: #fff !important;
}

@media (max-width: 991.98px) {
    body {
        padding-top: 100px;
    }

    .mobile-top-bar {
        height: 45px;
        display: flex;
        align-items: center;
    }

    .mobile-top-bar .mobile-logo {
        height: 35px;
    }

    .mobile-top-bar .mobile-brand-text {
        font-size: 1rem;
    }

    .mobile-info-bar {
        height: 40px;
        display: flex;
        align-items: center;
        top: 45px;
    }

    .sidebar {
        position: fixed;
        top: 85px;
        left: 0;
        bottom: 0;
        z-index: 1040;
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        background: #22223b;
    }

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

    #sidebarMenu {
        background: #22223b;
        position: relative;
        z-index: 1041;
    }

    #sidebarMenu .nav-link {
        color: #fff !important;
        padding: 0.75rem 1rem;
        position: relative;
        z-index: 1042;
        cursor: pointer;
    }

    #sidebarMenu .nav-link i {
        color: #fff !important;
    }

    #sidebarMenu .nav-header {
        color: #fff !important;
        opacity: 0.8;
        padding: 0.75rem 1rem;
    }

    #sidebarMenu .nav-link.active {
        background: #4a4e69;
        color: #fff !important;
    }

    #sidebarMenu .nav-link:hover {
        background: #4a4e69;
        color: #fff !important;
    }

    .main-content {
        margin-top: 0;
        padding-top: 1rem;
    }

    .navbar-toggler {
        background: transparent !important;
        border: none !important;
        padding: 0.25rem;
    }

    .navbar-toggler i {
        color: #fff;
        font-size: 1.25rem;
    }

    .sidebar-overlay {
        top: 85px;
    }

    .brand-image {
        width: 35px;
        height: 45px;
    }
}

/* Navbar */
.navbar {
    background: #22223b !important;
    padding: 0.5rem 1rem;
}

.navbar .nav-link {
    color: #fff !important;
    padding: 0.5rem 1rem;
}

.navbar .dropdown-menu {
    background: #fff;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar .dropdown-item {
    color: #22223b;
    padding: 0.5rem 1rem;
}

.navbar .dropdown-item:hover {
    background: #f8f9fa;
}

/* Main Content */
.main-content {
    padding-top: 1rem;
}

/* Footer */
.footer {
    background: #22223b;
    color: #fff;
    padding: 1rem 0;
    margin-top: auto;
}

/* Utility Classes */
.text-white {
    color: #fff !important;
}

.bg-dark {
    background-color: #22223b !important;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1035;
}

.sidebar-overlay.show {
    display: block;
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background: #4a4e69;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.5rem;
}

.close-sidebar {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .close-sidebar {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 999;
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .top-frame {
        padding: 0.75rem 1rem;
    }

    .datetime {
        font-size: 0.9rem;
    }

    .content {
        padding: 1rem;
    }

    .sidebar nav ul li a {
        padding: 1rem;
    }

    .sidebar nav ul li a i {
        font-size: 1.3rem;
        margin-right: 0.75rem;
    }

    .logo {
        max-width: 120px;
    }
}

@media screen and (max-width: 480px) {
    .right-info {
        gap: 1rem;
    }

    .datetime {
        font-size: 0.8rem;
    }

    .user-avatar {
        font-size: 1.5rem;
    }

    .content {
        padding: 0.75rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .mobile-menu-toggle,
    .close-sidebar,
    .overlay {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    .top-frame {
        background: none;
        color: black;
    }

    .content {
        padding: 0;
    }
}

/* Navbar toggler styling */
.navbar-toggler {
    background-color: transparent !important;
    border: 2px solid white !important;
    padding: 0.5rem;
    margin: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5);
}

.navbar-toggler i {
    color: white;
    font-size: 1.5rem;
}

.navbar.bg-dark .navbar-toggler {
    border-color: white !important;
}

.content-wrapper {
    flex: 1;
    padding-bottom: 2rem;
}

.brand-image {
    width: 60px;
    height: 80px;
    object-fit: contain;
    object-position: center;
} 