/* Styles pour le dashboard */
.dashboard-view {
    padding: 1rem;
    background: #f9fafb;
    min-height: calc(100vh - 70px);
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Cartes de statistiques */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dashboard-card {
    background: white;
    border-radius: 0;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    border-left: 3px solid;
    border: 1px solid #e5e7eb;
}

.dashboard-card:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.dashboard-card-primary {
    border-left-color: #667eea;
}

.dashboard-card-success {
    border-left-color: #10b981;
}

.dashboard-card-warning {
    border-left-color: #f59e0b;
}

.dashboard-card-info {
    border-left-color: #3b82f6;
}

.dashboard-card-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.dashboard-card-primary .dashboard-card-icon {
    background: transparent;
    color: #667eea;
}

.dashboard-card-success .dashboard-card-icon {
    background: transparent;
    color: #10b981;
}

.dashboard-card-warning .dashboard-card-icon {
    background: transparent;
    color: #f59e0b;
}

.dashboard-card-info .dashboard-card-icon {
    background: transparent;
    color: #3b82f6;
}

.dashboard-card-content {
    flex: 1;
}

.dashboard-card-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 0.125rem;
}

.dashboard-card-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

/* Graphiques */
.dashboard-charts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .dashboard-charts {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dashboard-chart-card {
    background: white;
    border-radius: 0;
    padding: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.dashboard-chart-header {
    margin-bottom: 1.5rem;
}

.dashboard-chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-chart-title i {
    color: #667eea;
}

.dashboard-chart-body {
    position: relative;
    height: 200px;
}

.dashboard-chart-body canvas {
    max-height: 100%;
}

/* Liste récente */
.dashboard-recent {
    margin-bottom: 2rem;
}

.dashboard-recent-card {
    background: white;
    border-radius: 0;
    padding: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.dashboard-recent-header {
    margin-bottom: 1.5rem;
}

.dashboard-recent-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-recent-title i {
    color: #667eea;
}

.dashboard-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-recent-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.dashboard-recent-item:hover {
    background: #f3f4f6;
}

.dashboard-recent-item-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
}

.dashboard-recent-item-content {
    flex: 1;
}

.dashboard-recent-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.dashboard-recent-item-info {
    font-size: 0.75rem;
    color: #6b7280;
}

.dashboard-recent-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.dashboard-recent-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.dashboard-recent-empty p {
    margin: 0;
    font-size: 0.875rem;
}
