/* =========================================
   UZAYO ADMIN DASHBOARD
========================================= */

.admin-page {
    min-height: 80vh;
    padding: 80px 25px 100px;
    background: #f7f7f5;
}

.admin-container {
    width: min(1400px, 100%);
    margin: 0 auto;
}


/* =========================================
   ADMIN HEADER
========================================= */

.admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;
}

.admin-eyebrow {
    display: block;
    margin-bottom: 12px;

    color: #b89b5e;

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 3px;
    text-transform: uppercase;
}

.admin-header h1 {
    margin: 0 0 12px;

    color: #111;

    font-family: "Playfair Display", serif;

    font-size: clamp(2.8rem, 5vw, 4.4rem);
    font-weight: 500;

    line-height: 1;
}

.admin-header p {
    margin: 0;

    color: #777;

    font-size: 0.9rem;

    line-height: 1.7;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-status {
    display: inline-flex;
    align-items: center;

    padding: 9px 14px;

    border: 1px solid #dedbd4;

    background: #fff;

    color: #777;

    font-size: 0.62rem;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.admin-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 18px;

    background: #111;

    color: #fff;

    text-decoration: none;

    font-size: 0.63rem;
    font-weight: 700;

    letter-spacing: 1.3px;

    transition: 0.25s ease;
}

.admin-logout:hover {
    background: #b89b5e;
}


/* =========================================
   STATISTICS
========================================= */

.admin-stats {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 45px;
}

.admin-stat-card {
    padding: 25px;

    background: #fff;

    border: 1px solid #e5e3de;

    transition: 0.25s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);

    border-color: #d6d1c6;
}

.admin-stat-label {
    display: block;

    margin-bottom: 12px;

    color: #999;

    font-size: 0.62rem;
    font-weight: 700;

    letter-spacing: 1.7px;
}

.admin-stat-card strong {
    display: block;

    color: #111;

    font-family: "Playfair Display", serif;

    font-size: 2.1rem;
    font-weight: 500;
}


/* =========================================
   SECTIONS
========================================= */

.admin-section {
    margin-bottom: 45px;

    background: #fff;

    border: 1px solid #e3e1dc;
}

.admin-section-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 28px 30px;

    border-bottom: 1px solid #e5e3de;
}

.admin-section-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: #b89b5e;

    font-size: 0.6rem;
    font-weight: 700;

    letter-spacing: 2px;
}

.admin-section-header h2 {
    margin: 0;

    color: #111;

    font-family: "Playfair Display", serif;

    font-size: 1.7rem;
    font-weight: 500;
}

.admin-section-count {
    padding: 8px 12px;

    background: #f6f5f2;

    color: #777;

    font-size: 0.62rem;
    font-weight: 600;

    letter-spacing: 1px;
}


/* =========================================
   TABLE WRAPPER
========================================= */

.orders-table-wrapper {
    width: 100%;

    overflow-x: auto;
}


/* =========================================
   TABLE
========================================= */

.admin-table {
    width: 100%;

    border-collapse: collapse;

    min-width: 900px;
}

.admin-table thead {
    background: #faf9f7;
}

.admin-table th {
    padding: 15px 20px;

    border-bottom: 1px solid #e5e3de;

    color: #999;

    font-size: 0.58rem;
    font-weight: 700;

    letter-spacing: 1.4px;

    text-align: left;

    white-space: nowrap;
}

.admin-table td {
    padding: 19px 20px;

    border-bottom: 1px solid #eeeeeb;

    color: #555;

    font-size: 0.78rem;

    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: #fafaf8;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}


/* =========================================
   ORDER INFORMATION
========================================= */

.order-id {
    color: #111;

    font-size: 0.82rem;

    font-weight: 700;
}

.stripe-id {
    margin-top: 6px;

    color: #aaa;

    font-size: 0.58rem;

    font-family: monospace;
}


/* =========================================
   CUSTOMER
========================================= */

.customer-name {
    margin-bottom: 5px;

    color: #222;

    font-size: 0.78rem;

    font-weight: 600;
}

.customer-email {
    color: #999;

    font-size: 0.68rem;

    word-break: break-word;
}


/* =========================================
   ORDER PRODUCTS
========================================= */

.order-products {
    display: flex;

    flex-direction: column;

    gap: 6px;

    min-width: 190px;
}

.order-product {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    color: #555;

    font-size: 0.7rem;
}

.order-product small {
    color: #999;

    font-size: 0.66rem;

    white-space: nowrap;
}


/* =========================================
   ORDER TOTAL
========================================= */

.order-total {
    color: #111;

    font-size: 0.85rem;

    font-weight: 700;

    white-space: nowrap;
}


/* =========================================
   ORDER STATUS
========================================= */

.order-status {
    display: inline-block;

    padding: 7px 10px;

    background: #f0f2ed;

    color: #65765a;

    font-size: 0.57rem;

    font-weight: 700;

    letter-spacing: 1px;

    white-space: nowrap;
}


/* =========================================
   ORDER DATE
========================================= */

.order-date {
    color: #555;

    font-size: 0.72rem;

    white-space: nowrap;
}

.order-date small {
    display: block;

    margin-top: 4px;

    color: #999;

    font-size: 0.62rem;
}


/* =========================================
   CUSTOMER ROLES
========================================= */

.admin-role,
.customer-role {
    display: inline-block;

    padding: 6px 9px;

    font-size: 0.55rem;

    font-weight: 700;

    letter-spacing: 1px;
}

.admin-role {
    background: #eee8dc;

    color: #8b6d38;
}

.customer-role {
    background: #f2f2f0;

    color: #777;
}


/* =========================================
   USER STATUS
========================================= */

.user-status {
    display: inline-block;

    padding: 6px 9px;

    background: #f0f2ed;

    color: #65765a;

    font-size: 0.55rem;

    font-weight: 700;

    letter-spacing: 1px;
}


/* =========================================
   EMPTY STATES
========================================= */

.admin-empty {
    padding: 65px 30px;

    text-align: center;
}

.admin-empty-icon {
    margin-bottom: 12px;

    color: #b89b5e;

    font-size: 2rem;
}

.admin-empty h3 {
    margin: 0 0 10px;

    color: #222;

    font-family: "Playfair Display", serif;

    font-size: 1.35rem;

    font-weight: 500;
}

.admin-empty p {
    margin: 0;

    color: #888;

    font-size: 0.78rem;
}


/* =========================================
   SMALL TEXT IN TABLES
========================================= */

.admin-table small {
    color: #999;

    font-size: 0.65rem;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-header {
        align-items: flex-start;

        flex-direction: column;
    }

    .admin-header-right {
        width: 100%;

        justify-content: space-between;
    }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 700px) {

    .admin-page {
        padding: 55px 15px 75px;
    }

    .admin-section-header {
        padding: 23px 20px;

        align-items: flex-start;

        flex-direction: column;
    }

    .admin-stat-card {
        padding: 20px;
    }

    .admin-stat-card strong {
        font-size: 1.8rem;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 500px) {

    .admin-page {
        padding: 45px 12px 60px;
    }

    .admin-header h1 {
        font-size: 2.8rem;
    }

    .admin-header-right {
        align-items: stretch;

        flex-direction: column;
    }

    .admin-status,
    .admin-logout {
        justify-content: center;
    }

    .admin-stats {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .admin-stat-card {
        padding: 17px 15px;
    }

    .admin-stat-label {
        font-size: 0.55rem;
    }

    .admin-stat-card strong {
        font-size: 1.6rem;
    }

    .admin-section {
        margin-bottom: 30px;
    }

}

/* =========================================
   ADMIN ORDER SHIPPING ADDRESS
========================================= */

.shipping-address {
    min-width: 190px;
    max-width: 260px;
    font-size: 12px;
    line-height: 1.55;
    color: #555;
}

.shipping-address strong {
    display: block;
    margin-bottom: 4px;
    color: #111;
    font-weight: 600;
}

.shipping-address div {
    margin: 0;
}

.admin-table td {
    vertical-align: top;
}

.admin-table th {
    vertical-align: middle;
}

/* Keep the order table readable with the extra shipping column */
.orders-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    min-width: 1200px;
}