/* =====================================================
   PANEL (Dashboard / Member Area) — shared styles
   Uses design tokens + font already defined in app.css
   ===================================================== */

.panelBody{
    background-color: #f4f6f7;
    min-height: 100vh;
}

.panelWrap{
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

/* ===================== SIDEBAR ===================== */

.panelSidebar{
    width: 272px;
    flex: 0 0 272px;
    background-color: #ffffff;
    border-left: 1px solid rgba(12, 39, 51, 0.06);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 40;
    transition: transform 280ms var(--ease);
}

.panelSidebarTop{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    padding: 0 6px;
}

.panelLogo img{
    height: 34px;
    width: auto;
    display: block;
}

.sidebarCloseBtn{
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #f4f6f7;
    color: var(--navy);
    font-size: 15px;
}

.panelMenu{
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.panelMenuItem{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    color: var(--primary-text);
    font-size: 15px;
    transition: all 200ms var(--ease);
}

.panelMenuItem i{
    width: 18px;
    text-align: center;
    font-size: 16px;
    color: var(--muted-text);
    transition: color 200ms var(--ease);
}

.panelMenuItem:hover{
    background-color: rgba(14, 94, 125, 0.06);
    color: var(--primary-color);
}

.panelMenuItem:hover i{
    color: var(--primary-color);
}

.panelMenuItem.active{
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.panelMenuItem.active i{
    color: var(--gold-light);
}

.panelSidebarBottom{
    padding-top: 16px;
    border-top: 1px solid rgba(12, 39, 51, 0.06);
}

.panelLogoutBtn{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    color: #b5424a;
    font-size: 15px;
    transition: background-color 200ms var(--ease);
}

.panelLogoutBtn:hover{
    background-color: rgba(181, 66, 74, 0.08);
}

.panelLogoutBtn i{
    width: 18px;
    text-align: center;
}

/* ===================== MAIN ===================== */

.panelMain{
    flex: 1;
    min-width: 0;
    padding: 36px 44px 60px;
}

.panelTopbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.sidebarOpenBtn{
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--navy);
    box-shadow: var(--shadow-soft);
    font-size: 16px;
    margin-left: 14px;
}

.panelGreeting h1{
    font-size: 26px;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 4px;
}

.panelGreeting p{
    font-size: 14px;
    color: var(--muted-text);
}

.panelTopbarActions{
    display: flex;
    align-items: center;
    gap: 12px;
}

.panelSearch{
    position: relative;
    display: flex;
    align-items: center;
}

.panelSearch input{
    width: 210px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background-color: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 0 42px 0 18px;
    font-family: 'shabnam';
    font-size: 13px;
    color: var(--primary-text);
}

.panelSearch input::placeholder{
    color: var(--muted-text);
}

.panelSearch i{
    position: absolute;
    left: 16px;
    color: var(--muted-text);
    font-size: 14px;
}

.panelIconBtn{
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 16px;
    transition: all 200ms var(--ease);
}

.panelIconBtn:hover{
    color: var(--primary-color);
    box-shadow: var(--shadow-mid);
}

.panelBadgeDot{
    position: absolute;
    top: 10px;
    left: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gold);
    border: 2px solid #ffffff;
}

.panelAvatarBtn{
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    flex: 0 0 44px;
}

.panelAvatarBtn img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===================== SECTION HEAD ===================== */

.panelSectionHead{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panelSectionHead h2{
    font-size: 19px;
    color: var(--navy);
    font-weight: 700;
}

.panelSectionHead h3{
    font-size: 17px;
    color: var(--navy);
    font-weight: 700;
}

.panelSeeAll{
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--primary-color);
    transition: gap 200ms var(--ease);
}

.panelSeeAll i{
    font-size: 11px;
    transition: transform 200ms var(--ease);
}

.panelSeeAll:hover i{
    transform: translateX(-3px);
}

.panelSection{
    margin-bottom: 34px;
}

/* ===================== FAVORITES GRID ===================== */

.favGrid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.favCard{
    background-color: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 250ms var(--ease);
}

.favCard:hover{
    box-shadow: var(--shadow-lift);
    transform: translateY(-3px);
}

.favCardImgWrap{
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.favCardImgWrap img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms var(--ease);
}

.favCard:hover .favCardImgWrap img{
    transform: scale(1.06);
}

.favHeartBtn{
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-text);
    font-size: 14px;
    backdrop-filter: blur(4px);
}

.favHeartBtn.active{
    color: #d84f5c;
}

.favCardInfo{
    padding: 14px 16px 16px;
}

.favCardInfo h4{
    font-size: 15px;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 8px;
}

.favCardMeta{
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--muted-text);
}

.favCardMeta i{
    color: var(--gold);
    margin-left: 5px;
}

/* ===================== BOTTOM GRID (Reservations + Requests) ===================== */

.panelBottomGrid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.panelListCard{
    background-color: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 20px 20px 8px;
}

.panelListRows{
    list-style: none;
}

.listRow{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(12, 39, 51, 0.06);
}

.listRow:last-child{
    border-bottom: none;
}

.listRowThumb{
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex: 0 0 46px;
}

.listRowThumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listRowIcon{
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    flex: 0 0 46px;
    background-color: rgba(14, 94, 125, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.listRowBody{
    flex: 1;
    min-width: 0;
}

.listRowBody h5{
    font-size: 13.5px;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listRowSub{
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--muted-text);
}

.statusBadge{
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.statusConfirmed{
    background-color: rgba(43, 148, 99, 0.12);
    color: #2b9463;
}

.statusPending{
    background-color: rgba(201, 164, 92, 0.16);
    color: #a1782f;
}

.statusCancelled{
    background-color: rgba(200, 68, 68, 0.12);
    color: #c84444;
}

.statusExpired{
    background-color: rgba(180, 90, 40, 0.12);
    color: #b45a28;
}

.statusCompleted{
    background-color: rgba(76, 83, 90, 0.1);
    color: var(--primary-text);
}

/* ===================== MOBILE OVERLAY ===================== */

.panelOverlay{
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(8, 26, 34, 0.45);
    z-index: 30;
}

.panelOverlay.show{
    display: block;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1080px){
    .favGrid{
        grid-template-columns: repeat(2, 1fr);
    }

    .panelBottomGrid{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px){
    .panelSidebar{
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        box-shadow: var(--shadow-lift);
    }

    .panelSidebar.open{
        transform: translateX(0);
    }

    .sidebarCloseBtn{
        display: flex;
    }

    .sidebarOpenBtn{
        display: flex;
    }

    .panelMain{
        padding: 24px 20px 50px;
    }

    .panelTopbar{
        flex-wrap: wrap;
    }

    .panelSearch input{
        width: 150px;
    }
}

@media (max-width: 620px){
    .favGrid{
        grid-template-columns: 1fr;
    }

    .panelGreeting h1{
        font-size: 21px;
    }

    .panelSearch{
        display: none;
    }
}
