/* ============================================
   GROWTH DASHBOARD - PRODUCTION UI
   ============================================ */

.wma-growth-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
    background: #f8fafc;
    min-height: 100vh;
}

/* Header Section */
.wma-growth-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.wma-growth-dashboard-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
    font-family: var(--wma-font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.wma-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.wma-controls .wma-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    background: var(--wma-primary, #0A4834);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wma-controls .wma-refresh-btn:hover {
    background: #083d2b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.wma-controls .wma-refresh-btn:active {
    transform: translateY(0);
}

.wma-auto-refresh-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    user-select: none;
}

.wma-auto-refresh-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Status Bar */
.wma-growth-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wma-growth-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Stats Grid */
.wma-growth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.wma-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.wma-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.wma-card h4 {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.wma-card-value {
    margin: 0 0 16px;
    font-weight: 700;
    font-size: 36px;
    color: #1e293b;
    line-height: 1;
    font-family: var(--wma-font-primary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.wma-card-meta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.wma-card-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.wma-card-meta-item:last-child {
    margin-bottom: 0;
}

.wma-card-meta-label {
    color: #64748b;
    font-weight: 500;
}

.wma-card-meta-value {
    color: #1e293b;
    font-weight: 600;
}

.wma-small {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

/* Enhanced Metric Cards */
.wma-card.wma-card-signups {
    border-left: 4px solid #3b82f6;
}

.wma-card.wma-card-paying-customers {
    border-left: 4px solid #10b981;
}

.wma-card.wma-card-funded-wallets {
    border-left: 4px solid #f59e0b;
}

.wma-card.wma-card-active-users {
    border-left: 4px solid #8b5cf6;
}

.wma-card.wma-card-wallet-balance {
    border-left: 4px solid #ec4899;
}

/* Wallet Balance Card with Count and Total */
.wma-wallet-balance-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wma-wallet-balance-primary {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.wma-wallet-balance-secondary {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.wma-wallet-balance-secondary strong {
    color: #1e293b;
    font-weight: 600;
}


/* Filters Section */
.wma-growth-filters-wrap {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wma-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wma-filters-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wma-filters-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #64748b;
    transition: all 0.2s ease;
}

.wma-filters-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.wma-growth-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.wma-growth-filters .wma-filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    flex: 1;
}

.wma-growth-filters .wma-filter-item label {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}

.wma-growth-filters input[type="datetime-local"],
.wma-growth-filters select,
.wma-growth-filters .regular-text {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: white;
    transition: all 0.2s ease;
}

.wma-growth-filters input[type="datetime-local"]:focus,
.wma-growth-filters select:focus {
    outline: none;
    border-color: var(--wma-primary, #0A4834);
    box-shadow: 0 0 0 3px rgba(10, 72, 52, 0.1);
}

/* City Filter Dropdown */
#wma-city-filter {
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

#wma-city-filter:hover {
    border-color: #94a3b8;
}

#wma-city-filter:focus {
    outline: none;
    border-color: var(--wma-primary, #0A4834);
    box-shadow: 0 0 0 3px rgba(10, 72, 52, 0.1);
}

.wma-growth-filters .wma-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

#wma-apply-filters {
    background: var(--wma-primary, #0A4834);
    color: white;
}

#wma-apply-filters:hover {
    background: #083d2b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#wma-clear-filters {
    background: white;
    color: #64748b;
    border: 1px solid #cbd5e1;
}

#wma-clear-filters:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* Charts Section */
.wma-dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.wma-chart-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 400px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    position: relative;
}

.wma-chart-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wma-chart-card h4 {
    margin: 0 0 20px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
    flex-shrink: 0;
}

.wma-chart-wrapper {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.wma-chart-card canvas {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .wma-dashboard-charts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .wma-growth-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wma-dashboard-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wma-growth-dashboard {
        padding: 20px 16px;
    }
    
    .wma-growth-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .wma-growth-dashboard-header h2 {
        font-size: 24px;
    }
    
    .wma-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .wma-controls .wma-refresh-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .wma-growth-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .wma-card {
        padding: 20px;
        min-height: 120px;
    }
    
    .wma-card-value {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .wma-filters-toggle {
        display: inline-flex;
    }
    
    #wma-growth-filters {
        display: none !important;
    }
    
    #wma-growth-filters.expanded {
        display: flex !important;
    }
    
    .wma-growth-filters .wma-filter-item {
        min-width: 100%;
    }
    
    .wma-growth-filters-wrap {
        padding: 20px;
    }
    
    .wma-chart-card {
        min-height: 280px;
        height: 350px;
        padding: 20px;
    }
    
    .wma-dashboard-charts {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .wma-growth-dashboard {
        padding: 16px 12px;
    }
    
    .wma-growth-dashboard-header h2 {
        font-size: 20px;
    }
    
    .wma-card {
        padding: 16px;
        min-height: 110px;
    }
    
    .wma-card-value {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .wma-card-meta-item {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .wma-growth-filters-wrap {
        padding: 16px;
    }
    
    .wma-chart-card {
        padding: 16px;
        min-height: 240px;
        height: 320px;
    }
}

/* Loading State */
.wma-growth-dashboard.loading {
    opacity: 0.6;
    pointer-events: none;
}

.wma-growth-dashboard.loading .wma-growth-status::before {
    background: #f59e0b;
}

/* Empty State */
.wma-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.wma-empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.wma-empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 8px;
}

.wma-empty-state p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

