/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-dashboard {
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.dashboard-header h1 {
    margin: 0;
    color: #333;
    font-size: 2em;
}

.welcome-text {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.95em;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ff4757;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #ff3838;
    transform: translateY(-2px);
}

/* Statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.stat-icon {
    font-size: 2.5em;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.stat-active {
    border-left: 4px solid #28a745;
}

.stat-pending {
    border-left: 4px solid #ffc107;
}

/* Liste des livreurs */
.drivers-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.drivers-section h2 {
    margin: 0 0 20px 0;
    color: #333;
}

.drivers-table-container {
    overflow-x: auto;
}

.drivers-table {
    width: 100%;
    border-collapse: collapse;
}

.drivers-table thead {
    background: #f8f9fa;
}

.drivers-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9em;
}

.drivers-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.drivers-table tbody tr:hover {
    background: #f8f9fa;
}

/* Info livreur */
.driver-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.driver-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.driver-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.driver-email {
    font-size: 0.85em;
    color: #666;
}

.phone-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9em;
}

.phone-link:hover {
    text-decoration: underline;
}

/* Badges */
.badge-count {
    display: inline-block;
    padding: 4px 12px;
    background: #e9ecef;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9em;
    color: #495057;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

/* Boutons d'action */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-activate {
    background: #28a745;
    color: white;
}

.btn-activate:hover {
    background: #218838;
}

.btn-deactivate {
    background: #ffc107;
    color: #333;
}

.btn-deactivate:hover {
    background: #e0a800;
}

.btn-view {
    background: #6c757d;
    color: white;
}

.btn-view:hover {
    background: #5a6268;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        font-size: 2em;
    }
    
    .stat-value {
        font-size: 1.5em;
    }
    
    .drivers-section {
        padding: 20px;
    }
    
    .drivers-table {
        font-size: 0.9em;
    }
    
    .drivers-table th,
    .drivers-table td {
        padding: 10px;
    }
    
    .driver-avatar {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        text-align: center;
    }
}
/* Login spécifique */
.login-container {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}
.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}
.login-icon { font-size: 3em; margin-bottom: 15px; }
.login-header h2 { margin: 0 0 10px 0; }
.login-form { padding: 30px; }
.btn-login {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.btn-login:hover { background: #5a67d8; }
.login-footer { text-align: center; padding: 20px; color: #999; font-size: 0.85em; border-top: 1px solid #eee; }

/* Page Header pour les sous-pages admin */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.btn-back {
    padding: 10px 20px;
    background: #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}
.btn-back:hover { background: #cbd5e0; }
.alert-error { background: #fed7d7; color: #c53030; }
.alert-success { background: #c6f6d5; color: #2f855a; }