@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");

:root {
  --primarycolor: #00a2e8;
  --primary-color: #00a2e8;
  --main-color: #00a2e8;
  --secondarycolor: #415a77;
  --shadowcolor: #e0e1dd;
  --background-color: #d9d9d9;
  --details: #0d1b2a;
  --font-color: white;
  --light-bg: #f7f7f7;
  --very-light-bg: #fbfdff;
  --chart-color: rgb(163, 236, 118);
  --alert-color: rgb(232, 110, 110);
  --very-very-light-bg: #fbfdff;
}

* {
  font-family: "Roboto";
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--light-bg) !important;
}

.nao-selecionavel {
  -webkit-touch-callout: none;
  /* iPhone OS, Safari */
  -webkit-user-select: none;
  /* Chrome, Safari 3 */
  -khtml-user-select: none;
  /* Safari 2 */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* IE10+ */
  user-select: none;
}

.no-text-decoration {
  text-decoration: none;
}

.navbar {
  display: none;
}
body {
  .container-feedback {
    #feedback-button {
      z-index: 1;
      position: fixed;
      bottom: 20px;
      right: 20px;
      padding: 10px 20px;
      background-color: var(--primary-color);
      color: white;
      border: none;
      border-radius: 56px;
      cursor: pointer;
    }
  }
  .modal {
    .modal-content {
      .modal-header {
        .close {
          border: none;
          background-color: white;
          span {
            color: var(--primary-color);
            font-size: 34px;
          }
        }
      }
      .modal-body {
        .form-group {
          padding: 0.6rem;
          input {
            border-radius: 8px;
            padding: 0.7rem;
            width: 100%;
          }
          select {
            border: none;
            border-radius: 8px;
            padding: 0.7rem;
          }
          input[type="file"]::file-selector-button {
            margin-right: 20px;
            border: none;
            background: var(--primary-color);
            padding: 10px 20px;
            border-radius: 10px;
            color: #fff;
            cursor: pointer;
            transition: background 0.2s ease-in-out;
          }

          input[type="file"]::file-selector-button:hover {
            opacity: 0.7;
          }
        }
      }
      .modal-footer {
        .btn-primary {
          background-color: var(--primary-color);
          border: none;
        }
        .btn-secondary {
          background-color: red;
          border: none;
        }
      }
    }
  }
}

/*==== sidebar ====*/
.sidebar {
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 250px;
  background: var(--very-light-bg);
  padding: 10px 14px;
  font-size: 22px;
  transition: 0.3s;

  .text {
    font-weight: 500;
    padding-left: 15px;
    white-space: nowrap;
    opacity: 1;
  }

  .menu-bar {
    padding-top: 0.8rem;

    .menu-links {
      padding-left: 0;

      .nav-link {
        margin-top: 20px;
        border-radius: 6px;
        height: 65px;
        transition: 0.3s;
        display: flex;
        align-items: center;

        a {
          color: var(--primary-color);
          text-decoration: none;
          display: grid;
          align-items: center;
          grid-template-columns: 24px 1fr;
          width: 100%;
          height: 100%;

          i {
            display: flex;
            align-items: center;
            min-width: 60px;
            font-size: 20px;
            margin-left: 20px;
          }

          .nav-text {
            margin-left: 15px;
            font-weight: 500;
          }
        }
      }

      .nav-link.logout {
        position: absolute;
        width: 86%;
        bottom: 0;
        margin-left: 8px;
        margin-bottom: 10px;
        left: 0;
      }

      .nav-link.logout:hover {
        i {
          color: var(--font-color);
        }

        .nav-text {
          color: var(--font-color);
        }

        cursor: pointer;
        background-color: var(--alert-color);
      }

      .nav-link:hover {
        i {
          color: var(--font-color);
        }

        .nav-text {
          color: var(--font-color);
        }

        cursor: pointer;
        background-color: var(--secondarycolor);
      }
    }
  }

  header {
    position: relative;

    .toggle-link {
      text-decoration: none;
    }

    .toggle {
      position: absolute;
      top: 50%;
      right: -25px;
      transform: translateY(-50%);
      height: 25px;
      width: 25px;
      background-color: var(--secondarycolor);
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      color: var(--light-bg);
      cursor: pointer;
    }

    .image-text {
      display: flex;
      align-items: center;

      img {
        margin-left: 0.4rem;
        width: 45px;
        border-radius: 6px;
      }

      .header-text {
        display: flex;
        flex-direction: column;
        overflow: hidden;

        .name {
          font-weight: 600;
        }

        .sub-name {
          margin-top: -2px;
        }
      }
    }
  }
}
#openNotificationsBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primarycolor);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: none;
}

#openNotificationsBtn i {
  font-size: 24px;
}

#openNotificationsBtn .badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -30%);
  font-size: 12px;
  padding: 4px 8px;
  background-color: #ff4b4b;
  border: 2px solid white;
}
.sidebar.close {
  .text {
    opacity: 0;
  }

  .accordion-text {
    opacity: 0;
  }

  width: 88px;
}

h1 {
  color: gray;
  /* Cor cinza */
  font-weight: 800;
  /* Negrito */
  font-size: 32px;
  /* Tamanho da fonte */
  font-family: "Roboto";
  text-transform: uppercase;
  /* Letras maiúsculas */
  letter-spacing: 1px;
  /* Espaçamento entre as letras */
}

/* ==== Form ====*/
body {
  height: 100%;
  margin: 0;
  font-family: "Roboto";

  .account-form {
    overflow: hidden;
    width: 100%;
    height: 100%;
    margin: 0;

    .form-message {
      padding-top: 5vh;
      display: grid;
      align-items: center;
    }

    .container {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 150px;

      .login-image {
        flex: 1;
        max-width: 50%;

        img {
          width: 100%;
          height: 600px;
        }
      }

      .login-container {
        height: 600px;
        display: grid;
        border-radius: 16px 0px 0px 16px;
        border: 1px solid #fbfdff;
        background-color: #fff;
        box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
        padding: 60px;
        flex: 1;
        max-width: 40%;
        align-content: stretch;
        justify-content: center;
        align-items: stretch;
        justify-items: center;

        #instructions {
          max-width: 80%;
          text-align: center;
        }

        #login-redirect {
          margin-top: 5rem;

          a {
            color: var(--font-color);
          }
        }

        #messages {
          display: flex;
          max-width: 80%;
          text-align: center;
          background-color: var(--light-bg);
          align-items: center;
          justify-content: center;
          border-radius: 1rem;
        }

        header {
          display: flex;
          justify-content: center;

          .login-logo {
            text-decoration: none;

            img {
              width: 100px;
              transition: all 300ms ease-in-out;

              &:hover {
                transform: translateY(-0.5rem);
              }
            }
          }
        }

        .input-group {
          display: grid;
          width: 331px;
          height: 63px;

          input {
            border: none;
            background-color: var(--background-color);
            border-radius: 16px;
            width: 331px;
            height: 63px;
            margin-top: 15px;
            padding-left: 1rem;
          }

          input::placeholder {
            padding-left: 15px;
          }
        }

        button {
          border: none;
          border-radius: 16px;
          color: var(--font-color);
          background-color: var(--primarycolor);
          width: 331px;
          height: 44px;
          margin-top: 3px;
        }

        a {
          color: var(--primarycolor);
          text-decoration: none;
        }
      }
    }
  }
}
/* Update sidebar menu-bar styles */
.sidebar .menu-bar {
  height: calc(100% - 80px); /* Adjust height to account for header */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Add custom scrollbar styling */
.sidebar .menu-bar::-webkit-scrollbar {
  width: 5px;
}

.sidebar .menu-bar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar .menu-bar::-webkit-scrollbar-thumb {
  background: var(--primary-color-light);
  border-radius: 10px;
}

.sidebar .menu-bar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Ensure menu links container takes full height */
.sidebar .menu-links {
  padding: 0;
  margin: 0;
  height: auto;
  flex-grow: 1;
}
body {
  background-color: #f7f7f7 !important;
}
/* Responsividade */
@media only screen and (max-width: 768px) {
  .account-form {
    width: 100%;

    #login-form {
      .container {
        width: 100%;
        margin-top: 10%;
        height: auto;

        .login-image {
          flex: 0;
          max-width: 0%;

          img {
            display: none;
          }
        }

        .login-container {
          flex-direction: column;
          max-width: 100%;
          border-radius: 16px;
          box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.25);

          .input-groups {
            display: flex;
            flex-direction: column;
            align-items: center;
          }
        }
      }
    }

    form {
      margin-top: 20px;

      .form-container {
        padding: 40px;
      }
    }
  }
}

@media only screen and (max-width: 767px) {
  .account-form {
    #login-form {
      .container {
        margin-top: 15%;
      }
    }
  }
  #navbar-telefone {
    display: none;
    .container-fluid {
      .navbar-brand {
        display: none;
      }
    }
  }
}

@media only screen and (max-width: 992px) {
  .login-container {
    height: 600px;
    display: flex;
    border-radius: 16px 0px 0px 16px;
    border: 1px solid #fbfdff;
    background-color: #fff;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    max-width: 40%;
    justify-content: center;
    flex-direction: column;
    justify-items: center;

    header {
      .login-logo {
        img {
          max-width: 275px;
        }
      }
    }
  }
}

@media only screen and (max-width: 991px) {
  .account-form {
    #login-form {
      .container {
        max-width: 940px;
      }
    }
  }
}

/* ==== turmas ==== */
.turma-create-container {
  max-width: 400px;
  margin-top: 50px;
  background-color: var(--light-bg);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;

  button {
    border: none;
    border-radius: 6px;
    background-color: var(--primarycolor);
    width: 120px;
    height: 60px;
    display: flex;
    transition: 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;

    a {
      font-size: 16px;
      font-family: "Roboto";
      font-weight: 400;
      color: var(--font-color);
      max-width: 100%;
      padding: 12px;
      max-height: 100%;
      text-decoration: none;
      display: flex;
      justify-content: center;
      flex-direction: column;
      align-items: center;
    }
  }
}

button:hover {
  cursor: pointer;
  opacity: 0.6;
  transform: translateY(-1px);
}

/* ==== codigo-form ====*/
.container {
  .back {
    border: none;
    background-color: var(--primarycolor);
    color: #fafafa;
    border-radius: 8px;
    margin-top: 20px;
    padding: 1rem;
  }

  .codigo-container {
    /* margin-top: 130px; */
    display: flex;
    align-items: center;
    flex-direction: column;
    font-family: "Roboto";
    .instruction {
      color: var(--secondarycolor);
      font-size: 0.6rem;
      margin-bottom: 0.3rem;
    }
    .message {
      padding: 1.5rem;
      background-color: white;
      border-radius: 15px;
      margin: 80px;
      button {
        border: none;
        background-color: var(--primarycolor);
        color: #fafafa;
        padding: 0.7rem;
        border-radius: 8px;
        margin-left: 10px;
        a {
          text-decoration: none;
          color: white;
        }
      }
    }

    h1 {
      color: var(--primarycolor);
    }

    .codigo {
      .turma-codigo-input {
        border: none;
        border-radius: 8px;
        padding: 0.7rem;
      }

      button {
        border: none;
        background-color: var(--primarycolor);
        color: #fafafa;
        padding: 0.7rem;
        border-radius: 8px;
        margin-left: 10px;
      }
    }
  }
}

/* ==== Create turma ==== */
.create-turma-container {
  background-color: var(--light-bg);

  button {
    margin-top: 15px;
    border: none;
    border-radius: 4px;
    font-size: 19px;
    padding: 4px;
    margin-left: 15px;
    background-color: var(--primarycolor);
    color: var(--font-color);
  }

  .create-turma {
    .form {
      display: flex;
      flex-direction: column;
      align-content: center;
      align-items: center;
      margin-top: 15%;

      .header {
        h1 {
          color: var(--primarycolor);
          margin-bottom: 30px;
        }
      }

      input {
        border: none;
        font-size: 19px;
        border-radius: 4px 4px 4px 4px;
        color: var(--secondarycolor);
        padding: 1rem;
      }

      label {
        display: none;
        font-size: 19px;
        color: var(--primarycolor);
      }

      button {
        margin-top: 15px;
        border: none;
        border-radius: 4px;
        font-size: 19px;
        padding: 1rem;
      }
    }
  }
}

/* ==== provas ==== */
.prova-create-container {
  max-width: 400px;
  margin-top: 30px;
  background-color: var(--primarycolor);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;

  button {
    border: none;
    border-radius: 6px;
    background-color: var(--primarycolor);
    width: 120px;
    margin: 0px 0px 0px 5px;
    height: 60px;
    display: flex;
    transition: 0.2s;

    a {
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      font-size: 16px;
      font-family: "Roboto";
      font-weight: 400;
      color: var(--very-very-light-bg);
      width: 100%;
      padding: 8px;
      height: 100%;
    }
  }
}

button:hover {
  cursor: pointer;
  opacity: 0.6;
  transform: translateY(-1px);
}

.relatorios {
  -webkit-box-shadow: 3px 4px 20px -8px rgba(0, 0, 0, 1);
  -moz-box-shadow: 3px 4px 20px -8px rgba(0, 0, 0, 1);
  box-shadow: 3px 4px 20px -8px rgba(0, 0, 0, 1);
  background-color: var(--bg-white);
  border-radius: 16px;
  border-radius: 8px;
  overflow: auto;
  background-color: var(--very-light-bg);
  max-height: 464px;

  div {
    font-family: "Roboto";
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    a {
      text-decoration: none;
      color: var(--main-color);
      font-size: 22px;
      transition: transform 153ms ease-out;
      i {
        color: black;
        font-size: 26px;
      }

      &:hover {
        transform: translate(3px, -3px);
        opacity: 0.7;
      }
    }
  }
}

.prova-container {
  max-width: 400px;
  margin-left: 400px;

  .message {
    margin-top: 21px;
  }

  .prova-box {
    margin-top: 150px;
    background-color: var(--very-very-light-bg);
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    width: 400px;
    padding-top: 30px;
    padding-bottom: 30px;
    transition: 0.2s;
    justify-content: center;
    align-items: center;

    .prova-box-link {
      .prova-box-header {
        i {
          font-size: 30px;
          margin-right: 5px;
        }

        color: var(--secondarycolor);
      }

      .prova-body {
        color: var(--background-color);
      }
    }
  }

  .prova-box:hover {
    cursor: pointer;
    transform: translateY(-2px);
    opacity: 0.6;
  }
}
@media screen and (max-width: 900px) {
  #login-form {
    .container {
      .login-container {
        .input-group {
          justify-items: center;
          input {
            width: 290px;
          }
        }
        button {
          width: 290px;
        }
      }
    }
  }
}
/* Container de escolha de prova */

@media screen and (max-width: 767px) {
  /* Sidebar antiga - escondida para dar lugar à moderna */
  .sidebar:not(.modern-sidebar) {
    display: none;
  }
  .content {
    padding-left: 1rem !important;
  }
  .navbar {
    display: block;
  }

  /* Remover margin-left para não conflitar com a sidebar moderna */
  .content {
    margin-left: 0;
  }
}
