/* Analux Cashback Dashboard Styles */
:root {
    --analux-primary: #10B981;
    /* Emerald 500 */
    --analux-bg: #F3F4F6;
    /* Gray 100 */
    --analux-card-bg: #FFFFFF;
    --analux-text-main: #111827;
    /* Gray 900 */
    --analux-text-sub: #6B7280;
    /* Gray 500 */
    --analux-border: #E5E7EB;
    /* Gray 200 */
}

/* Dark Mode Detect (if theme supports or enforced) */
@media (prefers-color-scheme: dark) {
    :root {
        --analux-bg: #111827;
        --analux-card-bg: #1F2937;
        --analux-text-main: #F9FAFB;
        --analux-text-sub: #9CA3AF;
        --analux-border: #374151;
    }
}

.analux-dashboard {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--analux-text-main);
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
}

/* Hero Section */
.analux-hero-section {
    background: var(--analux-card-bg);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
    border: 1px solid var(--analux-border);
}

.hero-label {
    display: block;
    font-size: 14px;
    color: var(--analux-text-sub);
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-value {
    font-size: 42px;
    font-weight: 800;
    margin: 0;
    color: var(--analux-text-main);
    line-height: 1.1;
}

/* Stats Row (Bubbles) */
.analux-stats-row {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    justify-content: center;
}

.analux-stat-bubble {
    flex: 1;
    background: var(--analux-bg);
    padding: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 200px;
    transition: transform 0.2s;
}

.analux-stat-bubble:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--analux-text-main);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.analux-dashboard-dark .stat-icon {
    background: #374151;
    /* Darker for dark mode */
}

.stat-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--analux-text-sub);
    font-weight: 600;
}

.stat-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--analux-text-main);
}

/* List View */
.analux-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    margin-left: 8px;
    color: var(--analux-text-main);
}

.analux-transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analux-list-item {
    background: var(--analux-card-bg);
    padding: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--analux-border);
}

.item-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--analux-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.item-earn .item-icon-box {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.item-spend .item-icon-box {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.item-manual .item-icon-box {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.item-desc {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--analux-text-main);
}

.item-date {
    font-size: 12px;
    color: var(--analux-text-sub);
}

.item-amount {
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    white-space: nowrap;
}

.item-earn .item-amount {
    color: #10B981;
}

.item-spend .item-amount {
    color: #111827;
}

/* Usually spend is neutral or red, banking apps often use black/white for spend */
@media (prefers-color-scheme: dark) {
    .item-spend .item-amount {
        color: #F9FAFB;
    }
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .analux-dashboard {
        padding: 5px;
    }

    .analux-hero-section {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .hero-value {
        font-size: 32px;
    }

    .analux-stats-row {
        gap: 10px;
    }

    .analux-stat-bubble {
        padding: 12px;
        gap: 8px;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
    }
}