/* ═══════════════════════════════════════════════════════════════
   OpusWebcam V2.0 - Module Dashboard
   Fichier: dashboard.css
   Description: Styles pour les statistiques, graphiques et KPIs
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────
   CONTAINER PRINCIPAL
   ─────────────────────────────────────────────────────────────── */
.dashboard-container {
    padding: var(--space-lg) 0;
}

/* ───────────────────────────────────────────────────────────────
   SECTION KPI
   ─────────────────────────────────────────────────────────────── */
.kpi-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.kpi-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transition: width var(--transition-base);
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.kpi-card:hover::before {
    width: 8px;
}

.kpi-icon {
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    opacity: 0.8;
}

.kpi-content {
    flex: 1;
}

.kpi-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.kpi-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ───────────────────────────────────────────────────────────────
   GRILLE DE GRAPHIQUES
   ─────────────────────────────────────────────────────────────── */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (max-width: 992px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all var(--transition-base);
}

.chart-card:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-header h5 {
    margin: 0;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chart-body {
    padding: var(--space-lg);
    height: 300px;
    position: relative;
}

.chart-card.full-width .chart-body {
    height: auto;
    max-height: 400px;
    overflow-y: auto;
}

/* ───────────────────────────────────────────────────────────────
   TABLEAU TOP CARTES
   ─────────────────────────────────────────────────────────────── */
#topCardsContainer .table {
    margin: 0;
    font-size: 0.875rem;
}

#topCardsContainer th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    padding: var(--space-md);
    border-bottom: 2px solid var(--gray-200);
}

#topCardsContainer td {
    padding: var(--space-md);
    vertical-align: middle;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* ───────────────────────────────────────────────────────────────
   GRAPHIQUES CHART.JS OVERRIDES
   ─────────────────────────────────────────────────────────────── */
.chart-card canvas {
    max-height: 100%;
}

/* Loading state */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-600);
}

.chart-loading::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: var(--space-sm);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ───────────────────────────────────────────────────────────────
   STAT CARD V2 - Cartes statistiques compactes
   ─────────────────────────────────────────────────────────────── */
.stat-card-v2 {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card-v2:hover {
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.stat-card-v2 .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-card-v2 .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-xs);
}

.stat-card-v2 small,
.stat-card-v2 .text-muted {
    display: block;
    font-size: 0.75rem;
    margin-top: var(--space-xs);
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ───────────────────────────────────────────────────────────────
   PROGRESS LIST - Liste avec barres de progression
   ─────────────────────────────────────────────────────────────── */
.progress-list {
    max-height: 300px;
    overflow-y: auto;
}

.progress-list-item {
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-xs);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-base);
}

.progress-list-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.progress-list-item:last-child {
    margin-bottom: 0;
}

.progress-list-item .set-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: var(--space-sm);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.progress-list-item .set-info {
    flex: 1;
    min-width: 0;
}

.progress-list-item .set-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-list-item .set-stats {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.progress-list-item .progress-wrapper {
    width: 120px;
    margin: 0 var(--space-sm);
}

.progress-list-item .progress {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
}

.progress-list-item .progress-bar {
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-list-item .progress-value {
    font-weight: 700;
    font-size: 0.875rem;
    color: #667eea;
    min-width: 45px;
    text-align: right;
}

/* ───────────────────────────────────────────────────────────────
   MOVERS LIST - Liste top hausses/baisses
   ─────────────────────────────────────────────────────────────── */
.movers-list {
    max-height: 200px;
    overflow-y: auto;
}

.mover-item {
    display: flex;
    align-items: center;
    padding: var(--space-sm);
    border-radius: 10px;
    margin-bottom: var(--space-xs);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-base);
}

.mover-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.mover-item .card-thumb {
    width: 36px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: var(--space-sm);
}

.mover-item .card-info {
    flex: 1;
    min-width: 0;
}

.mover-item .card-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mover-item .card-set {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.mover-item .mover-change {
    font-weight: 700;
    font-size: 0.875rem;
    padding: 4px 10px;
    border-radius: 6px;
}

.mover-item .mover-change.positive {
    color: #28a745;
    background: rgba(40, 167, 69, 0.2);
}

.mover-item .mover-change.negative {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.2);
}

/* ───────────────────────────────────────────────────────────────
   CHART HEADER ACTIONS
   ─────────────────────────────────────────────────────────────── */
.chart-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.chart-header-actions .form-select-sm {
    font-size: 0.8rem;
    padding: 0.25rem 1.5rem 0.25rem 0.5rem;
}

/* ───────────────────────────────────────────────────────────────
   CHART CONTAINER OVERRIDE
   ─────────────────────────────────────────────────────────────── */
.chart-container {
    position: relative;
    height: 200px;
    width: 100%;
}

/* ───────────────────────────────────────────────────────────────
   TEXTES DANS DASHBOARD (Glassmorphism)
   ─────────────────────────────────────────────────────────────── */
.dashboard-container h6,
.chart-body h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.dashboard-container .text-success,
.chart-body .text-success {
    color: #28a745 !important;
}

.dashboard-container .text-danger,
.chart-body .text-danger {
    color: #dc3545 !important;
}

.dashboard-container .text-muted,
.chart-body .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.dashboard-container .text-center {
    color: rgba(255, 255, 255, 0.6);
}

/* Boutons dans le header */
.chart-header .btn-outline-secondary {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
    background: transparent;
}

.chart-header .btn-outline-secondary:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

/* Select dans les actions */
.chart-header-actions .form-select-sm {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
}

.chart-header-actions .form-select-sm:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25);
}

.chart-header-actions .form-select-sm option {
    background: #1f2937;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD HOME - Page d'accueil
   ═══════════════════════════════════════════════════════════════ */

/* Stats Cards - Style minimaliste */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.dash-stat-card {
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s ease;
}

.dash-stat-card.dash-stat-clickable {
    cursor: pointer;
}

.dash-stat-card.dash-stat-clickable:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.dash-stat-icon {
    display: none;
}

.dash-stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dash-stat-value {
    font-size: 2.25rem;
    font-weight: 600;
    color: #667eea;
    line-height: 1;
    font-style: italic;
}

.dash-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Quick Actions */
.dashboard-quick-actions {
    margin-bottom: 32px;
}

.dashboard-quick-actions h3 {
    color: #d1d5db;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #374151;
    border: 2px solid #4b5563;
    border-radius: 12px;
    color: #d1d5db;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.quick-action-icon {
    font-size: 1.25rem;
}

/* Columns Layout */
.dashboard-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dashboard-column {
    background: #374151;
    border: 2px solid #4b5563;
    border-radius: 16px;
    padding: 20px;
}

.dashboard-column h3 {
    color: #d1d5db;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #4b5563;
}

/* Recent Cards */
.dash-recent-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dash-recent-item:hover {
    background: rgba(102, 126, 234, 0.15);
}

.dash-recent-img {
    width: 45px;
    height: 63px;
    object-fit: cover;
    border-radius: 6px;
}

.dash-recent-info {
    flex: 1;
    min-width: 0;
}

.dash-recent-name {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-recent-set {
    color: #9ca3af;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-recent-date {
    color: #6b7280;
    font-size: 0.75rem;
}

/* Top Cards */
.dash-top-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-top-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dash-top-item:hover {
    background: rgba(102, 126, 234, 0.15);
}

.dash-top-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.dash-top-img {
    width: 45px;
    height: 63px;
    object-fit: cover;
    border-radius: 6px;
}

.dash-top-info {
    flex: 1;
    min-width: 0;
}

.dash-top-name {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-top-set {
    color: #9ca3af;
    font-size: 0.75rem;
}

.dash-top-price {
    color: #10b981;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Loading & Empty States */
.dash-loading {
    text-align: center;
    color: #6b7280;
    padding: 20px;
}

.dash-empty {
    text-align: center;
    color: #6b7280;
    padding: 30px;
    font-size: 0.9rem;
}

/* Responsive Dashboard Home */
@media (max-width: 1024px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD BOTTOM ROW - News + Daily Card
   ═══════════════════════════════════════════════════════════════ */

.dashboard-bottom-row {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 1024px) {
    .dashboard-bottom-row {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════════════════════════
   NEWS FEED - Actualités Pokémon
   ═══════════════════════════════════════════════════════════════ */

.dashboard-news-section {
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 16px;
    padding: 20px;
    width: 50%;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   DAILY CARD - 1 Jour 1 Carte
   ═══════════════════════════════════════════════════════════════ */

.dashboard-daily-card {
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 16px;
    padding: 20px;
    flex: 1;
}

@media (max-width: 1024px) {
    .dashboard-news-section,
    .dashboard-daily-card {
        width: 100%;
    }
}

.daily-card-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #334155;
}

.daily-card-header h3 {
    color: #d1d5db;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-card-header h3 i {
    color: #667eea;
}

.daily-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.daily-card-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.daily-card-loading .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #334155;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.daily-card-image {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.daily-card-image:hover {
    transform: scale(1.02);
}

.daily-card-image img {
    width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.daily-card-info {
    margin-top: 16px;
    text-align: center;
    width: 100%;
}

.daily-card-name {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.daily-card-set {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.daily-card-price {
    color: #10b981;
    font-size: 1rem;
    font-weight: 600;
}

.daily-card-date {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #334155;
}

.daily-card-empty {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.daily-card-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   DAILY STORY - Histoire du jour
   ═══════════════════════════════════════════════════════════════ */

.daily-story-empty {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.daily-story-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
    display: block;
}

.daily-story-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #334155;
}

.daily-story-category {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    border: 1px solid #667eea40;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #a5b4fc;
    font-weight: 500;
}

.daily-story-category .category-icon {
    font-size: 1.1rem;
}

.daily-story-date {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.daily-story-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .daily-story-body {
        flex-direction: column;
        align-items: center;
    }
}

.daily-story-image {
    flex-shrink: 0;
    position: relative;
}

/* Carousel pour plusieurs cartes */
.daily-story-carousel {
    position: relative;
    width: 200px;
}

.daily-story-slides {
    position: relative;
    width: 100%;
}

.daily-story-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease;
}

.daily-story-slide.active {
    display: flex;
}

.daily-story-slide:hover {
    transform: scale(1.03);
}

.daily-story-slide img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.daily-story-card-name {
    color: #94a3b8;
    font-size: 0.75rem;
    text-align: center;
    margin-top: 8px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Navigation arrows */
.daily-story-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.daily-story-nav:hover {
    background: rgba(102, 126, 234, 0.8);
}

.daily-story-prev {
    left: -14px;
}

.daily-story-next {
    right: -14px;
}

.daily-story-nav i {
    font-size: 0.7rem;
}

/* Dots navigation */
.daily-story-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.daily-story-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.daily-story-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.daily-story-dot.active {
    background: #667eea;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .daily-story-carousel {
        width: 160px;
    }

    .daily-story-slide img {
        width: 160px;
    }

    .daily-story-card-name {
        max-width: 160px;
    }
}

.daily-story-content {
    flex: 1;
    min-width: 0;
}

.daily-story-title {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.daily-story-text {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 12px 0;
    /* Limiter à 6 lignes */
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.daily-story-artist,
.daily-story-year {
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.daily-story-artist i,
.daily-story-year i {
    color: #667eea;
    width: 14px;
}

.daily-story-cards {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.75rem;
}

.daily-story-cards i {
    color: #667eea;
}

.daily-story-cards .card-tag {
    background: #334155;
    color: #94a3b8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.daily-story-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #334155;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.daily-story-source {
    color: #667eea;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.daily-story-source:hover {
    color: #818cf8;
    text-decoration: underline;
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #334155;
}

.news-header h3 {
    color: #d1d5db;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-header h3 i {
    color: #667eea;
}

.news-refresh-btn {
    background: #374151;
    border: 2px solid #4b5563;
    border-radius: 9999px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-refresh-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.news-refresh-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.news-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #64748b;
}

.news-loading .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #334155;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.news-empty {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.news-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* News Item */
.news-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #334155;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.news-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    transform: translateX(4px);
}

.news-item-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.news-item-content {
    flex: 1;
    min-width: 0;
}

.news-item-title {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-description {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: #64748b;
}

.news-item-source {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #667eea;
    font-weight: 500;
}

.news-item-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-columns {
        grid-template-columns: 1fr;
    }

    .dash-stat-card {
        padding: 16px;
    }

    .dash-stat-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }

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

    .news-feed {
        max-height: 400px;
    }

    .news-item {
        padding: 12px;
    }

    .news-item-title {
        font-size: 0.9rem;
    }
}