@import './colors.css';
@import './components/toastify.css';
@import './components/sidebar.css';
@import './components/datatables.css';
@import './components/icons.css';

html,
body,
main {
  background-color: #F8F9FA;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
b,
label {
  color: #202020;
}

thead tr td {
  font-weight: bold;
}

span.pdf-link {
  cursor: pointer;
  color: #0d6efd;
  &:hover { 
    color: #0a58cb;
  }
} 

#themeSelect {
  padding: .75rem .5rem;

  &:hover {
    background: #254450;
  }
}

#mobile-navgation-toggle {
  display: none;
}

.brand-min {
  display: none;
}

#page-navigation {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow-x: auto;

  .nav {
    -webkit-overflow-scrolling: touch;
    text-wrap: nowrap;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: 1rem;
    border-radius: 4px;
  }
}

.toggle-btn {
  content: '';
  width: 3px;
  height: 3px;
  background-color: white;
  border-radius: 3px;
  box-shadow: 0px 8px 0px white, 0px -8px 0px white;
  transition: .3s ease;

  &.show {
    width: 24px;
  }
}

.copied-tooltip {
  position: absolute;
  background-color: #0d6efd; /* cor verde */
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  pointer-events: none;
  opacity: 0;
  animation: fadeInOut 1.5s ease-in-out forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  10%, 90% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}


.font-poppins {
  font-family: 'Poppins', sans-serif;

}

.font-roboto {
  font-family: 'Roboto', sans-serif;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
}

.content-container {
  width: 100%;
  padding: 2rem 1rem;
  max-height: 93vh;
  position: relative; 
  overflow-y: auto; 
  overflow-x: hidden;
  &::-webkit-scrollbar {
    width: 10px;
  }
  &::-webkit-scrollbar-thumb:hover {
    border-radius: 4px;
  }
}

.page-title {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;

  &::before {
    content: '';
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background-color: rgba(255, 158, 57, 0.8);
    display: inline-block;
    margin-right: 0.5rem;
  }
}

input[type="checkbox"] {
  transform: scale(1.5);
  cursor: pointer;
}

iframe {
  width: 100%;
  height: 92vh;
}
#navbar .nav-link {
  padding: 8px 8px;
  display: flex;
  align-items: center;
  color: white;

  &:hover {
    background-color: #254450 !important;
    color: lightgrey;
  }
}

.nav-icon  {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid #dee2e6;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: moveInEaseIn 0.3s ease forwards;
  border-radius: 10px;
}

.course-card {
  padding: 1rem;
  border: lightgray;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, .1);
  background-color: #F8F9FA;
  border-radius: 8px;
}

.line {
  content: '';
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background-color: #0D2F3C;
}

.pagamento-card {
  position: relative;
  z-index: 1;
  border: 1px solid #ececec;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.pagamento-card:hover {
  z-index: 20;
  border-color: #d9d9d9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.pagamento-card:has(.dropdown.show) {
  z-index: 30;
}

.pagamento-card .dropdown {
  position: relative;
}

.pagamento-card .dropdown-menu {
  z-index: 1100;
}

.pagamento-card .dropdown.show {
  z-index: 1101;
}

.btn-sidebar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem !important;
  background-color: transparent;
  border: none;
}

.cursor-pointer {
  cursor: pointer;
}

/* Custom DataTable */
.newMail {
  font-weight: bold;
  content: '';
  width: 4px;
  height: 15px;
  background-color: #0D2F3C;
}
#gradeTable thead th,
#gradeTable tbody td {
  font-size: .875rem !important;
  vertical-align: middle !important;
  padding: .275rem 0 !important;
}
#gradeTable tbody tr {
  cursor: pointer;
}
#gradeTable tbody tr:hover td {
  background-color: #f0f0f0;
}


.dataTables_filter {
  margin-bottom: 1.5rem; /* Ajuste conforme necessário */
}

.error-line {
  td {
    background-color: #d43328 !important;
    color: #f0f0f0;
  }
}

/*
  RESPONSIVO
*/
@media screen and (max-width:  500px) {
  
  body {
    overflow-y: hidden;
  }

  .container {
    padding-bottom: 5rem;
  }

  #mobile-navgation-toggle {
    display: block;
  }

  .mobile-nav-item {
    padding: .725rem 2rem;
    font-size: 1.125rem;
    border-bottom: 1px solid #254450;

    a {
      color: #F8F9FA;
      text-decoration: none;
    }

    &.active {
      background-color: #1f7291;
    }
  }

  #page-navigation {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  #insert-btn span {
    display: none;
  }
  .content-container {
    padding: 0;
    &::-webkit-scrollbar {
      width: 0px;
    }
    &::-webkit-scrollbar-thumb:hover {
      border-radius: 4px;
    }
  }
  .card {
    padding: .5em;

    .fs-4 {
      font-size: 1rem !important;
    }
  }
}

/*
  Chart.Js styles
*/
.chart-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.chart-color {
  content: '';
  width: 2.5rem;
  height: .5rem;
  border-radius: .25rem;
}

#nucleosChart {
  max-width: 250px;
  max-height: 250px;
}

@media (max-width: 500px) {

  #theme-select {
    display: none !important;
  }

  .page-title {
    font-size: 1.5rem;
    padding: 2rem 0;
    margin: 0;
  }

  .container-fluid {
    padding: 0 .25rem !important;
  }
  .px-2 {
    padding: .25rem !important;
  }
  .brand {
    display: none;
  }

  .brand-min {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1f7291;
    width: 32px;
    height: 32px;
    border-radius: 4px;
  }

  #navbar-user {
    display: none;
  }

  #navbar-system {
    gap: 2px !important;
  }
}

/* Animações */
@keyframes fadeInEaseIn {
  from {
    opacity: 0;
    transform: translateY(10px); /* opcional para dar um "slide" leve */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInEaseIn 0.3s ease-in forwards;
}

@keyframes moveInEaseIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.move-in {
  opacity: 0;
  animation: moveInEaseIn 0.3s ease forwards;
}

#quadro-aviso {
  height: calc(100vh - 200px);
}
#quadro-aviso {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}
#quadro-aviso::-webkit-scrollbar {
  width: 8px;
}
#quadro-aviso::-webkit-scrollbar-track {
  background: #f1f1f1;
}
#quadro-aviso::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
#quadro-aviso::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Conteúdo */
.loading-content {
  text-align: center;
  font-family: Arial, sans-serif;
  color: #333;
}

/* Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ddd;
  border-top: 5px solid #0d6efd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

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

/* Esconder */
.loading-hidden {
  display: none;
}

