/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,200..1000&display=swap");
@import url("https://cdn.jsdelivr.net/npm/tailwindcss@3.4.3/base.min.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.3.0/flowbite.min.css");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 2rem;

  /*========== Colors ==========*/
  --first-color: hsl(228, 85%, 63%);
  --title-color: hsl(228, 18%, 16%);
  --text-color: hsl(0, 0%, 100%);
  --body-color: hsl(247,54%,33%);
  --shadow-color: hsla(228, 80%, 4%, .1);

  /*========== Font and typography ==========*/
  --body-font: "Nunito Sans", system-ui;
  --normal-font-size: .938rem;
  --smaller-font-size: .75rem;
  --tiny-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --normal-font-size: 1rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--body-font);
  color: var(--text-color);
  background: linear-gradient(90deg, #7bd2fa 0%, #b9e5f9 100%);
}

img, table, iframe {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  color: #312783;
}

.nav-link {
  color: #4a5568;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

/* Estilos para el contenedor del texto "LINEA CUSTOM" y "LINEA FLEX" */
.custom-line-container {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-left: 15px;
}

.custom-line-container h1 {
  font-size: 30px;
  margin: 0;
  color: white;
}

.custom-line-container h1.subtext {
  font-size: 20px;
  margin: 0;
  color: white;
}

.img-title {
  width: 100%; /* Se ajustará dentro de su contenedor */
  max-width: 300px;
}

/* Ajustes para dispositivos móviles */
@media screen and (max-width: 768px) {
  .custom-line-container {
      flex-direction: column; /* Coloca el texto en columna */
      align-items: flex-start; /* Alinea el texto a la izquierda */
      gap: 5px; /* Reduce el espacio entre los textos */
  }

  .custom-line-container h1 {
      font-size: 30px; /* Reduce el tamaño de la fuente para móviles */
  }

  .custom-line-container h1.subtext {
      font-size: 20px; /* Reduce el tamaño de la fuente para móviles */
  }
}

/* Estilos para los contenedores de Tips e Info */
.tips-container,
.info-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.tips-container .text,
.info-container .text {
    width: 70%; /* Ancho del texto en pantallas grandes */
}

.tips-container img,
.info-container img {
    width: 23%; /* Ancho de la imagen en pantallas grandes */
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}
.img-title {
    width: 100%; /* Se ajustará dentro de su contenedor */
    max-width: 300px;
}

.titeles {
    width: 30%;
}

/* Ajustes para dispositivos móviles */
@media screen and (max-width: 1110px) {
    .tips-container,
    .info-container {
        flex-direction: column; /* Coloca el texto y la imagen en columna */
        gap: 0; /* Elimina el espacio entre el texto y la imagen */
    }

    .tips-container .text,
    .info-container .text {
        width: 100%; /* El texto ocupa el 100% del ancho */
    }

    .tips-container img,
    .info-container img {
        display: none; /* Oculta las imágenes en móviles */
    }

    .icon-side {
      display: none !important;
    }

    .titeles {
      width: 300px;
    }

    .img-title {
      width: 200px !important; /* Fijo en móvil */
    }

    div[style*="margin-left: 17%"] {
      margin-left: 5% !important;
      width: 90% !important;
    }
  }
.nav-link:hover {
  background-color: #edf2f7;
}

.btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #4299e1;
  color: white;
}

.btn-primary:hover {
  background-color: #3182ce;
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  margin-bottom: 15px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.table th, .table td {
  border: 1px solid #e2e8f0;
  padding: 12px;
  text-align: left;
}

.table th {
  background-color: #edf2f7;
  font-weight: bold;
}

.table tr:nth-child(even) {
  background-color: #f7fafc;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  all: unset;
}

/*=============== VARIABLES DARK THEME ===============*/
body.dark-theme {
  --first-color: hsl(228, 70%, 63%);
  --title-color: hsl(228, 18%, 96%);
  --text-color: hsl(228, 12%, 61%);
  --body-color: hsl(228, 24%, 16%);
  --shadow-color: hsla(228, 80%, 4%, .3);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.main {
  padding-top: 5rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0;
  z-index: var(--z-fixed);
  margin: 0;
  width: 100%;
}

.header__container {
  width: 100%;
  height: var(--header-height);
  background-color: var(--body-color);
  box-shadow: 0 2px 24px var(--shadow-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 1.5rem;
  border-bottom-left-radius: 1rem;
  transition: background-color .4s;
}

.header__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
}

.header__logo i {
  font-size: 1.5rem;
  color: var(--first-color);
}

.header__logo span {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.header__toggle {
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}

/*=============== SIDEBAR ===============*/
.sidebar {
  position: fixed;
  left: -120%;
  top: 0;
  bottom: 0;
  z-index: var(--z-fixed);
  width: 250px;
  background-color: var(--body-color);
  box-shadow: 2px 0 24px var(--shadow-color);
  padding-block: 1.5rem;
  margin: .75rem;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
  transition: left .4s, background-color .4s, width .4s;
}

.sidebar__container, 
.sidebar__content {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.sidebar__container {
  height: 100%;
  overflow: hidden;
}

.sidebar__user {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  column-gap: 1rem;
  padding-left: 2rem;
}

.sidebar__img {
  position: relative;
  width: 50px;
  height: 50px;
  background-color: var(--first-color);
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  justify-items: center;
}

.sidebar__img img {
  position: absolute;
  width: 36px;
  bottom: -1px;
}

.sidebar__info h3 {
  font-size: var(--normal-font-size);
  color: var(--title-color);
  transition: color .4s;
}

.sidebar__info span {
  font-size: var(--smaller-font-size);
}

.sidebar__content {
  overflow: hidden auto;
}

.sidebar__content::-webkit-scrollbar {
  width: .4rem;
  background-color: hsl(228, 8%, 85%);
}

.sidebar__content::-webkit-scrollbar-thumb {
  background-color: hsl(228, 8%, 75%);
}

.sidebar__title {
  width: max-content;
  font-size: var(--tiny-font-size);
  font-weight: var(--font-semi-bold);
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.sidebar__list, 
.sidebar__actions {
  display: grid;
  row-gap: 1.5rem;
}

.sidebar__link {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  column-gap: 1rem;
  color: var(--text-color);
  padding-left: 2rem;
  transition: color .4s, opacity .4s;
}

.sidebar__link i {
  font-size: 1.25rem;
}

.sidebar__link span {
  font-weight: var(--font-semi-bold);
}

.sidebar__link:hover {
  color: var(--first-color);
}

.sidebar__actions {
  margin-top: auto;
}

.sidebar__actions button {
  cursor: pointer;
}

.sidebar__theme {
  width: 100%;
  font-size: 1.25rem;
}

.sidebar__theme span {
  font-size: var(--normal-font-size);
  font-family: var(--body-font);
}

/* Show sidebar */
.show-sidebar {
  left: 0;
}

/* Active link */
.active-link {
  color: var(--first-color);
}

.active-link::after {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 20px;
  background-color: var(--first-color);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 768px) {
  .header__container {
    padding-inline: 1rem;
  }

  .sidebar {
    width: 100%;
    left: -100%;
  }

  .sidebar__info, 
  .sidebar__link span {
    display: block;
  }

  .sidebar__user, 
  .sidebar__list, 
  .sidebar__actions {
    justify-content: flex-start;
  }

  .sidebar__user, 
  .sidebar__link {
    grid-template-columns: max-content;
  }

  .sidebar__user {
    padding: 0;
  }

  .sidebar__link {
    padding-inline: 2rem;
  }

  .sidebar__title {
    padding-inline: .5rem;
    margin-inline: auto;
  }

  .main {
    padding-left: 0;
  }

  .container {
    padding: 0 0.5rem;
  }

  .header {
    padding-left: 0;
  }

  .sidebar {
    width: 100%;
    left: -100%;
  }

  .show-sidebar {
    left: 0;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .header {
    margin: 1rem;
    padding-left: 274px;
    transition: padding .4s;
    width: 100%;
  }

  .header__container {
    height: calc(var(--header-height) + 2rem);
    padding-inline: 2rem;
  }

  .header__logo {
    order: 1;
  }

  .sidebar {
    left: 0;
    width: 250px;
    margin: 1rem;
  }

  .sidebar__info, 
  .sidebar__link span {
    transition: opacity .4s;
  }

  .sidebar__user, 
  .sidebar__title {
    transition: padding .4s;
  }

  /* Reduce sidebar */
  .show-sidebar {
    width: 90px;
  }

  .show-sidebar .sidebar__user {
    padding-left: 1.25rem;
  }

  .show-sidebar .sidebar__title {
    padding-left: 0;
    margin-inline: auto;
  }

  .show-sidebar .sidebar__info, 
  .show-sidebar .sidebar__link span {
    opacity: 0;
  }

  .main {
    padding-left: 236px;
    transition: padding .4s;
  }

  /* Add padding left */
  .left-pd {
    padding-left: 114px;
  }
}

/* Flexbox para organizar Sidebar y contenido principal */
.layout {
  display: flex;
  min-height: 100vh;
}