/* postes.css - Styles spécifiques au module Postes */

/* Table personnalisée pour postes */
#postesTable {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

#postesTable th,
#postesTable td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

#postesTable th {
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

#postesTable tr:hover {
  background-color: rgba(52, 152, 219, 0.15);
}

/* Badges disponibilité */
.badge-success {
  background-color: var(--badge-success-bg);
  color: var(--secondary);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
}

.badge-danger {
  background-color: var(--badge-danger-bg);
  color: var(--accent);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
}

/* Boutons actions */
.actions .action-btn {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1rem;
  transition: background-color 0.25s ease;
}

.actions .edit-btn {
  background-color: var(--primary);
  color: #fff;
}

.actions .edit-btn:hover {
  background-color: var(--primary-dark);
}

.actions .delete-btn {
  background-color: var(--accent);
  color: #fff;
}

.actions .delete-btn:hover {
  background-color: #c0392b; /* Couleur rouge foncé */
}

/* Modals spécifique postes */
#posteFormModal .modal-content {
  padding: 0;
  overflow: visible;
}

#posteFormModal .modal-header {
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 1.25rem;
}

/* Form controls spécifiques */
#posteForm .form-group label {
  font-weight: 600;
  color: var(--dark);
}

#posteForm .form-control {
  border-radius: 6px;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#posteForm .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}

/* Boutons formulaire */
#posteForm .btn-success {
  background-color: var(--secondary);
  color: #fff;
  font-weight: 600;
}

#posteForm .btn-success:hover {
  background-color: #27ae60;
}

#posteForm .btn-secondary {
  background-color: var(--gray);
  color: #fff;
  font-weight: 600;
}

#posteForm .btn-secondary:hover {
  background-color: #6c757d;
}

/* Notification spécifique contexte postes */
.notification {
  font-size: 1rem;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Responsive adaptations */
@media(max-width: 768px) {
  #postesTable th,
  #postesTable td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .actions .action-btn {
    padding: 6px 8px;
    font-size: 0.85rem;
  }
}
