/* Customer Orders Styles - Matching theme with small content sizes */
.customer-orders-page,
.customer-order-detail-page {
    min-height: calc(100vh - 110px);
    background: var(--secondary-light);
}

/* Page Header */
.customer-orders-page .page-header,
.customer-order-detail-page .page-header {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.customer-orders-page .hero-title,
.customer-order-detail-page .hero-title {
    font-size: 1.375rem; /* Match dashboard */
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
}

.customer-orders-page .hero-subtitle,
.customer-order-detail-page .hero-subtitle {
    font-size: 0.9375rem; /* Match body font size */
    color: var(--text-medium);
}

/* Filter Tabs */
.order-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 0.75rem;
}

.filter-tab {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.5rem 0.875rem; /* Reduced padding */
    font-size: 0.8125rem; /* Reduced font size */
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tab:hover {
    background: var(--gradient-accent);
    border-color: var(--accent-blue);
    color: var(--primary-light);
}

.filter-tab.active {
    background: var(--gradient-accent);
    border-color: var(--accent-blue);
    color: var(--primary-light);
}

.filter-tab .badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-blue);
    font-size: 0.6875rem; /* Reduced badge size */
    padding: 0.1875rem 0.4375rem;
    border-radius: 10px;
}

.filter-tab.active .badge {
    background: rgba(255, 255, 255, 0.3);
    color: var(--primary-light);
}

/* Loading spinner in filter tabs */
.filter-tab .fa-spinner {
    font-size: 0.75rem !important;
    width: 0.75rem;
    height: 0.75rem;
    display: inline-block;
}

/* Order Cards */
.order-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 16px rgba(77, 106, 146, 0.15);
    transform: translateY(-2px);
}

.order-card-header {
    padding: 1rem 1.25rem; /* Reduced padding */
    background: var(--primary-light);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.order-header-left {
    flex: 1;
}

.order-number {
    font-size: 1rem; /* Reduced from larger */
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
}

.order-number i {
    color: var(--accent-blue);
    font-size: 0.9375rem;
}

.invoice-number {
    font-size: 0.8125rem; /* Reduced */
    color: var(--text-medium);
}

.order-header-right {
    flex-shrink: 0;
}

.order-card-body {
    padding: 1.25rem; /* Reduced padding */
}

.order-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem; /* Reduced gap */
}

.order-info-item i {
    font-size: 1.125rem; /* Reduced icon size */
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.order-info-item strong {
    display: block;
    font-size: 0.6875rem; /* Reduced */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-medium);
    margin-bottom: 0.25rem;
}

.order-info-item p {
    font-size: 0.9375rem; /* Match body font size */
    color: var(--text-dark);
    margin: 0;
}

/* Order Summary */
.order-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Reduced gap */
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem; /* Match body font size */
    color: var(--text-dark);
}

.summary-row.summary-total {
    padding-top: 0.75rem;
    border-top: 2px solid var(--border-light);
    margin-top: 0.5rem;
}

.summary-row.summary-total span {
    font-size: 1rem; /* Slightly larger for total */
}

/* Tables */
.dashboard-card .table {
    margin: 0;
    font-size: 0.9375rem; /* Match body font size */
}

.dashboard-card .table thead th {
    background: var(--secondary-light);
    border-bottom: 2px solid var(--border-light);
    font-weight: 600;
    font-size: 0.8125rem; /* Reduced */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-medium);
    padding: 0.875rem; /* Reduced padding */
}

.dashboard-card .table tbody td {
    padding: 0.875rem; /* Reduced padding */
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
}

.dashboard-card .table tbody tr:hover {
    background: var(--secondary-light);
}

.dashboard-card .table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.3125rem 0.625rem; /* Reduced padding */
    border-radius: 6px;
    font-size: 0.6875rem; /* Reduced font size */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-completed,
.status-badge.status-paid {
    background: rgba(5, 150, 105, 0.1);
    color: var(--accent-green);
}

.status-badge.status-pending,
.status-badge.status-pending_payment,
.status-badge.status-unpaid {
    background: rgba(234, 88, 12, 0.1);
    color: var(--accent-orange);
}

.status-badge.status-processing,
.status-badge.status-confirmed {
    background: rgba(77, 106, 146, 0.1);
    color: var(--accent-blue);
}

.status-badge.status-shipping {
    background: rgba(90, 143, 160, 0.1);
    color: var(--accent-purple);
}

.status-badge.status-overdue {
    background: rgba(162, 198, 233, 0.1);
    color: var(--accent-orange);
}

/* Buttons */
.dashboard-card .btn {
    font-size: 0.8125rem; /* Reduced */
    padding: 0.4375rem 0.875rem; /* Reduced padding */
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dashboard-card .btn-sm {
    font-size: 0.75rem; /* Reduced */
    padding: 0.3125rem 0.625rem; /* Reduced padding */
}

.dashboard-card .btn-primary {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: white;
}

.dashboard-card .btn-primary:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.dashboard-card .btn-outline-primary {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.dashboard-card .btn-outline-primary:hover {
    background: var(--accent-blue);
    color: white;
}

/* Address Styles */
address {
    font-size: 0.9375rem; /* Match body font size */
    line-height: 1.6;
    color: var(--text-dark);
    font-style: normal;
}

/* Responsive */
@media (max-width: 768px) {
    .customer-orders-page .hero-title,
    .customer-order-detail-page .hero-title {
        font-size: 1.25rem; /* Reduced */
    }

    .order-filter-tabs {
        gap: 0.375rem;
    }

    .filter-tab {
        padding: 0.4375rem 0.75rem; /* Reduced */
        font-size: 0.75rem; /* Reduced */
    }

    .order-card-header {
        padding: 0.875rem 1rem; /* Reduced */
        flex-direction: column;
        gap: 0.75rem;
    }

    .order-card-body {
        padding: 1rem; /* Reduced */
    }

    .order-info-item {
        margin-bottom: 0.75rem;
    }

    .dashboard-card .table {
        font-size: 0.8125rem; /* Reduced */
    }

    .dashboard-card .table thead th,
    .dashboard-card .table tbody td {
        padding: 0.625rem 0.5rem; /* Reduced */
    }
}

