/* =========================
   ADMIN DASHBOARD PAGE
========================= */

.admin-dashboard-page {
    width: 100%;
    min-height: calc(100vh - 96px);
    background: #f3f2ee;
    color: #050505;
}

.admin-dashboard-shell {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(250px, 292px) minmax(0, 1fr);
    border-top: 1px solid rgba(5, 5, 5, 0.14);
}

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

.admin-dashboard-sidebar {
    min-width: 0;
    border-right: 1px solid rgba(5, 5, 5, 0.16);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.22) 0%,
            rgba(255, 255, 255, 0.04) 100%
        );
}

.admin-dashboard-sidebar__inner {
    min-height: calc(100vh - 97px);
    display: flex;
    flex-direction: column;
    padding: clamp(26px, 2.8vw, 42px) clamp(18px, 2vw, 30px);
}

.admin-dashboard-sidebar__head {
    margin-bottom: clamp(18px, 2vw, 28px);
}

.admin-dashboard-sidebar__head span {
    color: rgba(5, 5, 5, 0.52);
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.012em;
    text-transform: uppercase;
}

.admin-dashboard-sidebar__footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 28px;
    border-top: 1px solid rgba(5, 5, 5, 0.14);
    color: rgba(5, 5, 5, 0.5);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

/* =========================
   NAV
========================= */

.admin-dashboard-nav {
    display: flex;
    flex-direction: column;
}

.admin-dashboard-nav__link {
    position: relative;
    min-height: 48px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 0 14px;
    color: #050505;
    text-decoration: none;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        padding-left 0.18s ease;
}

.admin-dashboard-nav__link::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: transparent;
    transition: background 0.18s ease;
}

.admin-dashboard-nav__icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    flex: 0 0 24px;
}

.admin-dashboard-nav__icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-dashboard-nav__icon img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
}

.admin-dashboard-nav__text {
    color: currentColor;
    font-size: clamp(12px, 0.82vw, 14px);
    font-weight: 900;
    line-height: 1;
}

.admin-dashboard-nav__link:hover {
    padding-left: 20px;
    background: rgba(255, 33, 24, 0.07);
    color: #ff2118;
}

.admin-dashboard-nav__link--active {
    background: rgba(255, 33, 24, 0.08);
    color: #ff2118;
}

.admin-dashboard-nav__link--active::before {
    background: #ff2118;
}

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

.admin-dashboard-main {
    min-width: 0;
    padding: clamp(30px, 3vw, 48px) clamp(28px, 3.4vw, 52px) clamp(54px, 5vw, 82px);
}

.admin-dashboard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(26px, 2.6vw, 38px);
}

.admin-dashboard-head h1 {
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(40px, 3.6vw, 64px);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.078em;
    text-transform: uppercase;
}

.admin-dashboard-head p {
    max-width: 560px;
    margin: 14px 0 0;
    color: rgba(5, 5, 5, 0.58);
    font-size: clamp(13px, 0.92vw, 16px);
    font-weight: 800;
    line-height: 1.36;
}

/* =========================
   STATS
========================= */

.admin-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.3vw, 18px);
    margin-bottom: clamp(18px, 2vw, 28px);
}

.admin-dashboard-stat {
    min-height: clamp(112px, 9vw, 144px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(18px, 1.7vw, 24px);
    border: 1px solid rgba(5, 5, 5, 0.16);
    background: rgba(255, 255, 255, 0.18);
}

.admin-dashboard-stat span {
    color: rgba(5, 5, 5, 0.66);
    font-family: var(--font-display);
    font-size: clamp(10px, 0.72vw, 12px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.012em;
    text-transform: uppercase;
}

.admin-dashboard-stat strong {
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(38px, 3.2vw, 58px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.075em;
    text-transform: uppercase;
}

.admin-dashboard-stat--wide strong {
    font-size: clamp(30px, 2.5vw, 48px);
}

/* =========================
   PANELS
========================= */

.admin-dashboard-panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(14px, 1.5vw, 22px);
}

.admin-dashboard-panel {
    min-width: 0;
    min-height: 410px;
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2vw, 28px);
    border: 1px solid rgba(5, 5, 5, 0.16);
    background: rgba(255, 255, 255, 0.16);
}

.admin-dashboard-panel__head {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(5, 5, 5, 0.78);
}

.admin-dashboard-panel__head h2 {
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(22px, 1.7vw, 32px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

/* =========================
   LOW STOCK
========================= */

.admin-dashboard-stock-list {
    display: flex;
    flex-direction: column;
}

.admin-dashboard-stock-item {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(5, 5, 5, 0.12);
}

.admin-dashboard-stock-item strong {
    display: block;
    color: #050505;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
}

.admin-dashboard-stock-item span {
    display: block;
    margin-top: 5px;
    color: rgba(5, 5, 5, 0.54);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
}

.admin-dashboard-stock-item em {
    color: #ff2118;
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

/* =========================
   LATEST ORDERS
========================= */

.admin-dashboard-orders-list {
    display: flex;
    flex-direction: column;
}

.admin-dashboard-order-item {
    min-height: 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(5, 5, 5, 0.12);
    color: #050505;
    text-decoration: none;
    transition: color 0.18s ease;
}

.admin-dashboard-order-item strong {
    display: inline;
    color: currentColor;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.admin-dashboard-order-item span {
    color: rgba(5, 5, 5, 0.72);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.admin-dashboard-order-item:hover {
    color: #ff2118;
}

.admin-dashboard-order-status {
    color: rgba(5, 5, 5, 0.72);
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.admin-dashboard-order-status--paid,
.admin-dashboard-order-status--used {
    color: #108b36;
}

.admin-dashboard-order-status--booked {
    color: #d38b00;
}

.admin-dashboard-order-status--cancelled,
.admin-dashboard-order-status--expired,
.admin-dashboard-order-status--refunded {
    color: #d50000;
}

/* =========================
   EMPTY
========================= */

.admin-dashboard-empty {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(255, 255, 255, 0.18);
    text-align: center;
}

.admin-dashboard-empty span {
    color: #050505;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
}

/* =========================
   MORE LINK
========================= */

.admin-dashboard-more {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: auto;
    padding-top: 20px;
    color: #ff2118;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: color 0.18s ease;
}

.admin-dashboard-more span {
    color: currentColor;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

.admin-dashboard-more:hover {
    color: #050505;
}

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

@media (max-width: 1180px) {
    .admin-dashboard-shell {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-sidebar {
        border-right: 0;
        border-bottom: 1px solid rgba(5, 5, 5, 0.16);
    }

    .admin-dashboard-sidebar__inner {
        min-height: auto;
        padding: 24px 22px;
    }

    .admin-dashboard-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .admin-dashboard-nav__link::before {
        left: 0;
        top: auto;
        right: 0;
        bottom: 0;
        width: auto;
        height: 2px;
    }

    .admin-dashboard-sidebar__footer {
        display: none;
    }

    .admin-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .admin-dashboard-main {
        padding: 26px 14px 52px;
    }

    .admin-dashboard-sidebar__inner {
        padding: 20px 14px;
    }

    .admin-dashboard-nav {
        grid-template-columns: 1fr 1fr;
    }

    .admin-dashboard-nav__link {
        min-height: 44px;
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 12px;
        padding: 0 10px;
    }

    .admin-dashboard-nav__icon,
    .admin-dashboard-nav__icon svg,
    .admin-dashboard-nav__icon img {
        width: 20px;
        height: 20px;
    }

    .admin-dashboard-head h1 {
        font-size: clamp(34px, 12vw, 52px);
    }

    .admin-dashboard-head p {
        font-size: 13px;
    }

    .admin-dashboard-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .admin-dashboard-stat {
        min-height: 104px;
    }

    .admin-dashboard-panel {
        min-height: auto;
        padding: 18px 14px;
    }

    .admin-dashboard-order-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 420px) {
    .admin-dashboard-nav {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-stat strong {
        font-size: 36px;
    }

    .admin-dashboard-panel__head h2 {
        font-size: 22px;
    }
}