/* 
 * Feuille de style personnalisée pour le CRM Anthony Chartier 
 */

/* Ajustements généraux */
html,
body {
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

.section {
  flex: 1;
}

.footer {
  margin-top: auto;
  padding: 1.5rem;
}

/* Entête et navigation */
.navbar-brand strong {
  font-size: 1.2em;
}

.navbar-item.is-active {
  font-weight: bold;
}

/* Tableaux */
.table th {
  background-color: #f5f5f5;
}

.table.is-hoverable tbody tr:hover {
  background-color: #f0f8ff;
}

/* Cartes */
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-header {
  background-color: #f5f5f5;
}

.card-content {
  flex-grow: 1;
}

/* Badges de statut */
.status-badge {
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 1em;
  font-size: 0.85em;
  font-weight: bold;
  text-transform: uppercase;
}

/* Formulaires */
.required-field::after {
  content: "*";
  color: #f14668;
  margin-left: 4px;
}

.field-help {
  font-size: 0.85em;
  color: #7a7a7a;
  margin-top: 0.25em;
}

/* Boutons d'action */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.button.is-compact {
  padding: 0 0.75em;
  height: 2em;
}

/* Tableaux de bord */
.dashboard-card {
  height: 100%;
}

.dashboard-card .card-content {
  padding: 1.5rem;
}

.dashboard-card .title {
  margin-bottom: 0.5rem;
}

.dashboard-card .subtitle {
  color: #7a7a7a;
}

.dashboard-value {
  font-size: 2em;
  font-weight: bold;
  margin: 1rem 0;
}

/* Notifications et messages */
.notification {
  border-radius: 6px;
}

.notification .delete {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
}

/* Pagination */
.pagination {
  margin: 1.5rem 0;
}

/* Classes d'espacement utilitaires */
.mt-0 {
  margin-top: 0 !important;
}
.mt-1 {
  margin-top: 0.25rem !important;
}
.mt-2 {
  margin-top: 0.5rem !important;
}
.mt-3 {
  margin-top: 0.75rem !important;
}
.mt-4 {
  margin-top: 1rem !important;
}
.mt-5 {
  margin-top: 1.5rem !important;
}
.mt-6 {
  margin-top: 2rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 0.25rem !important;
}
.mb-2 {
  margin-bottom: 0.5rem !important;
}
.mb-3 {
  margin-bottom: 0.75rem !important;
}
.mb-4 {
  margin-bottom: 1rem !important;
}
.mb-5 {
  margin-bottom: 1.5rem !important;
}
.mb-6 {
  margin-bottom: 2rem !important;
}

.ml-0 {
  margin-left: 0 !important;
}
.ml-1 {
  margin-left: 0.25rem !important;
}
.ml-2 {
  margin-left: 0.5rem !important;
}
.ml-3 {
  margin-left: 0.75rem !important;
}
.ml-4 {
  margin-left: 1rem !important;
}
.ml-5 {
  margin-left: 1.5rem !important;
}
.ml-6 {
  margin-left: 2rem !important;
}

.mr-0 {
  margin-right: 0 !important;
}
.mr-1 {
  margin-right: 0.25rem !important;
}
.mr-2 {
  margin-right: 0.5rem !important;
}
.mr-3 {
  margin-right: 0.75rem !important;
}
.mr-4 {
  margin-right: 1rem !important;
}
.mr-5 {
  margin-right: 1.5rem !important;
}
.mr-6 {
  margin-right: 2rem !important;
}

/* Classes de couleur de texte */
.text-primary {
  color: #00d1b2 !important;
}
.text-link {
  color: #3273dc !important;
}
.text-info {
  color: #209cee !important;
}
.text-success {
  color: #48c774 !important;
}
.text-warning {
  color: #ffdd57 !important;
}
.text-danger {
  color: #f14668 !important;
}
.text-muted {
  color: #7a7a7a !important;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .table-container {
    overflow-x: auto;
  }

  .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .action-buttons .button {
    margin-bottom: 0.5rem;
  }
}
