/* Remove borda preta do input de busca */
.select2-selection__rendered textarea.select2-search__field:focus-visible {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    margin-top: 4px !important;
    padding-left: 4px !important;
}

/* Remove o fundo branco do input quando selecionado */
.select2-container--bootstrap-5 .select2-search--inline .select2-search__field {
    background-color: transparent !important;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

/* Deixar as tags mais harmoniosas */
.select2-selection__choice {
    background-color: #e5f4ec !important; /* verde claro */
    border: 1px solid #9cd3b4 !important;  /* verde combinando */
    color: #1b5e37 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.25rem !important;
    margin-top: 2px !important;
    font-size: .875rem;
    display: flex;
    align-items: center;
}

/* Botão X mais elegante */
.select2-selection__choice__remove {
    background: transparent !important;
    border: none !important;
    color: #1b5e37 !important;
    margin-right: 4px !important;
    font-size: 1rem !important;
    cursor: pointer;
}

.select2-selection__choice__remove:hover {
    color: #ff3b3b !important;
}

/* Remove a borda dupla quando o select está aberto */
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}


.bg-image {
  background-image: url('../assets/background_login.jpg');
  background-size: cover;
  background-position: center;
}
body {
  background-color: #f8f9fa;
}

a.text-success:hover {
  color: #006D60 !important;
}
#voltarLogin {
    border: 1px solid #006D60;
    color: #006D60;
    transition: background-color 0.2s, color 0.2s;
  }

  #voltarLogin:hover {
    background-color: #006D60;
    color: #fff;
  }

  .form-check-input:checked {
    background-color: #62B55A;
    border-color: #62B55A;
  }

  .layout-wrapper {
    display: flex;
  }
  .bg-sidebar {
    background-color: #006D60;
    min-height: 100vh;
    width: 250px !important;
    max-width: 250px !important;
  }
  .sidebar-heading img {
    max-width: 180px;
  }
  .list-group-item {
    background-color: #006D60;
    color: #fff;
    border: none;
  }
  .list-group-item:hover {
    background-color: #62B55A;
    color: #fff;
  }
  .list-group-item.active {
    background-color: #62B55A;
    color: #fff;
}

  .hover-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .hover-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  .table-header-custom {
    background-color: #E9F7F2;
    color: #006D60;
  }

/* Botão Adicionar Novo com cor da sidebar */
.btn-menu {
    background-color: #007965;
    color: #fff;
    border: none;
  }
  .btn-menu:hover {
    background-color: #006653;
    color: #fff;
  }

  .content-box {
      background-color: #fff;
      border-radius: 1rem;
      padding: 2rem;
      box-shadow: 0 0 10px rgba(0,0,0,0.05);
    }
    .table {
      border-radius: 0.5rem;
      overflow: hidden;
    }
    .dataTables_wrapper .dataTables_filter input {
      border-radius: 0.5rem;
    }
    .btn-warning {
      background-color: #ffc107;
      border: none;
    }
    .btn-danger {
      background-color: #dc3545;
      border: none;
    }

 /* Estilização da paginação do DataTables */

  .active>.page-link, .page-link.active {
    background-color: #007965 !important; /* Cor do menu lateral */
  }

  .active>.page-link, .page-link.active:hover {
    background-color: #007965 !important; /* Cor do menu lateral */
  }




  .content-box {
      background-color: #fff;
      border-radius: 1rem;
      padding: 2rem;
      box-shadow: 0 0 10px rgba(0,0,0,0.05);
    }
    .table {
      border-radius: 0.5rem;
      overflow: hidden;
    }
    .dataTables_wrapper .dataTables_filter input {
      border-radius: 0.5rem;
    }
    .btn-warning {
      background-color: #ffc107;
      border: none;
    }
    .btn-danger {
      background-color: #dc3545;
      border: none;
    }

    .table-responsive{
        margin-top: 30px !important;
    }

    .category-block {
        border: 1px solid #ccc;
        padding: 10px;
    }

 .preview-img {
      width: 100%;
      height: auto;
      max-height: 165px;
      object-fit: contain;
      border: 1px solid #ddd;
      border-radius: 0.5rem;
      margin-top: 0.5rem;
    }
    .gallery-preview img {
      width: 120px;
      height: 120px;
      object-fit: cover;
      margin: 0.5rem;
      border-radius: 8px;
    }

    .schedule-section {
      border: 1px solid #dee2e6;
      border-radius: 8px;
      padding: 1rem;
      margin-bottom: 1.5rem;
      background: #f8f9fa;
    }
    .day-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 1rem;
    }
    .day-block {
      background: #fff;
      border: 1px solid #dee2e6;
      border-radius: 8px;
      padding: 1rem;
    }
    .day-block.disabled {
      background-color: #e9ecef;
      pointer-events: none;
    }


   /*ajusta o select 2 para manter o layout padrao */
    .select2-container--bootstrap-5 .select2-selection {
      padding-top: 0.375rem;
      padding-bottom: 0.375rem;
      height: auto !important;
      min-height: 38px;
    }


    /* Limita altura e permite rolagem no dropdown */
    .select2-container--bootstrap-5 .select2-results__options {
      max-height: 220px;
      overflow-y: auto;
    }

    /* Destaca a opção selecionada no menu */
    .select2-container--bootstrap-5 .select2-results__option--selected {
      background-color: #e6f4ea !important; /* verde claro sutil */
      color: #000;
    }

    /* Ao passar o mouse, mantém o highlight visual */
    .select2-container--bootstrap-5 .select2-results__option--highlighted {
      background-color: #d0f0db !important;
      color: #000;
    }

.border-end-green {
  border-left: 5px solid #006D60; /* Ajuste a cor conforme o verde usado no menu */
}

.dashboard-card {
  min-width: 265px;
  border-radius: 0.5rem;

}

#preview-container .image-thumb {
    position: relative;
    width: 120px;
    height: 120px;
}
#preview-container .image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
#preview-container .image-thumb button {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    border: none;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
}

@media (min-width: 768px) {
  #categorias-container > .col-md-6:nth-child(2n + 1) {
    clear: both;
  }
}

  @media (max-width: 991.98px) {
    .sidebar-desktop {
      display: none;
    }
  }

  @media (min-width: 1200px) {
  .dashboard-card-wrapper {
    width: 20%;
    flex: 0 0 20%;
  }
}

.dashboard-card-wrapper {
  min-width: 200px;
}

.js-validate-error-label {
    display: block !important;    /* Garante que fique em bloco */
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    margin-left: 0;               /* Remove alinhamento lateral */
}

.js-validate-error-field {
    border-color: #dc3545 !important;
}



.upload-box {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  height: 70px; /* Altura reduzida */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: 0.3s;
  border: 1px solid #dee2e6; /* Substitui pontilhado */
}

.upload-box.dragover {
  background-color: #e0f3ff;
  border-color: #3399ff;
}

.upload-message {
  font-size: 16px;
  color: #444;
}

.upload-message a {
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
}

.image-thumb {
  width: 120px;
  height: 120px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f0f0f0;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  background-color: #ff4d4f;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-weight: bold;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
}

