/* ============================================
   ZeliKanban - Dashboard Styles
   ============================================ */

.dashboard-container {
    margin-top: var(--header-height);
    padding: var(--spacing-xl);
    min-height: calc(100vh - var(--header-height));
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-primary) 100%);
}

/* Overview Section */
.overview-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card.highlight {
    background: var(--primary-gradient);
    border: none;
}

.stat-card.highlight .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

.stat-card.highlight .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.chart-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--spacing-lg);
}

.chart-card h3 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    font-size: 1.1rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

.pie-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
}

.pie-container canvas {
    max-width: 200px;
    max-height: 200px;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-label {
    color: var(--text-secondary);
}

.legend-value {
    color: var(--text-primary);
    font-weight: 600;
    margin-left: auto;
}

/* User Stats Section */
.user-stats-section {
    margin-bottom: var(--spacing-2xl);
}

.user-stats-section h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.user-stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
}

.user-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.user-stat-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.user-stat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.user-stat-name {
    flex: 1;
}

.user-stat-name h4 {
    font-size: 1rem;
    color: var(--text-primary);
}

.user-stat-name span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-stat-progress {
    margin-bottom: var(--spacing-md);
}

.user-stat-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
}

.user-stat-progress-header span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.user-stat-progress-header strong {
    color: var(--accent-green);
}

.user-stat-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.user-stat-details span {
    color: var(--text-muted);
}

.user-stat-details strong {
    color: var(--text-primary);
}

/* List Details Section */
.list-details-section h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.list-stats-table {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

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

.list-stats-table th,
.list-stats-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.list-stats-table th {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-stats-table td {
    color: var(--text-primary);
}

.list-stats-table tr:last-child td {
    border-bottom: none;
}

.list-stats-table tr:hover td {
    background: var(--bg-hover);
}

.table-progress {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.table-progress .progress-bar {
    width: 100px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.completed {
    background: rgba(0, 212, 170, 0.2);
    color: var(--success);
}

.status-badge.in-progress {
    background: rgba(254, 202, 87, 0.2);
    color: var(--warning);
}

.status-badge.not-started {
    background: rgba(160, 174, 192, 0.2);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .charts-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: var(--spacing-md);
    }

    .overview-section {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .pie-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .overview-section {
        grid-template-columns: 1fr;
    }
}