/* Dashboard Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card.business .stat-icon { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; }
.stat-card.listings .stat-icon { background: linear-gradient(135deg, #10b981, #34d399); color: white; }
.stat-card.views .stat-icon { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: white; }
.stat-card.clicks .stat-icon { background: linear-gradient(135deg, #ef4444, #f87171); color: white; }

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.stat-info p {
    font-size: 0.75rem;
    margin: 2px 0 0;
    color: var(--text-muted);
}

.stat-info small {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

/* Dashboard Two Column */
.dashboard-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.card-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.card-header h3 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.refresh-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.card-body {
    padding: 1.5rem;
}

/* Payment Summary Mini */
.payment-summary-mini {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.summary-item {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.summary-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.summary-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* Recent Payments List */
.recent-payments h4 {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--text-secondary);
}

.payment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: all 0.2s;
}

.payment-item:hover {
    background: var(--bg-hover);
}

.payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.payment-icon.paystack { background: #e8f5e9; color: #2e7d32; }
.payment-icon.cash { background: #fff3e0; color: #ef6c00; }

.payment-details {
    flex: 1;
}

.payment-business {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

.payment-date {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.payment-amount {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--success);
}

.view-all {
    text-align: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.view-all span {
    font-size: 0.75rem;
    color: var(--primary);
    cursor: pointer;
}

.view-all span:hover {
    text-decoration: underline;
}

.no-payments {
    text-align: center;
    padding: 1.5rem;
}

.no-payments i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.no-payments p {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.no-payments small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Activity Timeline */
.activity-timeline {
    padding: 1rem 1.5rem;
    max-height: 350px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-icon.business { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.activity-icon.listing { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.activity-icon.payment { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.activity-icon.verification { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.activity-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.empty-chart, .empty-state {
    text-align: center;
    padding: 2rem;
}

.empty-chart i, .empty-state i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.empty-chart p, .empty-state p {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.empty-chart small, .empty-state small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Quick Actions */
.dashboard-quick-actions {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

.dashboard-quick-actions h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--text-primary);
}

.dashboard-quick-actions h3 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-action:hover {
    transform: translateY(-2px);
    background: var(--primary-light);
}

.quick-action i {
    font-size: 1.3rem;
    color: var(--primary);
}

.quick-action span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard-two-column {
        grid-template-columns: 1fr;
    }
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .payment-summary-mini {
        flex-direction: column;
        gap: 0.5rem;
    }
    .actions-grid {
        grid-template-columns: 1fr;
    }
}
.loading-chart {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.loading-chart .spinner-sm {
    margin-bottom: 10px;
}
.chart-body {
    padding: 1rem;
    min-height: 320px;
}

#viewsChart {
    max-width: 100%;
    background: var(--bg-card);
}