/* Importation des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Roboto:wght@400;500;700&family=Open+Sans:wght@400;600;700&display=swap');

/* Styles globaux */
body {
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* Titres principaux */
h1, h2, h3, .dashboard-title {
  font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
  font-weight: 600;
  color: #222;
}

/* Sous-titres, cartes, encadrés */
h4, h5, h6, .card-title {
  font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #444;
}

/* Menu latéral et navigation */
.sidebar, .nav, .navbar, .sidebar .nav-link, .navbar .nav-link {
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

/* Chiffres, stats, compteurs */
.stats, .number, .count, .stat-card h5, .stat-card .number {
  font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #111;
}

:root {
  --primary: #015756;
  --secondary: #F79F17;
  --accent-color: #d9534f;
  --light-gray: #f4f6f8;
  --white: #ffffff;
  --dark-text: #212529;
  --muted-text: #6c757d;
  --border-radius: 1rem;
  --shadow: 0 4px 12px rgba(1, 87, 86, 0.07);
}

/* ... (imports Google Fonts inchangés) ... */

body {
  font-family: 'Roboto', 'Open Sans', sans-serif, 'Inter', sans-serif;
  background-color: var(--light-gray);
  color: var(--dark-text);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-text);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.container, .container-fluid {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* ====== CARDS ====== */
.card {
  background-color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.card-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-weight: 600;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.card-body {
  padding: 1rem 1.25rem;
}

/* ====== BUTTONS ====== */
.btn {
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(1, 87, 86, 0.10);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}

/* ====== FORMS ====== */
.form-control {
  border-radius: 0.75rem;
  border: 1px solid #ccc;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  box-shadow: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(1, 87, 86, 0.15);
}

/* ====== TABLES ====== */
.table {
  background-color: var(--white);
  color: var(--dark-text);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.table thead {
  background-color: var(--primary);
  color: var(--white);
}

.table th, .table td {
  padding: 0.75rem;
  vertical-align: middle;
  border-top: 1px solid #dee2e6;
}

/* ====== UTILITIES ====== */
.text-muted {
  color: var(--muted-text) !important;
}

.shadow-soft {
  box-shadow: var(--shadow);
}

.rounded-xl {
  border-radius: var(--border-radius);
}

/* ====== NAVBAR / SIDEBAR ====== */
.navbar, .sidebar {
  background-color: var(--primary) !important;
  color: var(--white) !important;
}

.navbar a, .sidebar a {
  color: var(--white) !important;
}

.navbar a:hover, .sidebar a:hover {
  color: var(--secondary) !important;
  text-decoration: none;
  background: rgba(247, 159, 23, 0.08);
  border-radius: 5px;
}

/* ====== RESPONSIVE UTILS ====== */
@media (max-width: 768px) {
  .card-body, .form-control, .btn {
    font-size: 0.95rem;
  }
}

/* === STYLES SUPPLÉMENTAIRES POUR LE DASHBOARD === */

.stat-card {
  border-left: 4px solid var(--primary);
  background: var(--white);
}
.stat-card.warning {
  border-left-color: var(--secondary);
  background: #fffbe6;
}
.stat-card.danger {
  border-left-color: var(--accent-color);
  background: #fff0f0;
}
.stat-card.success {
  border-left-color: #28a745;
  background: #f0fff4;
}

.card-icon {
  font-size: 2rem;
  color: var(--primary);
}

.profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 0.6rem;
}

.top-bar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(1, 87, 86, 0.07);
  padding: 15px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
}

.welcome-text h4 {
  color: var(--primary);
  font-weight: 600;
}
.welcome-text p {
  color: var(--muted-text);
  font-size: 0.9rem;
}

.recent-activity {
  max-height: 300px;
  overflow-y: auto;
}
.activity-item {
  border-left: 3px solid var(--primary);
  padding-left: 15px;
  margin-bottom: 15px;
  background: #fff;
  border-radius: 8px;
}
.activity-item.warning {
  border-left-color: var(--secondary);
  background: #fffbe6;
}
.activity-item.danger {
  border-left-color: var(--accent-color);
  background: #fff0f0;
}
.activity-time {
  font-size: 0.8rem;
  color: #95a5a6;
}

.chart-container {
  position: relative;
  height: 250px;
}

/* === ACTIONS RAPIDES === */
.btn-outline-primary {
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: transparent;
  transition: all 0.2s ease;
}
.btn-outline-primary:hover {
  transform: translateY(-1px);
  background-color: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}
.btn-outline-primary i {
  font-size: 1.2rem;
  margin-right: 0.5rem;
  color: var(--secondary) !important;
}

/* === TÂCHES EN ATTENTE === */
.list-group-item {
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  background: transparent;
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item h6 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.list-group-item small {
  font-size: 0.85rem;
  color: var(--muted-text);
}

.form-check-input {
  width: 1.2em;
  height: 1.2em;
  accent-color: var(--primary);
}

.badge.bg-warning.text-dark {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3em 0.6em;
  border-radius: 0.5rem;
  background: var(--secondary) !important;
  color: #fff !important;
}

.badge.bg-danger {
  background: var(--accent-color) !important;
  color: #fff !important;
}

/* === TOPBAR - admin === */
.text-gray-600 {
  color: var(--dark-text) !important;
}

.text-gray-400 {
  color: #6c757d !important;
}

.dropdown-menu a.dropdown-item {
  color: var(--dark-text) !important;
}

.dropdown-menu a.dropdown-item:hover {
  background-color: #f8f9fa;
}

.modal .modal-body {
  color: var(--dark-text) !important;
}