/*
 * This is the main stylesheet for the doctor layout.
 * It includes all necessary styles including dashboard styles.
 */

/* Dashboard specific styles */

.dashboard-filters {
  /* Styles pour le formulaire de filtres */
}

.dashboard-filters select {
  background-image: none;
}

.dashboard-filters .filter-active {
  background-color: #e0f2fe;
  border-color: #0288d1;
  color: #01579b;
}

.dashboard-filters .sort-button-active {
  background-color: var(--med-primary-light, #e3f2fd);
  color: var(--med-primary-dark, #1565c0);
}

.dashboard-filters .sort-button-inactive {
  background-color: #f5f5f5;
  color: #666;
}

.dashboard-filters .sort-button-inactive:hover {
  background-color: #e0e0e0;
}

/* Amélioration de l'apparence des selects */
.dashboard-filters select:focus {
  outline: none;
  ring: 2px;
  ring-color: var(--med-primary, #2196f3);
}

/* Animation pour les transitions */
.dashboard-filters button,
.dashboard-filters select,
.dashboard-filters input {
  transition: all 0.2s ease-in-out;
}

/* Responsive design pour les filtres */
@media (max-width: 768px) {
  .dashboard-filters .flex-wrap {
    flex-direction: column;
    gap: 1rem;
  }

  .dashboard-filters .flex-grow {
    width: 100%;
  }
}

/* Loading state pour les filtres */
.dashboard-filters.loading {
  opacity: 0.7;
  pointer-events: none;
}

.dashboard-filters.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--med-primary, #2196f3);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
