/* Sidebar Styles - Freeman Burgundy Theme */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    background: linear-gradient(180deg, #8B1538 0%, #6B0F2A 100%);
    width: 64px;
    transition: width 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar:hover {
    width: 240px;
}

.sidebar-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo img {
    height: 32px;
    width: auto;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.sidebar-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-nav-item.active {
    background-color: rgba(211, 47, 47, 0.3);
    color: white;
    border-left: 4px solid #ff6b6b;
}

.sidebar-nav-item-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.sidebar-nav-item-label {
    margin-left: 16px;
    opacity: 0;
    transition: opacity 0.2s;
}

.sidebar:hover .sidebar-nav-item-label {
    opacity: 1;
}

.main-wrapper {
    margin-left: 64px;
    width: calc(100% - 64px);
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.top-header {
    background: white;
    height: 64px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-header-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.content-area {
    padding: 24px;
    min-height: calc(100vh - 64px);
    background-color: #f5f5f5;
}

/* Hide old tab styles when sidebar is active */
.app-layout .main-tab {
    display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        width: 240px;
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
    }

    .hamburger-btn {
        display: block !important;
    }
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
