/* doctor-styles.css - STYLES POUR L'INTERFACE MÉDECIN */

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: linear-gradient(135deg, #059669 0%, #047857 100%); 
    min-height: 100vh; 
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 20px; 
}

.header { 
    background: white; 
    padding: 1rem 2rem; 
    border-radius: 10px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { 
    font-size: 1.8rem; 
    font-weight: bold; 
    color: #059669; 
}

.nav { 
    display: flex; 
    gap: 1rem; 
}

.btn { 
    padding: 0.5rem 1rem; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-primary { 
    background: #059669; 
    color: white; 
}

.btn-secondary { 
    background: #6b7280; 
    color: white; 
}

.btn-success { 
    background: #059669; 
    color: white; 
}

.btn-danger { 
    background: #dc2626; 
    color: white; 
}

.btn-warning { 
    background: #d97706; 
    color: white; 
}

.btn-info { 
    background: #2563eb; 
    color: white; 
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.main-content { 
    background: white; 
    padding: 2rem; 
    border-radius: 10px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}

.form-group { 
    margin-bottom: 1rem; 
}

.form-group label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: 500; 
}

.form-group input, 
.form-group select, 
.form-group textarea { 
    width: 100%; 
    padding: 0.75rem; 
    border: 1px solid #d1d5db; 
    border-radius: 5px; 
    font-size: 1rem; 
}

.card { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    padding: 1.5rem; 
    margin-bottom: 1rem; 
}

.alert { 
    padding: 1rem; 
    border-radius: 5px; 
    margin-bottom: 1rem; 
}

.alert-success { 
    background: #d1fae5; 
    color: #065f46; 
    border: 1px solid #a7f3d0; 
}

.alert-error { 
    background: #fee2e2; 
    color: #991b1b; 
    border: 1px solid #fecaca; 
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome {
    color: #374151;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background: #f8fafc;
    font-weight: 600;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

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

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background: #dbeafe;
    color: #1e40af;
}

.status-cancelled {
    background: #f3f4f6;
    color: #4b5563;
}

.actions-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.confirmation-modal {
    text-align: center;
    max-width: 400px;
}

.confirmation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.login-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    margin: 1rem;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #059669;
}

/* Appointments */
.appointment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.appointment-item {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.appointment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.appointment-info {
    flex: 1;
}

.appointment-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Work Hours */
.work-hours-grid {
    display: grid;
    gap: 1rem;
}

.work-day-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.work-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Unavailability */
.unavailability-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.unavailability-item {
    background: #fef3c7;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #fbbf24;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Settings */
.settings-section {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.settings-section h3 {
    color: #059669;
    margin-bottom: 1rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #6b7280;
    transition: all 0.3s;
}

.tab.active {
    color: #059669;
    border-bottom-color: #059669;
    font-weight: 600;
}

.tab:hover {
    color: #059669;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .time-slots {
        grid-template-columns: 1fr;
    }
}

/* ==================== ANIMATIONS CANAL SÉCURISÉ ==================== */

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.05);
    }
}

/* Animation pour les alertes critiques */
.logo-enhanced[data-alert="critical"] {
    animation: pulse 1s infinite;
}

/* Animation pour les alertes urgentes */
.logo-enhanced[data-alert="urgent"] {
    animation: pulse 2s infinite;
}

/* Styles pour le badge d'alerte */
.alert-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.alert-badge.critical {
    background: #ef4444;
    animation: pulse 1s infinite;
}

.alert-badge.urgent {
    background: #f59e0b;
    animation: pulse 2s infinite;
}

.alert-badge.info {
    background: #10b981;
}
