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

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

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

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

  &:hover {
    background: #254450;
  }
}

#sidebar {
  width: 248px;
  transition: width .3s ease-in-out;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}
#sidebar.hidden {
  width: 48px;
}
#sidebar.show {
 width: 48px; 
}
#sidebar.no-transition{
  transition: none;
}
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

.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; 
  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;
  }
}

#sidebar .nav-link.active {
  background-color: #1f7291 !important;
  color: white !important;
  font: bold;
}
#sidebar .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;
}

.list-group {
  --bs-list-group-border-width: 0px;
}
.list-group-item {
  background-color: transparent;

  &:hover {
    background-color: transparent;
  }
}
.list-group-item a {
  color: white;

  &:hover {
    color: lightgrey;
  }
}

.card {
  padding: 1rem;
  border: lightgray;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, .1);
  opacity: 0;
  animation: moveInEaseIn 0.3s ease forwards;
}

.course-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: '#000';
  border: 1px solid '#909090';
}

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

.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 tbody td ,thead {
  font-size: .875rem;
  vertical-align: middle;
  padding: .275rem 0;
}
#dataTables tbody tr {
  cursor: pointer;
}
#dataTables tbody tr:hover td {
  background-color: #f0f0f0;
}
.dataTables_filter {
  margin-bottom: 1.5rem; /* Ajuste conforme necessário */
}

/* Toastify */
.toastify {
  z-index: 1000 !important;
}

/*
  RESPONSIVO
*/
@media screen and (max-width:  500px) {
  
  #sidebar {
    display: hidden;
  }
  #page-navigation {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  #insert-btn span {
    display: none;
  }
  .content-container {
    padding: .5rem;
    &::-webkit-scrollbar {
      width: 0px;
    }
    &::-webkit-scrollbar-thumb:hover {
      border-radius: 4px;
    }
  }
  .card {
    padding: .5em;

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

  /* DATATABLES */

  #dataTables tbody td ,thead {
    font-size: .75rem;
    text-wrap: nowrap;
    vertical-align: middle;
    padding: .275rem .275rem;
  }
  
  .dataTables_length {
    display: inline-flex;
    font-size: .6rem;
    margin-right: 1rem;
  }
  .dataTables_filter {
    display: inline-flex;
    font-size: .6rem;
  }
  .dataTables_info  {
    display: inline;
    font-size: .75rem;
  }
  .dataTables_paginate.paging_simple_numbers {
    display: block;
    font-size: .75rem;
  }
  
}

/*
  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: 375px) {

  .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;
}