/* Variables */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #ecf0f1;
    --dark: #34495e;
    --gray: #95a5a6;
    --light-blue: #e1f5fe;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* En-tête */
header {
    background: linear-gradient(135deg, var(--primary), #1a2530);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.2rem;
    color: #fff;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.notification-bell {
    position: relative;
    font-size: 1.4rem;
    cursor: pointer;
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    background-color: var(--light);
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav ul li {
    flex: 1;
    text-align: center;
}

nav ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s;
}

nav ul li a:hover, 
nav ul li a.active {
    background-color: var(--secondary);
    color: white;
}

/* Cartes et sections */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    padding: 25px;
    margin-bottom: 25px;
}

.section-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
    color: var(--primary);
}

/* Formulaires */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

input.error {
    border-color: var(--danger);
}

/* Boutons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--secondary), #2980b9);
    color: white;
}

.btn-success {
    background: linear-gradient(to right, var(--success), #219653);
    color: white;
}

.btn-warning {
    background: linear-gradient(to right, var(--warning), #e67e22);
    color: white;
}

.btn-danger {
    background: linear-gradient(to right, var(--danger), #c0392b);
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.9rem;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 0.9rem;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Statuts et indicateurs */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-urgent {
    background-color: var(--danger);
}

.status-warning {
    background-color: var(--warning);
}

.status-ok {
    background-color: var(--success);
}

.urgent {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--danger);
}

.warning {
    background-color: rgba(243, 156, 18, 0.1);
    border-left: 4px solid var(--warning);
}

/* Barres de progression */
.progress-bar {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--success), #2ecc71);
    border-radius: 5px;
}

/* Grille */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

/* Alertes */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid var(--danger);
    color: var(--danger);
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    border-left: 4px solid var(--success);
    color: var(--success);
}

/* Connexion */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa, #e4e7ec);
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Statistiques */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

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

.stat-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--gray);
}

.stat-card p {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-danger {
    background-color: rgba(231, 76, 60, 0.15);
    color: var(--danger);
}

.badge-warning {
    background-color: rgba(243, 156, 18, 0.15);
    color: var(--warning);
}

.badge-success {
    background-color: rgba(39, 174, 96, 0.15);
    color: var(--success);
}

/* Pied de page */
footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
}

/* Section tableau de bord */
.dashboard-section {
    margin-top: 30px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dashboard-section h2 {
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
}
/* ... [le code existant] ... */

/* Bouton Supprimer */
.btn-delete {
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: white;
}

/* Bouton Détails */
.btn-view {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
}

/* Bouton Modifier */
.btn-edit {
    background: linear-gradient(to right, #f39c12, #e67e22);
    color: white;
}

/* Espacement entre les boutons */
.btn-sm {
    margin-right: 5px;
    margin-bottom: 5px;
}


/* ... autres styles existants ... */

/* Nouveaux styles */
.actions-bar {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.btn-export {
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: white;
}

.btn-calendar {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
}

.btn-pdf {
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: white;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#calendar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}


/* styles.css */
.chart-container {
    position: relative;
    margin: auto;
    height: 300px;
    width: 100%;
}

canvas {
    display: block;
    width: 100% !important;
    height: 250px !important;
}


.btn-steps {
    background: linear-gradient(to right, #8e44ad, #9b59b6);
    color: white;
}