/* ===========================================
   SISTEMA ÚNICO DE MODAIS RESPONSIVOS
   =========================================== */

/* Estilos para Company Selector */
.company-option.current-company {
  border: 2px solid #007bff;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0.05) 100%);
  position: relative;
}

.current-company-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 8px;
}

.current-company-badge i {
  font-size: 0.6rem;
  color: #ffd700;
}

.company-option {
  cursor: pointer;
  transition: all 0.3s ease;
}

.company-option:hover {
  background: rgba(0, 123, 255, 0.1);
  transform: translateY(-1px);
}

.company-option.current-company:hover {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.2) 0%, rgba(0, 123, 255, 0.1) 100%);
}

/* SISTEMA MODERNO E RESPONSIVO
   Este é o único sistema de modais do projeto.
   Todos os modais usam a classe .modal-backdrop e ModalUtils.
   Problemas de overflow e responsividade foram corrigidos. */

/* Modal básico para compatibilidade com sistema antigo */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
  animation: modalBackdropFadeIn 0.3s ease;
  overflow-y: auto;
}

.modal.show {
  display: flex;
}

.modal .modal-content {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  max-height: calc(100vh - 40px);
  min-height: 200px;
  width: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
  position: relative;
  margin: auto;
}

.modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  flex-shrink: 0;
}

.modal .modal-header.success-header {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.modal .modal-header h2 {
  margin: 0;
  font-size: 1.4em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal .modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  transition: all 0.3s;
}

.modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.modal .modal-body {
  padding: 25px;
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

.modal .modal-footer {
  padding: 20px 25px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

/* Backdrop do modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
  animation: modalBackdropFadeIn 0.3s ease;
  overflow-y: auto;
}

/* Contexto de agendamento nos modais de autenticação */
.booking-context-info {
  background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
  border: 1px solid #b3d9ff;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #0066cc;
  animation: pulse 2s infinite;
}

.booking-context-info i {
  color: #0066cc;
  font-size: 1.1rem;
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.3);
  }
  50% { 
    box-shadow: 0 0 0 5px rgba(0, 102, 204, 0.1);
  }
}

@keyframes modalBackdropFadeIn {
  from { 
    opacity: 0; 
    backdrop-filter: blur(0px);
  }
  to { 
    opacity: 1; 
    backdrop-filter: blur(3px);
  }
}

/* Container base do modal - APENAS para modais criados pelo novo sistema */
.modal-backdrop .modal {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  max-height: calc(100vh - 40px);
  min-height: 200px;
  width: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
  position: relative;
  margin: auto;
}

@keyframes modalSlideIn {
  from { 
    opacity: 0; 
    transform: translateY(-30px) scale(0.95);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

/* Variações de tamanho */
.modal-backdrop .modal-small {
  width: 400px;
  max-width: 95vw;
  max-height: calc(100vh - 40px);
}

.modal-backdrop .modal-medium {
  width: 600px;
  max-width: 95vw;
  max-height: calc(100vh - 40px);
}

.modal-backdrop .modal-large {
  width: 800px;
  max-width: 95vw;
  max-height: calc(100vh - 40px);
}

.modal-backdrop .modal-extra-large {
  width: 1000px;
  max-width: 98vw;
  max-height: calc(100vh - 20px);
}

/* Header do modal */
.modal-backdrop .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  flex-shrink: 0;
}

.modal-backdrop .modal-header.header-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.modal-backdrop .modal-header.header-success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.modal-backdrop .modal-header.header-warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: #212529;
}

.modal-backdrop .modal-header.header-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.modal-backdrop .modal-header.header-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.modal-title i {
  font-size: 1.5rem;
}

.modal-title h3,
.modal-title h4 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-subtitle {
  margin: 5px 0 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Botão de fechar */
.close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.modal-header.header-warning .close-btn {
  color: #212529;
  background: rgba(0, 0, 0, 0.1);
}

.modal-header.header-warning .close-btn:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Navegação por abas */
.modal-tabs {
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  overflow-x: auto;
  flex-shrink: 0;
}

.tab-btn {
  flex: 1;
  min-width: 120px;
  padding: 15px 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  color: #6c757d;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.tab-btn:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
}

.tab-btn.active {
  background: white;
  color: #007bff;
  border-bottom: 3px solid #007bff;
}

.tab-btn i {
  font-size: 1.1rem;
}

/* Body do modal - ÁREA PRINCIPAL DE SCROLL */
.modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 25px;
  background: #f8f9fa;
  min-height: 100px;
  max-height: calc(100vh - 200px);
}

.modal-body.no-padding {
  padding: 0;
}

.modal-body.white-bg {
  background: white;
}

/* Conteúdo das abas */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

/* Seções do formulário */
.form-section {
  margin-bottom: 25px;
  background: white;
  border-radius: 12px;
  /*padding: 25px;*/
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
}

.form-section.no-bg {
  background: transparent;
  box-shadow: none;
  border: none;
}

.section-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f3f4;
}

.section-header h4,
.section-header h5 {
  margin: 0 0 5px 0;
  color: #495057;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.section-header h5 {
  font-size: 1.1rem;
}

.section-header i {
  color: #007bff;
  width: 20px;
}

.section-subtitle {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Footer do modal */
.modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 20px 25px;
  background: white;
  flex-shrink: 0;
}

.modal-footer.bg-light {
  background: #f8f9fa;
}

.footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  align-items: center;
}

.footer-actions.space-between {
  justify-content: space-between;
}

.footer-actions.center {
  justify-content: center;
}

/* Estados de loading */
.modal-loading {
  position: relative;
  pointer-events: none;
}

.modal-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
  z-index: 11;
}

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

/* Botões padronizados */
.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

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

.btn-secondary:hover:not(:disabled) {
  background: #5a6268;
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  color: white;
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: #212529;
}

.btn-warning:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-outline-secondary {
  background: transparent;
  color: #6c757d;
  border: 2px solid #6c757d;
}

.btn-outline-secondary:hover:not(:disabled) {
  background: #6c757d;
  color: white;
}

.btn-outline-primary {
  background: transparent;
  color: #007bff;
  border: 2px solid #007bff;
}

.btn-outline-primary:hover:not(:disabled) {
  background: #007bff;
  color: white;
}

/* Modais de confirmação */
.modal-confirm {
  text-align: center;
}

.modal-confirm .modal-body {
  padding: 30px;
  background: white;
}

.modal-confirm .confirm-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.modal-confirm.confirm-danger .confirm-icon {
  color: #dc3545;
}

.modal-confirm.confirm-warning .confirm-icon {
  color: #ffc107;
}

.modal-confirm.confirm-success .confirm-icon {
  color: #28a745;
}

.modal-confirm.confirm-info .confirm-icon {
  color: #17a2b8;
}

.modal-confirm h4 {
  margin: 0 0 15px 0;
  color: #495057;
}

.modal-confirm p {
  margin: 0 0 25px 0;
  color: #6c757d;
  line-height: 1.5;
}

/* Estados especiais */
.modal-transparent .modal-backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.modal-no-animation .modal {
  animation: none;
}

.modal-no-animation .modal-backdrop {
  animation: none;
}

/* ===========================================
   RESPONSIVIDADE MELHORADA
   =========================================== */

@media (max-width: 768px) {
  .modal-backdrop {
    padding: 10px;
    /* Permitir alinhamento centralizado mesmo em mobile */
    align-items: flex-start;
    padding-top: 20px;
  }

  .modal,
  .modal-small,
  .modal-medium,
  .modal-large,
  .modal-extra-large {
    width: 100%;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 40px);
    margin: 0;
  }

  /* Modal básico responsivo */
  .modal {
    padding: 10px;
    align-items: flex-start;
    padding-top: 20px;
  }

  .modal .modal-content {
    width: 100%;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 40px);
    margin: 0;
  }

  .modal .modal-header {
    padding: 15px 20px;
  }

  .modal .modal-header h2 {
    font-size: 1.2em;
  }

  .modal .modal-body {
    padding: 20px 15px;
    max-height: calc(100vh - 160px);
  }

  .modal .modal-footer {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-title h3,
  .modal-title h4 {
    font-size: 1.1rem;
  }

  .modal-body {
    padding: 20px 15px;
    /* Ajustar altura máxima para mobile */
    max-height: calc(100vh - 160px);
  }

  .form-section {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .modal-tabs {
    flex-wrap: wrap;
  }

  .tab-btn {
    min-width: 100px;
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .footer-actions {
    flex-direction: column;
    gap: 10px;
  }

  .footer-actions:not(.space-between):not(.center) .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .modal-backdrop {
    padding: 5px;
    padding-top: 10px;
  }

  .modal,
  .modal-small,
  .modal-medium,
  .modal-large,
  .modal-extra-large {
    max-width: calc(100vw - 10px);
    max-height: calc(100vh - 20px);
  }

  /* Modal básico em telas pequenas */
  .modal {
    padding: 5px;
    padding-top: 10px;
  }

  .modal .modal-content {
    max-width: calc(100vw - 10px);
    max-height: calc(100vh - 20px);
  }

  .modal .modal-header {
    padding: 12px 15px;
  }

  .modal .modal-header h2 {
    font-size: 1rem;
  }

  .modal .modal-close {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .modal .modal-body {
    padding: 15px;
    max-height: calc(100vh - 120px);
  }

  .modal .modal-footer {
    padding: 12px 15px;
  }

  .modal-header {
    padding: 12px 15px;
  }

  .modal-title i {
    font-size: 1.2rem;
  }

  .modal-title h3,
  .modal-title h4 {
    font-size: 1rem;
  }

  .close-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .tab-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
    min-width: 90px;
  }

  .modal-body {
    padding: 15px;
    /* Altura máxima ainda menor para telas muito pequenas */
    max-height: calc(100vh - 120px);
  }

  .form-section {
    padding: 15px;
    margin-bottom: 15px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Para telas muito pequenas (menos de 360px) */
@media (max-width: 360px) {
  .modal-backdrop {
    padding: 2px;
    padding-top: 5px;
  }

  .modal,
  .modal-small,
  .modal-medium,
  .modal-large,
  .modal-extra-large {
    max-width: calc(100vw - 4px);
    max-height: calc(100vh - 10px);
    border-radius: 10px;
  }

  .modal-header {
    padding: 10px 12px;
  }

  .modal-title h3,
  .modal-title h4 {
    font-size: 0.95rem;
  }

  .modal-body {
    padding: 12px;
    max-height: calc(100vh - 100px);
  }

  .form-section {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .tab-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
    min-width: 80px;
  }

  .close-btn {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}

/* ===========================================
   ESTILOS ESPECÍFICOS PARA MODAL DE PROFISSIONAIS
   =========================================== */

/* Seções de Serviços e Categorias */
.services-group,
.category-services-group {
  margin-bottom: 1.5rem;
}

.category-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.category-group-header h5 {
  margin: 0;
  color: #495057;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-group-header h5 i {
  color: #007bff;
}

.group-actions {
  display: flex;
  gap: 8px;
}

.group-actions .btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
}

/* Grid de Seleção */
.services-selection,
.categories-selection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.all-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Cards de Seleção */
.selection-card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 16px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
}

.selection-card:hover {
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.selection-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.selection-card input[type="checkbox"]:checked + .card-content {
  background: rgba(0, 123, 255, 0.05);
}

.selection-card input[type="checkbox"]:checked ~ .card-content,
.selection-card:has(input:checked) .card-content {
  background: rgba(0, 123, 255, 0.05);
}

.selection-card input[type="checkbox"]:checked ~ .card-content .checkmark,
.selection-card:has(input:checked) .checkmark {
  opacity: 1;
  transform: scale(1);
}

.selection-card input[type="checkbox"]:checked ~ *,
.selection-card:has(input:checked) {
  border-color: #007bff;
  background: rgba(0, 123, 255, 0.02);
}

.selection-card input[type="checkbox"]:checked ~ * .checkmark,
.selection-card:has(input:checked) .checkmark {
  opacity: 1;
  transform: scale(1);
}

.checkmark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: #007bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.checkmark::after {
  content: "✓";
  font-weight: bold;
}

.card-content {
  flex: 1;
  transition: all 0.3s ease;
  padding-right: 40px;
}

.card-header {
  margin-bottom: 8px;
}

.card-header strong {
  color: #495057;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Cards de Categoria */
.category-card .card-content p {
  color: #6c757d;
  font-size: 0.9rem;
  margin: 8px 0;
  line-height: 1.4;
}

/* Cards de Serviço */
.service-card .service-details {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

.service-details .price {
  color: #28a745;
  font-weight: 600;
  font-size: 0.95rem;
}

.service-details .duration {
  color: #6c757d;
  font-size: 0.85rem;
  padding: 2px 8px;
  background: #f8f9fa;
  border-radius: 12px;
}

.service-description {
  color: #6c757d;
  font-size: 0.85rem;
  margin: 8px 0 0 0;
  line-height: 1.4;
}

/* Seção de Pagamento */
.payment-types {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-option {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  display: block;
}

.payment-option:hover {
  border-color: #007bff;
  background: rgba(0, 123, 255, 0.02);
}

.payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.payment-option input[type="radio"]:checked + .option-content {
  color: #007bff;
}

.payment-option:has(input:checked) {
  border-color: #007bff;
  background: rgba(0, 123, 255, 0.05);
}

.option-content {
  transition: all 0.3s ease;
}

.option-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.option-header i {
  font-size: 1.2rem;
  color: #6c757d;
  transition: color 0.3s ease;
}

.payment-option:has(input:checked) .option-header i {
  color: #007bff;
}

.option-header strong {
  font-size: 1rem;
  font-weight: 600;
}

.option-content p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
}

.payment-value-group {
  margin-top: 1.5rem;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #007bff;
}

.value-input {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.value-input .form-control {
  border-radius: 8px;
  text-align: left;
  font-weight: 600;
  width: 100%;
}

/* Estado Vazio */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #6c757d;
}

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

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #495057;
}

.empty-state p {
  margin: 0;
  font-size: 0.9rem;
}

/* Campos de formulário melhorados */
.modal .form-section {
  margin-bottom: 2rem;
}

.modal .form-section:last-child {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #495057;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.field-help {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 4px;
  line-height: 1.4;
}

.company-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.company-display i {
  color: #007bff;
  font-size: 1.2rem;
}

.company-display span {
  font-weight: 600;
  color: #495057;
}

/* Responsividade */
@media (max-width: 1200px) {
  .modal-backdrop .modal-extra-large {
    width: 100%;
    max-width: 95vw;
    margin: 10px;
  }
}

@media (max-width: 992px) {
  .services-selection,
  .categories-selection,
  .all-services {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .category-group-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .group-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .modal-backdrop .modal-extra-large {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
  }
  
  .modal-backdrop {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .services-selection,
  .categories-selection,
  .all-services {
    grid-template-columns: 1fr;
  }
  
  .selection-card {
    min-height: 100px;
    padding: 12px;
  }
  
  .payment-types {
    gap: 0.8rem;
  }
  
  .payment-option {
    padding: 12px;
  }
  
  .value-input .form-control {
    border-radius: 8px;
    width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  .modal-tabs {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .modal-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .tab-btn {
    min-width: 100px;
    font-size: 0.85rem;
    padding: 12px 16px;
  }
}

@media (max-width: 576px) {
  .group-actions {
    flex-direction: column;
    gap: 6px;
  }
  
  .group-actions .btn-sm {
    width: 100%;
    text-align: center;
  }
  
  .category-group-header h5 {
    font-size: 0.9rem;
  }
  
  .card-header strong {
    font-size: 0.95rem;
  }
  
  .service-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .empty-state {
    padding: 2rem 1rem;
  }
  
  .empty-state i {
    font-size: 2.5rem;
  }
  
  .modal-tabs {
    flex-wrap: nowrap;
    padding: 0 10px;
  }
  
  .tab-btn {
    min-width: 90px;
    font-size: 0.8rem;
    padding: 10px 8px;
    white-space: nowrap;
  }
  
  .tab-btn i {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
  }
  
  .modal-body {
    padding: 16px;
  }
  
  .form-section {
    padding: 16px;
  }
  
  .section-header {
    margin-bottom: 16px;
  }
  
  .section-header h4 {
    font-size: 1.1rem;
  }
  
  .company-display {
    padding: 10px 12px;
  }
  
  .payment-option {
    padding: 10px;
  }
  
  .option-header {
    gap: 8px;
  }
  
  .option-header i {
    font-size: 1rem;
  }
}

/* Estilos para modals de recuperação de senha */
.success-message {
  text-align: center;
  padding: 20px;
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 20px;
}

.success-message h3 {
  color: var(--success-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.email-highlight {
  background: var(--light-bg);
  border: 2px solid var(--success-color);
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.email-highlight i {
  color: var(--success-color);
  font-size: 1.2rem;
}

.instructions {
  text-align: left;
  margin: 25px 0;
  background: var(--light-bg);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.instructions h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.instructions ol {
  margin: 0;
  padding-left: 20px;
}

.instructions li {
  margin-bottom: 8px;
  font-weight: 500;
}

.alert {
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-info {
  background: #e3f2fd;
  border: 1px solid #2196f3;
  color: #1976d2;
}

.alert-warning {
  background: #fff3e0;
  border: 1px solid #ff9800;
  color: #f57c00;
}

.alert i {
  margin-top: 2px;
  flex-shrink: 0;
}

.form-help {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-help i {
  color: var(--primary-color);
}

/* Botão de link para "Esqueci minha senha" */
.btn-link {
  background: none;
  border: none;
  color: var(--primary-color);
  text-decoration: underline;
  font-size: 0.9rem;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-link:hover {
  color: var(--primary-hover);
  text-decoration: none;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 4px;
}

/* Responsividade para modais de recuperação */
@media (max-width: 768px) {
  .success-message {
    padding: 15px;
  }
  
  .success-icon {
    font-size: 3rem;
  }
  
  .email-highlight {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
  
  .instructions {
    padding: 15px;
  }
  
  .instructions ol {
    padding-left: 15px;
  }
  
  .footer-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-actions .btn {
    width: 100%;
  }
}

/* Login para agendamento */
.booking-login-notice {
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
}

.booking-login-notice small {
  color: #856404;
  font-weight: 500;
}

.booking-login-notice i {
  margin-right: 5px;
}

/* Alert para login de agendamento */
.alert.alert-info {
  background-color: #e3f2fd;
  border-color: #bbdefb;
  color: #0d47a1;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert.alert-info i {
  color: #1976d2;
  margin-top: 2px;
  flex-shrink: 0;
}

.alert.alert-info div {
  flex: 1;
}

/* Botão de agendamento */
.btn-warning {
  background-color: #ff9800;
  border-color: #ff9800;
  color: white;
}

.btn-warning:hover {
  background-color: #f57c00;
  border-color: #f57c00;
  color: white;
}

/* Header styles para modais */
.modal-header.warning-header {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
}

.modal-header.warning-header .modal-title {
  color: white;
  font-weight: 600;
}

.modal-header.warning-header .close {
  color: white;
  opacity: 0.8;
}

.modal-header.warning-header .close:hover {
  opacity: 1;
}

/* Login para agendamento */
.booking-login-notice {
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
}

.booking-login-notice small {
  color: #856404;
  font-weight: 500;
}

.booking-login-notice i {
  margin-right: 5px;
}

.booking-restriction-notice {
  text-align: center;
  margin-top: 10px;
  padding: 8px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
}

.booking-restriction-notice small {
  color: #856404;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Alert para login de agendamento */
.alert.alert-info {
  background-color: #e3f2fd;
  border-color: #bbdefb;
  color: #0d47a1;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert.alert-info i {
  color: #1976d2;
  margin-top: 2px;
  flex-shrink: 0;
}

.alert.alert-info div {
  flex: 1;
}

/* Botão de agendamento */
.btn-warning {
  background-color: #ff9800;
  border-color: #ff9800;
  color: white;
}

.btn-warning:hover {
  background-color: #f57c00;
  border-color: #f57c00;
  color: white;
}

/* Modal de Confirmação de Inativação */
.confirmation-modal {
  text-align: center;
  padding: 20px 0;
}

.confirmation-modal .modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  font-size: 2.5rem;
}

.confirmation-modal .modal-icon.warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.confirmation-modal h3 {
  margin: 0 0 15px 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #495057;
}

.confirmation-modal p {
  margin: 0 0 20px 0;
  font-size: 1rem;
  color: #6c757d;
  line-height: 1.5;
}

.info-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-box.warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-color: #ffc107;
  color: #856404;
}

.info-box i {
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-box.warning i {
  color: #f39c12;
}

.info-box strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.info-box ul {
  margin: 0;
  padding-left: 16px;
  list-style: none;
}

.info-box li {
  margin-bottom: 4px;
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.info-box li::before {
  content: "•";
  color: #f39c12;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Responsividade para modal de confirmação */
@media (max-width: 768px) {
  .confirmation-modal {
    padding: 15px 0;
  }
  
  .confirmation-modal .modal-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .confirmation-modal h3 {
    font-size: 1.2rem;
  }
  
  .info-box {
    padding: 12px;
    font-size: 0.9rem;
  }
  
  .info-box li {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .confirmation-modal .modal-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .confirmation-modal h3 {
    font-size: 1.1rem;
  }
  
  .info-box {
    flex-direction: column;
    gap: 8px;
  }
} 