/* ===================================================================
   DASHBOARD — Premium User Dashboard Styles
   Matches Infinity Iris brand aesthetic
   =================================================================== */

/* ============ DASHBOARD LAYOUT ============ */
.dash-container {
    padding: 2.5rem 0 4rem;
}

/* ============ SIDEBAR ============ */
.dash-sidebar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(30, 15, 56, 0.06);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.dash-sidebar__avatar {
    background: linear-gradient(135deg, var(--color-deep, #1E0F38) 0%, var(--color-espresso, #3D2B5A) 100%);
    padding: 2rem 1.5rem;
    text-align: center;
}

.dash-sidebar__avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.dash-sidebar__name {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1.05rem;
    color: #ffffff;
    margin: 0 0 0.25rem;
    font-weight: 500;
}

.dash-sidebar__email {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    letter-spacing: 0.3px;
}

.dash-sidebar__nav {
    padding: 0.75rem 0;
}

.dash-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    color: var(--color-earth, #6E5C8A);
    text-decoration: none;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
    letter-spacing: 0.3px;
}

.dash-sidebar__link:hover {
    background: var(--color-cream, #F3EFF8);
    color: var(--color-espresso, #3D2B5A);
    border-left-color: var(--color-gold-muted, #7B5EA7);
}

.dash-sidebar__link.active {
    background: var(--color-cream, #F3EFF8);
    color: var(--color-espresso, #3D2B5A);
    font-weight: 600;
    border-left-color: var(--color-gold-muted, #7B5EA7);
}

.dash-sidebar__link i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

.dash-sidebar__divider {
    height: 1px;
    background: var(--color-sand, #E4DCF0);
    margin: 0.25rem 1.5rem;
}

.dash-sidebar__logout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    color: #c0392b;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    background: none;
    cursor: pointer;
    border-left: 3px solid transparent;
    letter-spacing: 0.3px;
}

.dash-sidebar__logout:hover {
    background: #fdf0ef;
    border-left-color: #c0392b;
}

/* ============ CONTENT HEADER ============ */
.dash-page-title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1.5rem;
    color: var(--text-primary, #2D1B4E);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* ============ ORDER CARDS ============ */
.dash-order-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(30, 15, 56, 0.05);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    border: 1px solid var(--color-cream, #F3EFF8);
}

.dash-order-card:hover {
    box-shadow: 0 4px 16px rgba(30, 15, 56, 0.1);
    transform: translateY(-1px);
}

.dash-order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.dash-order-card__number {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #2D1B4E);
}

.dash-order-card__date {
    font-size: 0.78rem;
    color: var(--color-bronze, #9585A8);
}

.dash-order-card__body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dash-order-card__total {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gold-muted, #7B5EA7);
}

.dash-order-card__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ============ STATUS BADGE ============ */
.dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dash-badge--pending {
    background: #FDF5E6;
    color: #B8860B;
}

.dash-badge--processing {
    background: #EDE7F6;
    color: #5E35B1;
}

.dash-badge--shipped {
    background: #E3F2FD;
    color: #1565C0;
}

.dash-badge--delivered {
    background: #E8F5E9;
    color: #2E7D32;
}

.dash-badge--cancelled {
    background: #FFEBEE;
    color: #C62828;
}

.dash-badge--paid,
.dash-badge--completed {
    background: #E8F5E9;
    color: #2E7D32;
}

.dash-badge--failed {
    background: #FFEBEE;
    color: #C62828;
}

.dash-badge--refunded {
    background: #FFF3E0;
    color: #E65100;
}

/* ============ VIEW BUTTON ============ */
.dash-btn-view {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-espresso, #3D2B5A);
    border: 1.5px solid var(--color-sand, #E4DCF0);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.dash-btn-view:hover {
    background: var(--color-espresso, #3D2B5A);
    color: #ffffff;
    border-color: var(--color-espresso, #3D2B5A);
}

/* ============ CARD GENERIC ============ */
.dash-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(30, 15, 56, 0.05);
    border: 1px solid var(--color-cream, #F3EFF8);
    overflow: hidden;
}

.dash-card__header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-cream, #F3EFF8);
}

.dash-card__header h5 {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1.05rem;
    margin: 0;
    color: var(--text-primary, #2D1B4E);
}

.dash-card__body {
    padding: 1.5rem;
}

/* ============ ORDER DETAIL — STATUS TIMELINE ============ */
.dash-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 1.5rem 0;
    padding: 0 1rem;
}

.dash-timeline::before {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(1rem + 14px);
    right: calc(1rem + 14px);
    height: 2px;
    background: var(--color-sand, #E4DCF0);
}

.dash-timeline__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.dash-timeline__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-sand, #E4DCF0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--color-bronze, #9585A8);
    transition: all 0.3s ease;
}

.dash-timeline__step.active .dash-timeline__dot,
.dash-timeline__step.completed .dash-timeline__dot {
    background: var(--color-gold-muted, #7B5EA7);
    color: #ffffff;
}

.dash-timeline__step.cancelled .dash-timeline__dot {
    background: #C62828;
    color: #ffffff;
}

.dash-timeline__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-bronze, #9585A8);
    font-weight: 600;
}

.dash-timeline__step.active .dash-timeline__label,
.dash-timeline__step.completed .dash-timeline__label {
    color: var(--color-espresso, #3D2B5A);
}

/* ============ ORDER ITEM ROW ============ */
.dash-order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-cream, #F3EFF8);
}

.dash-order-item:last-child {
    border-bottom: none;
}

.dash-order-item__img {
    width: 70px;
    height: 85px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.dash-order-item__info {
    flex: 1;
}

.dash-order-item__name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #2D1B4E);
    margin: 0 0 0.25rem;
}

.dash-order-item__name a {
    color: inherit;
    text-decoration: none;
}

.dash-order-item__name a:hover {
    color: var(--color-gold-muted, #7B5EA7);
}

.dash-order-item__meta {
    font-size: 0.78rem;
    color: var(--color-bronze, #9585A8);
    margin: 0;
}

.dash-order-item__price {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary, #2D1B4E);
    white-space: nowrap;
}

/* ============ TOTALS ============ */
.dash-totals {
    padding: 1rem 1.5rem;
    background: var(--color-cream, #F3EFF8);
    border-radius: 0 0 10px 10px;
}

.dash-totals__row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.88rem;
    color: var(--color-earth, #6E5C8A);
}

.dash-totals__row--grand {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #2D1B4E);
    border-top: 1.5px solid var(--color-sand, #E4DCF0);
    padding-top: 0.65rem;
    margin-top: 0.25rem;
}

/* ============ ADDRESS CARDS ============ */
.dash-address-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(30, 15, 56, 0.05);
    border: 1px solid var(--color-cream, #F3EFF8);
    padding: 1.25rem;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.dash-address-card:hover {
    box-shadow: 0 4px 16px rgba(30, 15, 56, 0.1);
}

.dash-address-card__badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.dash-address-card__text {
    font-size: 0.88rem;
    color: var(--color-earth, #6E5C8A);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.dash-address-card__text p {
    margin: 0;
}

/* ============ EMPTY STATES ============ */
.dash-empty {
    text-align: center;
    padding: 3.5rem 2rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(30, 15, 56, 0.05);
    border: 1px solid var(--color-cream, #F3EFF8);
}

.dash-empty__icon {
    font-size: 3rem;
    color: var(--color-sand, #E4DCF0);
    margin-bottom: 1rem;
}

.dash-empty__title {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1.15rem;
    color: var(--color-earth, #6E5C8A);
    margin-bottom: 0.5rem;
}

.dash-empty__text {
    font-size: 0.85rem;
    color: var(--color-bronze, #9585A8);
    margin-bottom: 1.5rem;
}

/* ============ BACK LINK ============ */
.dash-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--color-bronze, #9585A8);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.dash-back:hover {
    color: var(--color-gold-muted, #7B5EA7);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .dash-sidebar {
        position: static;
    }
    .dash-timeline {
        padding: 0 0.25rem;
    }
    .dash-timeline__label {
        font-size: 0.6rem;
    }
}

@media (max-width: 576px) {
    .dash-order-card__body {
        flex-direction: column;
        align-items: flex-start;
    }
}
