@import url(https://fonts.googleapis.com/css2?family=Kanit:wght@300&display=swap);

:root {
  --bs-primary: #24a637;
  --bs-font-sans-serif: 'Kanit';
  --green-dark: #1e9a35;
  --green-light: #24a637;
  --bs-dark: #4c4c4c;
  --bs-dark-rgb: #4c4c4c;
  --bs-black-rgb: #4c4c4c;
  --bs-primary-rgb: #24a637;
  --bs-primary-bg-subtle: #24a6372a;
  --bs-tooltip-bg: white;
  --bs-tooltip-color: #4c4c4c;

  --bs-secondary-subtle-rgb: 226, 227, 229;


  --header-height: 3.5rem;
  --footer-height: 3.7rem;
}


.h-screen {
  height: calc(100vh - var(--footer-height));
}

.btn-primary {
  --bs-btn-disabled-bg: #24a637;
}

.btn-outline-primary {
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-active-color: white;
  --bs-btn-color: var(--bs-primary);
}

body {
  font-family: var(--bs-font-sans-serif);
  color: #4c4c4c;
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}

hr {
  margin-top: 10px;
  margin-bottom: 4px;
}

.hover-gray:hover {
  background-color: #f0f0f0 !important;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-move {
  cursor: move;
}

.hide {
  opacity: 0;
  visibility: hidden;
  height: 0;
}

.btn-primary {
  color: white !important;
  background-color: var(--green-light);
  border: none !important;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
  background-color: var(--green-dark) !important;
}

.btn-disabled {
  pointer-events: none;
}

.btn-disabled:disabled {
  border: none;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.text-dark {
  color: var(--bs-dark);
}

.text-black4c {
  color: var(--bs-dark);
}

.modal-content {
  background-color: #F5F5F5;
}

.modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.bg-green-light {
  background-color: #24a6372a;
}

.d-height-none {
  height: 0 !important;
  /* display: none; */
}

.tooltip {
  --bs-tooltip-bg: white;
  --bs-tooltip-color: #4c4c4c;
}

.bg-gray-subtle {
  background-color: #F5F5F5;
}

.text-gray-subtle {
  color: #F5F5F5;
}

.bg-white-subtle {
  background-color: rgb(255, 255, 255, 0.8);
}

.vertical-line {
  border-left: 1px solid transparent;
}

.border-gray {
  border-color: #dee2e6 !important;
}

.fs-7 {
  font-size: 0.875rem;
}

.btn-secondary-white {
  background-color: #e5e5e5 !important;
  color: #4c4c4c;
  border-color: transparent;
}

.btn-secondary-white:hover {
  background-color: #d9d9d9;
  color: #4c4c4c
}

input[type=range]::-webkit-slider-thumb,
input[type=range]::-moz-range-thumb {
  background: #009dcc;
}

.rotate-90 {
  transform: rotate(90deg);
}

.introjs-dontShowAgain {
  display: flex;
  align-items: center;
  flex-direction: row;
}

.introjs-dontShowAgain input {
  width: 13px;
  height: 13px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

input[role="switch"] {
  cursor: pointer;
}

input[role="switch"]:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  /* --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgb(36, 166, 55)'/%3e%3c/svg%3e") !important; */
}

input[role="switch"]:focus {
  /* --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%0, 0, 0, 1%29'/%3e%3c/svg%3e") !important; */
  box-shadow: unset;
  /* border: var(--bs-border-width) solid var(--bs-border-color); */
}

.btn-check:checked+.btn {
  font-weight: bold;
}

.text-muted {
  font-size: x-small;
  color: #afafaf;
  font-weight: bold;
}

.template {
  display: none;
}

.popover-body {
  margin: 0 !important;
}

.popover {
  overflow: hidden !important;
}

.btn-check.checked+.btn {
  color: var(--bs-btn-active-color);
  background-color: var(--bs-btn-active-bg);
  border-color: var(--bs-btn-active-border-color);
}

.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.g-recaptcha {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: row;
  margin-top: 10px;
}

.center-end {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}


.accordion-button:not(.collapsed) {
  background-color: white;
  color: #4c4c4c;
}

.accordion-button[status="valid"] {
  background-color: rgba(0, 93, 14, 0.165);
  color: #4c4c4c;
  font-weight: bold;
}

.accordion-button[status="invalid"] {
  background-color: rgba(255, 0, 0, 0.165);
  color: #4c4c4c;
  font-weight: bold;
}

.select2-container {
  flex-grow: 1;
}

.select2-search {
  display: none !important;
}

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  text-overflow: ellipsis !important;
}

.dz-progress {
  display: none !important;
}

.dropzone {
  border: 2px dashed #0d7a68 !important;
  border-radius: 16px !important;
  padding: 1rem;
  background-color: #f8f9fa;
}

.dropzone:hover {
  border: 1px solid #0d7a68 !important;
  transition: all 0.3s ease;
  cursor: pointer;
}

.bottom-23 {
  bottom: 23%;
}

.btn-funceme {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #16a085 0%, #0d7a68 100%);
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  width: 100%;
}

.btn-funceme:hover {
  background: linear-gradient(135deg, #16a085 0%, #0d7a68 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.btn-funceme:disabled {
  background: #e5e7eb;
  color: #64748b;
  cursor: not-allowed;

}

.btn-funceme-disabled {
  background: #e5e7eb;
  color: #64748b;
  cursor: not-allowed;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  width: 100%;
  border-radius: 8px;
}

.btn-funceme-disabled:hover {
  background: #e5e7eb;
  color: #64748b;
  transform: none;
  box-shadow: none;
  transition: all 0.2s ease;
  transform: translateY(1px);
}

.card-green {
  background: linear-gradient(135deg, #e8f8f5 0%, #d4f1e8 100%);
  padding: 1.5rem;
  border-radius: 16px;
  border-left: 4px solid #16a085;
}

.select-funceme {
  padding: 1rem;
  border: 2px solid #e8ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: white;
  width: 100%;
}

.select-funceme:focus {
  outline: none;
  border-color: #16a085;
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

.select-funceme {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%237f8c8d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem
}

.textarea-funceme {
  padding: 1rem;
  border: 2px solid #e8ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: white;
}

.textarea-funceme:focus {
  outline: none;
  border-color: #16a085;
  box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}


.profile-btn-funceme {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #16a085 0%, #0d7a68 100%);
  padding: 0.6rem 0.8rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  height: 40px;
  color: #fff !important;
  position: absolute;
  overflow: hidden;
  right: 15px;
  top: 10px;
  z-index: 1000;
}

.profile-btn-funceme::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.profile-btn-funceme:hover::before {
  left: 100%;
}

.profile-btn-funceme:hover {
  background: linear-gradient(135deg, #16a085 0%, #0d7a68 100%);
  border-color: #16a085;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-btn-funceme::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 0.3rem;
  transition: transform 0.3s ease;
}

.profile-btn-funceme:hover::after {
  transform: rotate(180deg);
}

.profile-btn-funceme .avatar {
  width: 25px;
  height: 25px;
  background: linear-gradient(45deg, #4CAF50, #8BC34A);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  color: white !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.profile-btn-funceme:hover .avatar {
  transform: scale(1.1);
}

.profile-btn-funceme .avatar-username {
  font-size: 1rem;
}

/* ===== OFFCANVAS NOVO ===== */
.modern-offcanvas {
  width: 335px !important;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

.modern-offcanvas-header {
  background: linear-gradient(135deg, #16a085 0%, #0d7a68 100%);
  color: white !important;
  padding: 1rem;
  border-bottom: none;
  position: relative;
}

.modern-offcanvas-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.15);
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.avatar-large {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #4CAF50, #8BC34A);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-close-modern {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-close-modern:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modern-offcanvas-body {
  padding: 0;
  background: #f8f9fa;
  overflow-y: auto;
  overflow-x: hidden !important;
  background: rgba(255, 255, 255, 0.15);
}

.modern-offcanvas-body::-webkit-scrollbar {
  width: 4px;
  height: 8px;
  background-color: #4c4c4c;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0.5;
}

.modern-offcanvas-body::-webkit-scrollbar-thumb {
  background-color: #4c4c4c;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0.5;
}

.modern-offcanvas-body::-webkit-scrollbar-thumb:hover {
  opacity: 1;
}

.navigation-section {
  margin-bottom: 1.5rem;
}

.section-header {
  padding: 1rem 1.5rem 0.5rem;
  font-weight: 600;
  color: #6c757d;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 0.5rem;
}

.modern-nav-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: #495057;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.modern-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, #16a085 0%, #0d7a68 100%);
  transition: width 0.3s ease;
  z-index: 1;
}

.modern-nav-item:hover::before {
  width: 3px;
}

.modern-nav-item:hover {
  background: linear-gradient(90deg, rgba(22, 160, 133, 0.05), transparent);
  color: #16a085;
  transform: translateX(5px);
}

.modern-nav-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #e9ecef;
  color: #6c757d;
  transform: none;
  box-shadow: none;
  transition: none;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(1);
  opacity: 0.5;
}

.modern-nav-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #e9ecef;
  color: #6c757d;
  transform: none;
  box-shadow: none;
  transition: none;
  filter: grayscale(1);
}

.nav-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-nav-item:hover .nav-icon {
  background: linear-gradient(135deg, #16a085 0%, #0d7a68 100%);
  color: white;
  transform: scale(1.1);
}

.nav-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.nav-subtitle {
  color: #6c757d;
  font-size: 0.8rem;
  line-height: 1.2;
}

.modern-offcanvas-footer {
  padding: 1.5rem;
  background: white;
  border-top: 1px solid #e9ecef;
  margin-top: auto;
}

.btn-logout {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-logout:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.btn-logout:active {
  transform: translateY(0);
}



@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .modern-offcanvas {
    width: 320px !important;
  }

  .modern-offcanvas-header {
    padding: 1rem;
  }

  .modern-nav-item {
    padding: 0.6rem 1rem;
  }

  .nav-icon {
    width: 35px;
    height: 35px;
  }

  .modern-offcanvas-footer {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .modern-offcanvas {
    width: 100vw !important;
  }
}

/* Backdrop blur effect quando offcanvas está aberto */
.offcanvas-backdrop {
  backdrop-filter: blur(3px);
  background-color: rgba(0, 0, 0, 0.3);
  transition: backdrop-filter 0.3s ease;
}

/* Melhorias extras para acessibilidade */
.modern-nav-item:focus {
  outline: 2px solid #16a085;
  outline-offset: 2px;
}

.btn-close-modern:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Indicador de página ativa */
.modern-nav-item.active {
  background: linear-gradient(90deg, rgba(22, 160, 133, 0.1), transparent);
  border-left-color: #16a085;
  color: #16a085;
}

.modern-nav-item.active .nav-icon {
  background: linear-gradient(135deg, #16a085 0%, #0d7a68 100%);
  color: white;
}

/* Micro-interações */
.modern-nav-item:active {
  transform: translateX(2px) scale(0.98);
}

.btn-logout:active {
  transform: translateY(-1px) scale(0.98);
}


.card-funceme {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  padding-bottom: 0rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.enabled {
  top: 76% !important;
}

.scroll-inner {
  overflow-y: auto;
}

.scroll-inner::-webkit-scrollbar {
  width: 4px;
  height: 8px;
  background-color: #ffff;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0.5;
}

.scroll-inner::-webkit-scrollbar-thumb {
  background-color: #afafaf;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0.5;
}

.scroll-inner::-webkit-scrollbar-thumb:hover {
  opacity: 1;
}

.footer-compact {
  background: linear-gradient(135deg, #0d7a68 0%, #16a085 100%);
  color: white;
  padding: 0.75rem 2rem;
  margin-top: auto;
  width: 100%;
  position: relative;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.footer-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
}

.footer-compact-container {
  /* max-width: 1400px; */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.footer-gov-ce {
  width: 280px;
  height: 100%;
}

.footer-gov-ce img {
  width: 100%;
  height: 100%;
}

/* Links de Navegação */
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex: 1;
}

.footer-nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.footer-nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.footer-nav-link i {
  font-size: 0.85rem;
  opacity: 0.85;
  transition: all 0.3s ease;
}

.footer-nav-link:hover i {
  opacity: 1;
  transform: scale(1.15);
}

.footer-divider {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

/* Copyright */
.footer-copyright {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Redes Sociais */
.footer-social-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white;
}

.footer-social-icon i {
  font-size: 0.85rem;
}

/* Responsividade */
@media (max-width: 992px) {
  .footer-compact-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-nav {
    order: 1;
    width: 100%;
    justify-content: center;
  }

  .footer-copyright {
    order: 2;
  }

  .footer-social-compact {
    order: 3;
  }
}

@media (max-width: 768px) {
  .footer-compact {
    padding: 0.75rem 1rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .footer-nav-link {
    font-size: 0.85rem;
  }

  .footer-copyright {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .footer-divider {
    display: none;
  }

  .footer-nav {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }

  .footer-nav-link {
    justify-content: center;
    width: 100%;
  }
}


.overflowy-funceme{
  overflow-y: auto;
}

.overflowy-funceme::-webkit-scrollbar {
  width: 4px;
  height: 8px;
  background-color: #ffff;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0.5;
}

.overflowy-funceme::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.overflowy-funceme::-webkit-scrollbar-thumb:hover {
  opacity: 1;
}

.code-badge {
  background-color: #e0e0e0;
  color: #117a65;
  border-left: 3px solid #117a65;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.8rem;
}