/* ============================================================
   Seven Star Wellness - Application Styles (auth, dashboard,
   checkout, invoice, admin)
   ============================================================ */

/* ---------- Auth pages ---------- */
.auth-body {
    background: linear-gradient(135deg, #300D4F 0%, #7B2CBF 100%);
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    width: 100%;
    max-width: 460px;
    color: #212529;
}

/* ---------- Dashboard body ---------- */
.dashboard-body {
    background: #f1f3f8;
    color: #212529;
}

.dashboard-body .navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.account-shell {
    min-height: 80vh;
}

/* Sidebar */
.account-sidebar {
    background: linear-gradient(180deg, #300D4F 0%, #4E148C 100%);
}

.account-sidebar-head {
    padding: 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-nav li a {
    display: flex;
    align-items: center;
    padding: 11px 18px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.account-nav li a i {
    width: 22px;
    margin-right: 10px;
    text-align: center;
}

.account-nav li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.account-nav li a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #00FFFF;
    border-left-color: #00FFFF;
}

/* Dashboard stat cards */
.dash-stat-card {
    background: #fff;
    border-left: 4px solid #7B2CBF;
}

.dash-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f0e6ff;
    color: #7B2CBF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Dashboard panels */
.dash-panel {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Delivery timeline */
.delivery-timeline {
    position: relative;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.delivery-timeline::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: #e0e0e0;
}

.timeline-step {
    flex: 1;
    position: relative;
    z-index: 1;
}

.timeline-dot {
    width: 28px;
    height: 28px;
    background: #e9ecef;
    color: #6c757d;
    font-size: 0.75rem;
}

.timeline-step.done .timeline-dot {
    background: #7B2CBF;
    color: #fff;
}

.timeline-step.done small {
    color: #4E148C;
}

/* ---------- Checkout payment options ---------- */
.payment-option input {
    display: none;
}

.payment-option .payment-box {
    border: 2px solid #dee2e6;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
}

.payment-option input:checked + .payment-box {
    border-color: #7B2CBF;
    background: #f7f1ff;
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.15);
}

/* ---------- Invoice sheet ---------- */
.invoice-sheet {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.invoice-table thead th {
    background: #300D4F !important;
    color: #fff;
    border-color: #300D4F !important;
}

/* ---------- Admin ---------- */
.admin-body {
    background: #eef0f4;
    color: #212529;
    height: 100vh;
    overflow: hidden;
}

.admin-sidebar {
    background: linear-gradient(180deg, #300D4F 0%, #4E148C 100%);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-main-wrap {
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .brand-area {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-nav a {
    display: flex;
    align-items: center;
    padding: 11px 18px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.admin-nav a i {
    width: 22px;
    margin-right: 10px;
    text-align: center;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-nav a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #00FFFF;
    border-left-color: #00FFFF;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-stat-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.admin-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ---------- Misc ---------- */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Print ---------- */
@media print {
    .navbar,
    .admin-sidebar,
    .admin-topbar,
    .account-shell .col-lg-3,
    .print-hide,
    footer,
    .stars-container {
        display: none !important;
    }

    main.p-4 {
        padding: 0 !important;
    }

    .account-shell .col-lg-9 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    body.dashboard-body {
        background: #fff !important;
    }

    .invoice-sheet {
        box-shadow: none !important;
        border: none !important;
    }
}
