/* ============================================================================
   Customer Account Pages - Uses CSS custom properties from tenant design system
   ============================================================================ */

.account-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-background, #f8f9fa);
    font-family: var(--font-body, 'Segoe UI', system-ui, sans-serif);
    color: var(--brand-text, #1f2937);
}

.account-container {
    width: 100%;
    max-width: 440px;
    padding: 1rem;
}

.account-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.account-title {
    font-family: var(--font-heading, 'Segoe UI', system-ui, sans-serif);
    color: var(--brand-primary, #3B82F6);
    font-size: 1.75rem;
    font-weight: 700;
}

.account-logo {
    max-height: 48px;
    width: auto;
    margin-bottom: 1rem;
}

/* Primary button uses brand color */
.account-page .btn-primary,
.account-layout .btn-primary {
    background-color: var(--brand-primary, #3B82F6);
    border-color: var(--brand-primary, #3B82F6);
}

.account-page .btn-primary:hover,
.account-layout .btn-primary:hover {
    filter: brightness(0.9);
}

/* Form controls focus state */
.account-page .form-control:focus,
.account-layout .form-control:focus {
    border-color: var(--brand-primary, #3B82F6);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

/* ============================================================================
   Account Layout (Profile, Orders, Addresses pages)
   ============================================================================ */

.account-layout {
    font-family: var(--font-body, 'Segoe UI', system-ui, sans-serif);
    color: var(--brand-text, #1f2937);
}

.account-layout .account-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.account-layout .account-sidebar .nav-link {
    color: var(--brand-text, #1f2937);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
}

.account-layout .account-sidebar .nav-link:hover,
.account-layout .account-sidebar .nav-link.active {
    background-color: var(--brand-primary, #3B82F6);
    color: #fff;
}

.account-layout .account-content {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Order status badges */
.badge-pending { background-color: var(--brand-warning, #f59e0b); color: #fff; }
.badge-processing { background-color: var(--brand-primary, #3B82F6); color: #fff; }
.badge-shipped { background-color: var(--brand-accent, #8B5CF6); color: #fff; }
.badge-delivered { background-color: var(--brand-success, #10B981); color: #fff; }
.badge-cancelled { background-color: var(--brand-error, #EF4444); color: #fff; }
.badge-refunded { background-color: #6B7280; color: #fff; }

/* Address cards */
.address-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: border-color 0.2s;
}

.address-card:hover {
    border-color: var(--brand-primary, #3B82F6);
}

.address-card.default {
    border-color: var(--brand-primary, #3B82F6);
    border-width: 2px;
}

/* Order timeline */
.order-timeline {
    position: relative;
    padding-left: 2rem;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.order-timeline .timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.order-timeline .timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-primary, #3B82F6);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--brand-primary, #3B82F6);
}

/* Responsive */
@media (max-width: 768px) {
    .account-card {
        padding: 1.5rem;
    }

    .account-layout .account-sidebar {
        margin-bottom: 1rem;
    }
}
