/* Sidebar Container */
#layout-menu {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    box-shadow: 0 0.125rem 0.375rem 0 rgba(161, 172, 184, 0.12);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Brand Section (Logo) */
.app-brand {
    display: flex;
    align-items: center;
    padding: 1.5rem 1.25rem;
    min-height: 64px;
}

.app-brand-logo img {
    max-width: 160px;
    height: auto;
}

/* Scrollable Menu Area */
.menu-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Menu Items */
.menu-item {
    padding: 0.25rem 1rem;
    width: 100%;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    color: #566a7f;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: background-color 0.2s, color 0.2s;
}

/* Hover & Active States */
.menu-item:not(.active) .menu-link:hover {
    background-color: rgba(67, 89, 113, 0.04);
    color: #566a7f;
}

.menu-item.active .menu-link {
    background-color: rgba(105, 108, 255, 0.16) !important;
    color: #696cff !important;
    font-weight: 600;
}

/* Icons */
.menu-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
}

/* Bottom Logout Section */
.dashbord-logout-main {
    margin-top: auto; /* Pushes logout to the bottom */
    padding-bottom: 1.5rem;
}

.act-logout-btn {
    background: transparent;
    border: 1px solid #ff3e1d;
    color: #ff3e1d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.act-logout-btn:hover {
    background: #ff3e1d;
    color: #fff;
}

/* Responsive: Hide sidebar on small screens if needed */
@media (max-width: 1199px) {
    #layout-menu {
        transform: translateX(-100%);
    }
    #layout-menu.open {
        transform: translateX(0);
    }
}

/* Layout Wrapper Adjustments */
.layout-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-left: 260px; /* Must match sidebar width from previous CSS */
    transition: all 0.3s ease;
}

/* Navbar Styling */
.layout-navbar {
    height: 70px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e7eaf0;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* User Avatar & Dropdown */
.avatar {
    position: relative;
    width: 40px;
    height: 40px;
}

.avatar img {
    width: 100%;
    height: 100%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.avatar-online::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: #71dd37; /* Green status dot */
    border: 2px solid #fff;
    border-radius: 50%;
}

/* Content Area */
.content-wrapper {
    flex: 1;
    padding: 2rem;
    background-color: #f5f5f9;
}

.dashbord-order-table {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12);
}

.author-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #566a7f;
    margin-bottom: 1.5rem;
}

/* Sidebar Overlay (For Mobile/JavaScript) */
.sidebar-overlay-functional {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay-functional.active-sidebar {
    display: block;
    opacity: 1;
}

/* Responsive Overrides */
@media (max-width: 1199px) {
    .layout-page {
        padding-left: 0; /* Sidebar is hidden on mobile */
    }
    
    #layout-menu.sidebar-open {
        transform: translateX(0);
    }
}

tbody tr {
    background: white !important;
}