/* Sidebar Navigation Layout */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1001;
}

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

.top-header .header-left img {
    height: 40px;
    width: auto;
}

.top-header .header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-header .welcome-text {
    color: #1C1B54;
    font-weight: 500;
    font-size: 0.95rem;
}

.top-header .logout-btn {
    background: #2BA8E0;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

.top-header .logout-btn:hover {
    background: #2596cc;
}

.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 220px;
    height: calc(100vh - 60px);
    background: #FFFFFF;
    border-right: 1px solid #e1e5e9;
    overflow-y: auto;
    z-index: 1000;
    padding: 1rem 0;
    transition: transform 0.3s ease;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0.75rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.sidebar-nav a:hover {
    background: #f0f2f5;
    color: #1C1B54;
}

.sidebar-nav a.active {
    background: #1C1B54;
    color: #FFFFFF;
}

.sidebar-nav a .nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar-nav .nav-divider {
    height: 1px;
    background: #e1e5e9;
    margin: 0.5rem 1rem;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
}

.sidebar-toggle span {
    width: 22px;
    height: 2.5px;
    background: #1C1B54;
    margin: 2.5px 0;
    transition: 0.3s;
    border-radius: 2px;
    display: block;
}

.sidebar-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.sidebar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* Main content offset */
.page-content {
    margin-left: 220px;
    margin-top: 60px;
    padding-top: 60px;
    min-height: calc(100vh - 60px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    }

    .sidebar-toggle {
        display: flex;
    }

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

    .top-header .welcome-text {
        display: none;
    }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
}

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