.dash-dashboard-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-stats-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dash-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    gap: 130px;
}
.dash-stats-flex {
    flex-direction: column;
}



.dash-stats-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    gap: 30px;
}

.dash-stats-left-column {
    flex: 1;
}

.dash-stats-right-column {
    flex: 1;
    max-width: 150px; /* optionnel mais recommandé */
}


.dash-campaign-badge {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    min-width: 170px;
}

.dash-campaign-label {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stats-container {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            max-width: none;
            width: 100%;
        }

        .stats-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .stats-title {
            font-size: 1rem;
            font-weight: 600;
            color: #1f2937;
        }

        .date-selector {
            padding: 6px 14px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 0.85rem;
            color: #6b7280;
            background: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s;
        }

        .date-selector:hover {
            border-color: #6366f1;
        }

        .stats-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 65px;
        }

        .stats-left {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .stat-label {
            font-size: 0.85rem;
            color: #6b7280;
        }

        .stat-amount {
            font-size: 1.5rem;
            font-weight: 700;
            color: #1f2937;
        }

        .stat-details {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.8rem;
        }

        .donations-count {
            color: #ef4444;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .red-dot {
            width: 6px;
            height: 6px;
            background: #ef4444;
            border-radius: 50%;
        }

        .campaigns-count {
            color: #6b7280;
        }

        .stats-right {
            display: flex;
            flex-direction: column;
            gap: 20px;
            align-items: flex-end;
        }

        .donors-title {
            font-size: 0.85rem;
            color: #6b7280;
        }

        .chart-item {
            display: flex;
            align-items: center;
            gap: 10px;
            justify-content: flex-end;
        }

        .chart-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .dot-visible {
            background: #6366f1;
        }

        .dot-anonymous {
            background: #d1d5db;
        }

        .chart-label {
            font-size: 0.9rem;
            color: #1f2937;
            min-width: 110px;
        }

        .chart-bar {
            
            height: 8px;
            background: #f3f4f6;
            border-radius: 4px;
            overflow: hidden;
            width: 160px;
            flex: none;
        }

        .chart-fill {
            height: 100%;
            border-radius: 4px;
            transition: width 0.5s ease-out;
        }

        .fill-visible {
            background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
        }

        .fill-anonymous {
            background: linear-gradient(90deg, #9ca3af 0%, #d1d5db 100%);
        }

        .chart-percentage {
            font-size: 0.85rem;
            font-weight: 600;
            color: #1f2937;
            min-width: 35px;
            text-align: right;
        }

        @media (max-width: 500px) {
            .stats-content {
                grid-template-columns: 1fr;
            }
        }

.dash-campaign-count {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.dash-campaign-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.dash-solde-info {
    margin-bottom: 15px;
}

.dash-solde-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 5px;
}

.dash-solde-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.dash-transfer-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #6366f1;
    color: #6366f1;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dash-transfer-btn:hover {
    background: #6366f1;
    color: white;
}

.dash-stats-section {
    margin-bottom: 25px;
}

.dash-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dash-stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

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

.dash-donors-info {
    display: flex;
    gap: 5px;
    font-size: 0.85rem;
    color: #6b7280;
}

.dash-donors-count {
    color: #ef4444;
}

.dash-date-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #6b7280;
    cursor: pointer;
}

.dash-donors-chart {
    margin-bottom: 20px;
}

.dash-chart-title {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.dash-chart-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.dash-bar-label {
    width: 80px;
    font-size: 0.85rem;
    color: #6b7280;
}

.dash-bar-container {
    flex: 1;
    width: 100%;
    max-width: 150px;
    height: 10px;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.dash-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s;
}

.dash-bar-fill.visible {
    background: linear-gradient(90deg, #6366f1 0%, #818cf8 100%);
}

.dash-bar-fill.anonymous {
    background: linear-gradient(90deg, #9ca3af 0%, #d1d5db 100%);
}

.dash-bar-percentage {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    min-width: 40px;
    text-align: right;
}

.dash-transactions-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dash-transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dash-section-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.dash-view-all-btn {
    padding: 6px 14px;
    background: white;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.dash-view-all-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.dash-transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.dash-transaction-item:last-child {
    border-bottom: none;
}

.dash-transaction-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-icon-withdraw {
    background: #fee2e2;
}

.dash-icon-deposit {
    background: #d1fae5;
}

.dash-transaction-icon svg {
    width: 18px;
    height: 18px;
}

.dash-icon-withdraw svg {
    fill: #ef4444;
}

.dash-icon-deposit svg {
    fill: #10b981;
}

.dash-transaction-info {
    flex: 1;
}

.dash-transaction-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.dash-transaction-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.dash-transaction-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-transaction-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dash-status-validated {
    background: #d1fae5;
    color: #065f46;
}

.dash-transaction-amount {
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 90px;
    text-align: right;
}

.dash-amount-negative {
    color: #ef4444;
}

.dash-amount-positive {
    color: #10b981;
}

@media (max-width: 968px) {
    .dash-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    .dash-notifications-section,
    .dash-stats-card,
    .dash-transactions-section {
        padding: 20px;
    }

    .dash-campaign-count {
        font-size: 2rem;
    }

    .dash-solde-amount {
        font-size: 1.5rem;
    }
}
