/* =================================
   PROFESSIONAL ADMIN SIDEBAR
================================= */

/* Layout wrapper */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* =================================
   SIDEBAR CONTAINER
================================= */

.sidebar {
    width: 280px;
    min-height: 100vh;
    background: #FFD700;
    padding: 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

/* =================================
   BRAND SECTION
================================= */

.brand-section {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255,215,0,0.1);
}

.brand-logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 12px;
    filter: brightness(1.2);
}

.brand-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000000;
    margin: 0;
}

/* =================================
   MENU STYLING
================================= */

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    flex: 1;
}

.sidebar-menu li {
    margin-bottom: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 30px;
    color: #000000;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a span {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Hover effect */
.sidebar-menu a:hover {
    background: transparent;
    color: #000000;
    border-left: 3px solid #ae9c36;
}

/* Active menu */
.sidebar-menu a.active {
    background: transparent;
    color: #907d12;
    border-left: 3px solid #907d12;
    font-weight: 600;
}

/* Divider */
.sidebar hr {
    border: none;
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 20px;
}

/* =================================
   LOGOUT BUTTON
================================= */

.logout-btn {
    width: calc(100% - 40px);
    margin: 0 20px 30px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220,53,69,0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.logout-btn span {
    font-size: 16px;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220,53,69,0.3);
    background: linear-gradient(135deg, #e04555 0%, #d63384 0%);
}

/* =================================
   CONTENT AREA
================================= */

.content-area {
    flex: 1;
    background: var(--sw-black, #1A1A1A);
    color: var(--sw-white-soft, #E8E8E8);
    padding: 40px;
    overflow-y: auto;
}

/* =================================
   RESPONSIVE
================================= */

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    background: #FFD700;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #000;
    margin: 4px 0;
    border-radius: 2px;
}

@media (max-width: 991px) {
    .sidebar {
        width: 260px;
    }

    .content-area {
        padding: 30px 24px;
    }
}

@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        padding: 0;
        display: none; /* Hide sidebar on mobile */
    }

    .sidebar.mobile-open {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        z-index: 999;
        overflow-y: auto;
    }

    .brand-section {
        padding: 20px;
        position: relative;
    }

    .mobile-close-btn {
        display: block;
        position: absolute;
        top: 15px;
        left: 15px;
        background: #000;
        color: #FFD700;
        border: 2px solid #FFD700;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        font-size: 18px;
        cursor: pointer;
        z-index: 10;
    }

    .content-area {
        padding: 20px 15px;
    }

    /* Show mobile menu toggle button */
    .mobile-menu-toggle {
        display: block;
    }
}

@media (min-width: 769px) {
    /* Hide mobile close button on desktop */
    .mobile-close-btn {
        display: none !important;
    }

    /* Hide mobile menu toggle button on desktop */
    .mobile-menu-toggle {
        display: none !important;
    }
}
