:root {
  --bg: #0b1420;           /* Navy profundo */
  --hover: #262f43;       /* hover bg */
  --card: #0f1c2a;         /* Navy um tom acima */
  --text: #e6eef7;         /* Texto claro */
  --muted: #F9FAFB;        /* Texto suave */
  --brand: #f2c94c;        /* Dourado premium */
  --brand-2: #F9FAFB;      /* Acento frio */
  --stroke: rgba(255,255,255,.08);
  --bgcuston: #F9FAFB;  /* fundo branco gelo */
}

  html, body { 
        background: radial-gradient(1200px 800px at 70% -10%, rgba(76,201,240,.08), transparent 45%), var(--bgcuston); 
        font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; 
    }

.brand-badge { 
    display:inline-flex; 
    align-items:center; 
    gap:.6rem; 
    font-weight:700; 
    font-size: 1.50rem;
    letter-spacing:.4px; 
}

 .brand-dot { 
        width:12px; 
        height:12px; 
        border-radius:50%; 
        background: linear-gradient(135deg, var(--brand), #ffeaa7);
        box-shadow: 0 0 0 4px rgba(242,201,76,.15); 
    } 
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;
    min-height: 100vh;
  }
  .bg-sidebar {
    background-color: var(--bg);
    min-height: 100vh;
    width: 250px;
    max-width: 250px;
    flex: 0 0 250px;
    flex-shrink: 0;
    transition: width 0.2s ease, max-width 0.2s ease, flex-basis 0.2s ease, padding 0.2s ease;
  }
  .layout-wrapper > .flex-grow-1 {
    min-width: 0;
  }
  .sidebar-desktop {
    overflow-x: hidden;
  }
  .sidebar-heading img {
    max-width: 180px;
  }
  .sidebar-heading .brand-badge {
    justify-content: center;
    width: 100%;
    white-space: nowrap;
  }
  .sidebar-heading .brand-text {
    transition: opacity 0.2s ease, width 0.2s ease;
  }
  .list-group {
    gap: 0.35rem;
  }
  .list-group-item {
    background-color: var(--bg);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem !important;
    transition: background-color 0.3s ease, color 0.3s ease, padding 0.2s ease;
  }
  .list-group-item:hover {
    color: #fff;
    background-color: var(--hover);
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .list-group-item.active {
    background-color: var(--hover);
    color: #fff;
  }
  .menu-icon {
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
    font-size: 1.5rem;
  }
  .menu-label {
    white-space: normal;
    line-height: 1.25;
    overflow-wrap: anywhere;
    transition: opacity 0.2s ease, width 0.2s ease;
  }
  body.sidebar-collapsed .bg-sidebar.sidebar-desktop {
    width: 84px;
    max-width: 84px;
    flex-basis: 84px;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  body.sidebar-collapsed .sidebar-desktop .sidebar-heading {
    margin-bottom: 1rem !important;
  }
  body.sidebar-collapsed .sidebar-desktop .brand-badge {
    justify-content: center;
  }
  body.sidebar-collapsed .sidebar-desktop .brand-text,
  body.sidebar-collapsed .sidebar-desktop .menu-label {
    opacity: 0;
    width: 0;
    max-width: 0;
    display: none;
    overflow: hidden;
    pointer-events: none;
  }
  body.sidebar-collapsed .sidebar-desktop .list-group-item {
    justify-content: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    gap: 0;
  }
  .tooltip.sidebar-tooltip {
    --bs-tooltip-bg: #ffffff;
    --bs-tooltip-color: #0b1420;
    --bs-tooltip-opacity: 1;
  }
  .tooltip.sidebar-tooltip .tooltip-inner {
    background: #ffffff;
    color: #0b1420;
    border: 1px solid rgba(11, 20, 32, 0.12);
    border-radius: 0.75rem;
    box-shadow: 0 12px 28px rgba(11, 20, 32, 0.16);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.55rem 0.8rem;
    text-align: left;
  }
  .tooltip.sidebar-tooltip.bs-tooltip-end {
    margin-left: 0.35rem;
  }
  .tooltip.sidebar-tooltip.bs-tooltip-end .tooltip-arrow {
    left: -0.4rem;
    width: 1rem;
  }
  .tooltip.sidebar-tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #ffffff;
    filter: drop-shadow(-1px 0 0 rgba(11, 20, 32, 0.12));
  }

  .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: #0b1420;
  }

/* 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: 0.75rem;
      padding: 2rem;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    .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: var(--bg) !important; /
  }
  
  .active>.page-link, .page-link.active:hover {
    background-color: var(--hover) !important; 
  }

 
  .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 #0b1420; /* 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;
}
