/**
 * Modeo Account - Dashboard
 * 
 * Premium styles for dashboard page with quick actions and stats
 */

/* ========================================
   DASHBOARD WRAPPER
   ======================================== */

.modeo-account-dashboard {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ========================================
   WELCOME SECTION
   ======================================== */

.account-dashboard-welcome {
    padding: 32px;
    background: linear-gradient(135deg, rgba(204, 22, 22, 0.03) 0%, rgba(248, 113, 113, 0.02) 100%);
    border-radius: 16px;
    border: 1px solid rgba(204, 22, 22, 0.08);
}

.dashboard-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.dashboard-subheading {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

@media (max-width: 767px) {
    .account-dashboard-welcome {
        padding: 24px;
    }

    .dashboard-heading {
        font-size: 1.5rem;
    }

    .dashboard-subheading {
        font-size: 1rem;
    }
}

/* ========================================
   QUICK ACTIONS GRID
   ======================================== */

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

.quick-action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.quick-action-card:hover {
    border-color: rgba(204, 22, 22, 0.2);
    box-shadow: 0 8px 24px rgba(204, 22, 22, 0.1);
    transform: translateY(-4px);
}

.quick-action-icon {
    font-size: 40px;
    color: #cc1616;
}

.quick-action-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.quick-action-description {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.quick-action-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 20px;
    color: #6b7280;
    opacity: 0;
    transition: all 0.3s ease;
}

.quick-action-card:hover .quick-action-arrow {
    opacity: 1;
    color: #cc1616;
    transform: translateX(4px);
}

/* ========================================
   RECENT ORDERS
   ======================================== */

.account-recent-orders {
    /* Spacing handled by parent */
}

.recent-orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-order-item {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
}

.recent-order-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(204, 22, 22, 0.15);
}

.recent-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f5f5f5;
}

.recent-order-number .label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-right: 8px;
}

.recent-order-details {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.recent-order-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    color: #6b7280;
}

.info-icon {
    font-size: 18px;
    color: #cc1616;
}

.recent-order-total {
    margin-left: auto;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

@media (max-width: 767px) {
    .recent-order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .recent-order-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .recent-order-total {
        margin-left: 0;
    }
}

/* ========================================
   ACCOUNT STATS
   ======================================== */

.account-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

@media (max-width: 767px) {
    .account-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(204, 22, 22, 0.04) 0%, rgba(248, 113, 113, 0.02) 100%);
    border-radius: 16px;
    border: 1px solid rgba(204, 22, 22, 0.08);
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: rgba(204, 22, 22, 0.2);
    box-shadow: 0 4px 12px rgba(204, 22, 22, 0.1);
}

.stat-icon {
    font-size: 28px;
    color: #cc1616;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .stat-card {
        padding: 16px;
    }

    .stat-icon {
        font-size: 28px;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}

/* ========================================
   ORDER STATUS BADGES
   ======================================== */

.modeo-order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Success - Completed orders */
.modeo-order-status-badge.badge-success {
    background: rgba(39, 174, 96, 0.12);
    color: #27ae60;
}

/* Info - Processing orders */
.modeo-order-status-badge.badge-info {
    background: rgba(204, 22, 22, 0.1);
    color: #cc1616;
}

/* Warning - Pending/On-hold */
.modeo-order-status-badge.badge-warning {
    background: rgba(243, 156, 18, 0.12);
    color: #d68910;
}

/* Danger - Failed/Cancelled */
.modeo-order-status-badge.badge-danger {
    background: rgba(231, 76, 60, 0.12);
    color: #c0392b;
}

/* Secondary - Refunded */
.modeo-order-status-badge.badge-secondary {
    background: rgba(127, 140, 141, 0.12);
    color: #5d6d7e;
}

/* ========================================
   RECENT ORDER ACTIONS
   ======================================== */

.recent-order-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.recent-order-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.recent-order-actions .btn-secondary,
.recent-order-actions .btn.btn-secondary {
    background: transparent;
    color: #cc1616;
    border: 2px solid #cc1616;
}

.recent-order-actions .btn-secondary:hover,
.recent-order-actions .btn.btn-secondary:hover {
    background: #cc1616;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(204, 22, 22, 0.25);
    transform: translateY(-2px);
}

.recent-order-actions .btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

@media (max-width: 767px) {
    .recent-order-actions {
        flex-direction: column;
    }

    .recent-order-actions .btn {
        width: 100%;
    }
}