/* === DASHBOARD MÉDECIN COMPLET === */

.dashboard-page {
    min-height: 100vh;
    background: #f5f7fa;
}

.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Simple */
.dashboard-header-simple {
    background: white;
    border-radius: 12px;
    padding: 20px 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-welcome {
    flex: 1;
}

.dashboard-title-simple {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.dashboard-date {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.header-actions-simple {
    display: flex;
    gap: 15px;
}

.btn-icon-simple {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--light-blue);
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-icon-simple:hover {
    background: var(--primary-blue);
    color: white;
}

.badge-simple {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 10px;
    font-weight: 700;
}

/* Stats Row - 7 cartes en ligne */
.stats-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-top: 3px solid;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-box.blue { border-top-color: #1E88E5; }
.stat-box.green { border-top-color: #4CAF50; }
.stat-box.yellow { border-top-color: #FFA726; }
.stat-box.purple { border-top-color: #9C27B0; }
.stat-box.teal { border-top-color: #009688; }
.stat-box.orange { border-top-color: #FF9800; }
.stat-box.pink { border-top-color: #E91E63; }

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stat-text {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

/* Main Grid - 4 colonnes */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Dashboard Section */
.dashboard-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dashboard-section.urgent-section {
    border-left: 4px solid #ff4444;
}

.dashboard-section.chart-section {
    grid-column: span 2;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.count-badge {
    background: var(--primary-blue);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.count-badge.red {
    background: #ff4444;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Rendez-vous Items */
.rdv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.rdv-item:hover {
    background: #e3f2fd;
}

.rdv-time {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
    min-width: 50px;
}

.rdv-info {
    flex: 1;
}

.rdv-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.rdv-type {
    font-size: 12px;
    color: var(--text-light);
}

.rdv-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.rdv-status.confirme { background: #4CAF50; }
.rdv-status.attente { background: #FFA726; }

/* Patient Items */
.patient-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.patient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.patient-info {
    flex: 1;
}

.patient-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.patient-meta {
    font-size: 12px;
    color: var(--text-light);
}

/* Arrêt Items */
.arret-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.arret-patient {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.arret-dates {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.arret-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.arret-badge.attente {
    background: #FFF3E0;
    color: #FF9800;
}

.arret-badge.valide {
    background: #E8F5E9;
    color: #4CAF50;
}

/* Demande Items */
.demande-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #FFF9F9;
    border-radius: 8px;
    border-left: 3px solid #ff4444;
}

.demande-icon {
    font-size: 20px;
}

.demande-info {
    flex: 1;
}

.demande-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.demande-patient {
    font-size: 11px;
    color: var(--text-light);
}

.demande-time {
    font-size: 11px;
    color: #ff4444;
    font-weight: 600;
}

/* Visite Items */
.visite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.visite-type {
    font-size: 14px;
    color: var(--text-dark);
}

.visite-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Document Items */
.doc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.doc-item i {
    color: var(--primary-blue);
    font-size: 16px;
}

.doc-item span {
    flex: 1;
    font-size: 13px;
    color: var(--text-dark);
}

.doc-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Chart Simple */
.chart-simple {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 180px;
    gap: 10px;
    padding: 10px;
}

.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.chart-bar-fill {
    width: 100%;
    background: linear-gradient(to top, var(--primary-blue), var(--cyan));
    border-radius: 6px 6px 0 0;
    transition: all 0.3s ease;
}

.chart-bar-fill:hover {
    opacity: 0.8;
}

.chart-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.chart-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: var(--light-blue);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-card:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.action-card i {
    font-size: 24px;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.action-card:hover i {
    color: white;
}

.action-card span {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* Responsive */
@media (max-width: 1400px) {
    .stats-row {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .dashboard-main-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dashboard-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-section.chart-section {
        grid-column: span 1;
    }
}
