/* Client Dashboard Styles */

/* Dashboard container */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

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

.stat-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card-content {
    flex: 1;
    margin-left: 1rem;
}

.stat-card-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-card-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
}

/* Cards bg colors */
.stat-card.blue .stat-card-icon {
    background: #dbeafe;
    color: #1e40af;
}

.stat-card.green .stat-card-icon {
    background: #dcfce7;
    color: #166534;
}

.stat-card.red .stat-card-icon {
    background: #fee2e2;
    color: #991b1b;
}

.stat-card.purple .stat-card-icon {
    background: #ede9fe;
    color: #7e22ce;
}

/* Chart container */
.chart-container {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.chart-container h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: #1f2937;
}

/* Table styles */
.table-container {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-container h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: #1f2937;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table thead {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.dashboard-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.dashboard-table tbody tr:hover {
    background: #f9fafb;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6b7280;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .stat-card-content {
        margin-left: 0.75rem;
    }

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

    .chart-container,
    .table-container {
        padding: 1rem;
    }

    .dashboard-table {
        font-size: 0.75rem;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
    }

    .stat-card-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .stat-card-content {
        margin-left: 0;
    }

    .stat-card-value {
        font-size: 1.25rem;
    }
}
