/* Sistema de Agendamento V2 - CSS */

/* Garantir que ícones FontAwesome funcionem no booking system */
.booking-flow i,
.booking-modal-body i,
.modal-time-slot i,
.booking-step i,
.category-icon i,
.professional-avatar i,
.service-duration i,
.detail-label i,
.loading-spinner i {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  display: inline-block !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Garantir exibição dos ícones das categorias especificamente */
.booking-modal-body .category-icon i,
.modal-system-body .category-icon i,
#booking-flow-container .category-icon i,
.booking-flow .category-icon i {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ícones com animação */
.fa-spin {
  animation: fa-spin 2s infinite linear !important;
}

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

/* Container principal */
.booking-flow-container,
#booking-flow-container,
.booking-flow {
  padding: 20px;
  min-height: 400px;
}

/* Ajustes específicos para modal */
.booking-modal-body .booking-flow-container,
.booking-modal-body #booking-flow-container,
.booking-modal-body .booking-flow {
  padding: 0;
  min-height: 300px;
  width: 100%;
  overflow: visible;
}

/* Garantir que o modal system não sobrescreva estilos importantes */
.modal-system-body.booking-modal-body {
  padding: 0 !important;
  background: white !important;
}

.modal-system-body.booking-modal-body .booking-flow-container,
.modal-system-body.booking-modal-body #booking-flow-container,
.modal-system-body.booking-modal-body .booking-flow {
  padding: 0;
  margin: 0;
  width: 100%;
  height: auto;
  min-height: 300px;
}

/* Loading */
.loading-container,
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 20px;
  text-align: center;
}

.loading-container .spinner,
.loading-state .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-state .loading-spinner i {
  font-size: 2rem;
  color: #4CAF50;
  animation: spin 1s linear infinite;
}

.loading-state p {
  margin: 10px 0 0 0;
  color: #666;
  font-size: 1rem;
}

/* Error State */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 20px;
  text-align: center;
  padding: 40px 20px;
}

.error-state .error-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.error-state .error-icon i {
  font-size: 2.5rem;
  color: #dc3545;
}

.error-state h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.5rem;
}

.error-state p {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
}

.error-state .error-details {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  font-family: monospace;
  font-size: 0.9rem;
  color: #495057;
  max-width: 100%;
  word-break: break-word;
}

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

/* Steps */
.booking-step {
  animation: fadeIn 0.3s ease-in;
  padding: 0 20px 0 20px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-header {
  text-align: center;
}

.step-header h3 {
  color: #333;
  margin: 5px 0 5px 0;
  font-size: 1.5rem;
}

.step-header p {
  color: #666;
  font-size: 1rem;
}

/* Grids */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 5px;
  max-width: 100%; /* Reduz largura total em 30% */
  margin-left: auto;
  margin-right: auto;
}

.professionals-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;  
  max-width: 100%; /* Reduz largura total em 30% */
  margin-left: auto;
  margin-right: auto;

}

/* Cards */
.category-card,
.professional-card,
.service-card {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}

.category-card:hover,
.professional-card:hover,
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.category-card.selected,
.professional-card.selected,
.service-card.selected {
  background: #f8fff8;
  transform: translateY(-2px);
  border: 2px solid #4CAF50;
}

/* Category Card */
.category-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  margin-left: auto;
  margin-right: auto;
}

.category-icon i {
  font-size: 24px;
}

.category-info {
  text-align: center;
}

.category-info h4 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.category-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* Professional Card */
.professional-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  margin-left: auto;
  margin-right: auto;
}

.professional-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.professional-avatar i {
  font-size: 24px;
  color: #666;
}

.professional-info {
  text-align: center;
}

.professional-info h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 1.1rem;
}

.professional-info p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Service Card */
.service-info h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.2rem;
  text-align: center;
}

.service-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.service-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.service-price {
  font-weight: bold;
  color: #4CAF50;
  font-size: 1.1rem;
}

.service-duration {
  color: #666;
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Service Checkbox */
.service-checkbox {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 24px;
  height: 24px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.service-card.selected .service-checkbox {
  background: #4CAF50;
  border-color: #4CAF50;
}

.service-checkbox i {
  font-size: 12px;
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.service-card.selected .service-checkbox i {
  opacity: 1;
}

/* Step Info */
.step-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
}

.step-info p {
  margin: 5px 0;
  color: #495057;
}

.text-success {
  color: #28a745 !important;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #dee2e6;
}

.empty-state h4 {
  margin-bottom: 10px;
  color: #495057;
}

.empty-state p {
  margin: 0;
}

/* DateTime Selector */
.datetime-selector {
  background: white;
  border-radius: 12px;
  padding: 0 10px 0 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 100%; 
  margin: 0 0 0 0;
}

.date-selector {
  margin-bottom: 10px;
}

.date-selector label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.date-selector input[type="date"] {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.date-selector input[type="date"]:focus {
  outline: none;
  border-color: #4CAF50;
}

.time-selector label {
  display: block;
  margin-bottom: 15px;
  font-weight: 500;
  color: #333;
}

.times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
}

.time-slot {
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  color: #333;
}

.time-slot:hover {
  border-color: #4CAF50;
  background: #f8fff8;
}

.time-slot.selected {
  border-color: #4CAF50;
  background: #4CAF50;
  color: white;
}

.time-slot:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
  border-color: #ddd;
}

/* Summary */
.booking-summary {
  background: #f8fff8;
  border: 2px solid #4CAF50;
  border-radius: 12px;
  padding: 5px 20px 5px 20px;
  margin-bottom: 10px;
  max-width: 100%; /* Reduz largura total em 30% */
  margin-left: auto;
  margin-right: auto;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #e8f5e8;
}

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

.summary-item.price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #4CAF50;
  border-top: 2px solid #4CAF50;
  margin-top: 15px;
  padding-top: 15px;
}

/* Navigation */
.step-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 5px 10px 5px 10px;
  border-top: 1px solid #e0e0e0;
}

.step-navigation .btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.step-navigation .btn-secondary {
  background: #6c757d;
  color: white;
}

.step-navigation .btn-secondary:hover {
  background: #5a6268;
}

.step-navigation .btn-primary {
  background: #4CAF50;
  color: white;
}

.step-navigation .btn-primary:hover {
  background: #45a049;
}

/* Success */
.success-message {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 4rem;
  color: #4CAF50;
  margin-bottom: 20px;
}

.success-message h3 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.success-message p {
  color: #666;
  margin-bottom: 30px;
}

.booking-details {
  background: #f8fff8;
  border-radius: 12px;
  padding: 5px;
  margin: 5px 0;
  text-align: left;
}

.booking-details h4 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.booking-details p {
  margin: 8px 0;
  color: #555;
}

.success-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%; /* Em mobile, usar largura total */
  }
  
  .professionals-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .times-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  }
  
  .step-navigation {
    gap: 15px;
  }
  
  .step-navigation .btn {
    width: 100%;
  }
  
  .success-actions {
    flex-direction: column;
  }
  
  .booking-flow-container {
    padding: 15px;
  }
}

/* Estados de Loading e Error para Modal */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 20px;
  text-align: center;
}

.loading-state .loading-spinner i {
  font-size: 2rem;
  color: #4CAF50;
  animation: spin 1s linear infinite;
}

.loading-state p {
  margin: 10px 0 0 0;
  color: #666;
  font-size: 1rem;
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 20px;
  text-align: center;
  padding: 40px 20px;
}

.error-state .error-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.error-state .error-icon i {
  font-size: 2.5rem;
  color: #dc3545;
}

.error-state h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.5rem;
}

.error-state p {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 1rem;
  line-height: 1.5;
}

.error-state .error-details {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  font-family: monospace;
  font-size: 0.9rem;
  color: #495057;
  max-width: 100%;
  word-break: break-word;
}

/* Modal de Agendamento */
.booking-modal-body {
  padding: 0 !important;
}

.booking-modal-footer {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Estilos para o calendário de disponibilidade */
.calendar-container {
  margin-top: 1rem;
}

.calendar-loading,
.calendar-error {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.calendar-loading i,
.calendar-error i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.availability-calendar {
  display: block;
  width: 100%;
}

.month-calendar {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  width: 100%;
  padding: 10px 10px 10px 10px;
}

.calendar-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.calendar-navigation h5 {
  margin: 0;
  background: none;
  border: none;
  padding: 0;
  flex-grow: 1;
  text-align: center;
  font-weight: 600;
}

.calendar-navigation button {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-step .calendar-grid {
  width: 100% !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

/* Força layout correto do cabeçalho do calendário */
.booking-step .calendar-container .calendar-grid .calendar-header {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  width: 100% !important;
  order: 1 !important;
}

.booking-step .calendar-container .calendar-days {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  width: 100% !important;
  order: 2 !important;
}

.booking-step .calendar-grid .calendar-header {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  background: #f1f3f4 !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  border-bottom: 3px solid #dee2e6 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 0 !important;
}

.booking-step .calendar-grid .calendar-header span {
  padding: 0.75rem 0.5rem !important;
  text-align: center !important;
  border-right: 1px solid #dee2e6 !important;
  background: #f1f3f4 !important;
  color: #495057 !important;
  font-weight: 700 !important;
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
}

.booking-step .calendar-grid .calendar-header span:last-child {
  border-right: none !important;
}

.booking-step .calendar-days {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 2px !important;
  background: #dee2e6 !important;
  padding: 2px !important;
  margin-top: 0 !important;
}

.calendar-day {
  background: white;
  border: none;
  padding: 10px 10px 10px 10px;
  text-align: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border-radius: 20px;
  width: 100%;
  border: 1px solid #e0e0e0;
}

.calendar-day:hover:not(.empty):not(.past) {
  background: #f8f9fa;
}

.calendar-day.empty {
  background: #f8f9fa;
  cursor: default;
}

.calendar-day.past {
  background: #f8f9fa;
  color: #adb5bd;
  cursor: not-allowed;
}

.calendar-day.today {
  background: #e3f2fd;
  color: #1976d2;
  font-weight: 600;
}

.calendar-day.available {
  background: #e8f5e8;
  color: #2e7d32;
  border: 2px solid #4caf50;
}

.calendar-day.available:hover {
  background: #c8e6c9;
  transform: scale(1.05);
}

.calendar-day.unavailable {
  background: #ffebee;
  color: #c62828;
  border: 2px solid #f44336;
}

.calendar-day.occupied {
  background: #fff3e0;
  color: #f57c00;
  border: 2px solid #ff9800;
  cursor: pointer;
}

.calendar-day.occupied:hover {
  background: #ffe0b2;
  border-color: #f57c00;
}

.calendar-day.selected {
  background: #bbdefb !important;
  color: #0d47a1 !important;
  font-weight: 600;
  border: 2px solid #2196f3 !important;
  transform: scale(1.05);
}

.calendar-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.875rem;
}

.calendar-legend-client {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 1rem;
  padding: 5px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.875rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid #ddd;
}

.legend-color.available {
  background: #e8f5e8;
  border-color: #4caf50;
}

.legend-color.unavailable {
  background: #ffebee;
  border-color: #f44336;
}

.legend-color.today {
  background: #e3f2fd;
  border-color: #2196f3;
}

.legend-color.past {
  background: #f8f9fa;
  border-color: #adb5bd;
}

/* Estilos para os horários */
.loading-times,
.no-times,
.error-times {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.loading-times i,
.no-times i,
.error-times i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.no-times {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  color: #856404;
}

.error-times {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  color: #721c24;
}

.error-times .btn {
  margin-top: 1rem;
}

.times-info {
  text-align: center;
  margin-top: 1rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 6px;
}

.times-info i {
  margin-right: 0.5rem;
}

/* Responsividade para datetime-selector */
.datetime-selector {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .datetime-selector {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .date-selector {
    flex: 1;
  }
  
  .time-selector {
    flex: 0 0 300px;
    min-width: 300px;
  }
}

.date-selector {
  width: 100%;
}

.time-selector {
  width: 100%;
}

.time-selector label {
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
  color: #495057;
}

/* Responsividade do calendário */
@media (max-width: 768px) {
  .availability-calendar {
    width: 100%;
  }
  
  .calendar-day {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
    min-height: 40px;
  }
  
  .calendar-legend {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .legend-item {
    justify-content: left;
  }
  
  .calendar-navigation {
    padding: 0 8px 0 8px;
  }
  
  .calendar-navigation h5 {
    font-size: 1.1rem;
  }
  
  .calendar-navigation button {
    min-width: 35px;
    height: 35px;
  }
  
  .datetime-selector {
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .calendar-day {
    padding: 0.4rem 0.2rem;
    font-size: 0.75rem;
    min-height: 35px;
  }
  
  .calendar-navigation {
    padding: 0 8px 0 8px;
  }
  
  .calendar-navigation h5 {
    font-size: 1rem;
  }
  
  .calendar-navigation button {
    min-width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .calendar-header span {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }
  
  .calendar-legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0.5rem;
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  
  .legend-color {
    width: 14px;
    height: 14px;
  }
  
  .datetime-selector {
    gap: 1rem;
  }
  
  .times-grid {
    gap: 0.5rem;
  }
  
  .time-slot {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}

/* Modal de Horários */
.time-slots-container {
  padding: 1rem 0;
}

.selected-date-info {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.selected-date-info h4 {
  margin: 0 0 0.5rem 0;
  color: #007bff;
  font-weight: 600;
}

.selected-date-info p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.modal-times-container {
  min-height: 200px;
}

.modal-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-time-slot {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modal-time-slot:hover {
  border-color: #007bff;
  background: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,123,255,0.2);
}

.modal-time-slot i {
  color: red;
  font-size: 1.2rem;
}

.modal-time-slot.available {
  border-color: #28a745;
  background: #f8fff8;
}

.modal-time-slot.available:hover {
  border-color: #28a745;
  background: #e8f5e8;
  box-shadow: 0 4px 8px rgba(40,167,69,0.2);
}

.modal-time-slot.available i {
  color: #28a745;
}

.modal-time-slot.occupied {
  border-color: #dc3545;
  background: #fff5f5;
  cursor: not-allowed;
}

.modal-time-slot.occupied i {
  color: #dc3545;
}

.modal-time-slot.past {
  border-color: #6c757d;
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.modal-time-slot.past i {
  color: #6c757d;
}

.modal-times-info {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.modal-times-info i {
  margin-right: 0.5rem;
  color: #6c757d;
}

.no-times-modal,
.error-times-modal {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.no-times-modal {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  color: #856404;
}

.error-times-modal {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  color: #721c24;
}

.no-times-modal i,
.error-times-modal i {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.no-times-modal h5,
.error-times-modal h5 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.no-times-modal p,
.error-times-modal p {
  margin: 0 0 1rem 0;
}

.calendar-instructions {
  margin-top: 1rem;
  padding: 1rem;
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 8px;
}

.calendar-instructions p {
  margin: 0;
  font-size: 0.9rem;
  color: #1976d2;
}

/* Responsividade para modal de horários */
@media (max-width: 768px) {
  .modal-times-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .modal-time-slot {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .selected-date-info {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .modal-times-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .modal-time-slot {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
  
  .selected-date-info p {
    font-size: 0.8rem;
  }
} 