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

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  background: transparent;
  border: none;
}

html,
body,
#root {
  width: 100%;
  min-height: 100vh;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
  font-family: "Quicksand", sans-serif;
  user-select: none;
  background: linear-gradient(0deg, rgba(28, 95, 211, 0.05), rgba(58, 138, 242, 0.05));
}

html {
  scroll-behavior: smooth;
}

.h-full {
  height: 100%;
}

.w-full {
  width: 100%;
}

.container {
  width: 70%;
  margin: auto;
  box-sizing: border-box;
}

@media screen and (max-width: 1400px) {
  .container {
    width: 80%;
  }
}

@media screen and (max-width: 1024px) {
  .container {
    width: 85%;
  }
}

@media screen and (max-width: 768px) {
  .container {
    width: 90%;
    padding: 0 1rem;
  }
}

@media screen and (max-width: 525px) {
  .container {
    width: 100%;
    padding: 0 1rem;
    margin: 0;
  }
}

select,
button,
input {
  font-family: "Quicksand", sans-serif;
}

button {
  cursor: pointer;
}

::selection {
  background: #1c5fd3;
  color: #fff;
}

.divider {
  width: 100%;
  height: 1px;
}

.divider-text {
  position: relative;
  width: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  gap: 1.25em;
}

.divider-text span {
  white-space: nowrap;
  color: #303030;
  font-weight: 500;
}

.divider-text::before,
.divider-text::after {
  content: "";
  width: 100%;
  height: 0.5px;
  background: rgba(187, 187, 187, 0.5);
}

.disabled {
  pointer-events: none;
  opacity: 0.5;
}

@keyframes opacity {
  from {
    opacity: 0.25;
  }

  to {
    opacity: 0.5;
  }
}

.loading-anim {
  animation: 1s opacity infinite ease alternate-reverse;
}

.message {
  max-width: 500px;
  width: 100%;
}

.message div {
  font-family: "Quicksand", sans-serif !important;
  font-weight: 500;
}

.section {
  padding: 7rem 0;
}

.loading {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  color: #fff;
  font-weight: 600;
  user-select: none;
}

.loading img {
  width: 100px;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .loading img {
    width: 60px;
  }
}

@keyframes logo {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

img {
  user-select: none;
}

button.danger {
  background: #ed1919 !important;
}

.skeleton-loading h1 {
  width: 80% !important;
  height: 1em;
  content-visibility: hidden;
  background: linear-gradient(90deg, #bbb, rgba(187, 187, 187, 0.75));
  border-radius: 1em;
  display: block !important;
  animation: 1s skeleton ease-in alternate-reverse infinite;
}

.skeleton-loading h2 {
  width: 60% !important;
  height: 0.9em !important;
  color: transparent;
  background: linear-gradient(90deg, #bbb, rgba(187, 187, 187, 0.75));
  border-radius: 1em;
  content-visibility: hidden;
  display: block !important;
  animation: 1s skeleton ease-in alternate-reverse infinite;
}

.skeleton-loading h3 {
  width: 40% !important;
  height: 0.8em;
  color: transparent;
  background: linear-gradient(90deg, #bbb, rgba(187, 187, 187, 0.75));
  border-radius: 1em;
  display: block !important;
  animation: 1s skeleton ease-in alternate-reverse infinite;
}

.skeleton-loading span {
  width: 100% !important;
  height: 1em;
  color: transparent;
  background: linear-gradient(90deg, #bbb, rgba(187, 187, 187, 0.75));
  border-radius: 1em;
  display: block !important;
  animation: 1s skeleton ease-in alternate-reverse infinite;
}

.skeleton-loading td {
  width: 100% !important;
  height: 1em;
  color: transparent;
  background: linear-gradient(90deg, #bbb, rgba(187, 187, 187, 0.75));
  animation: 1s skeleton ease-in alternate-reverse infinite;
}

.skeleton-loading a {
  width: 100% !important;
  height: 1em;
  content-visibility: hidden;
  background: linear-gradient(90deg, #bbb, rgba(187, 187, 187, 0.75));
  border-radius: 1em;
  display: block !important;
  animation: 1s skeleton ease-in alternate-reverse infinite;
}

.skeleton-loading button {
  min-width: 7em;
  margin: 1rem 0;
  content-visibility: hidden;
  background: linear-gradient(90deg, #bbb, rgba(187, 187, 187, 0.75));
  border-radius: 1em;
  display: block !important;
  animation: 1s skeleton ease-in alternate-reverse infinite;
}

.skeleton-loading input,
.skeleton-loading textarea {
  width: 100% !important;
  min-width: 7em;
  content-visibility: hidden;
  animation: 1s skeleton ease-in alternate-reverse infinite;
  pointer-events: none;
}

.skeleton-loading img {
  background: linear-gradient(90deg, #bbb, rgba(187, 187, 187, 0.75));
  border-radius: 1em;
  display: block !important;
  animation: 1s skeleton ease-in alternate-reverse infinite;
}

.skeleton-loading form,
.skeleton-loading.form {
  pointer-events: none !important;
  animation: 1s skeleton ease-in alternate-reverse infinite;
}

@keyframes skeleton {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 100%;
  }
}

.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.load-more button {
  background: #fff;
  border-radius: 0.5em;
  padding: 1em 2em;
  font-size: 0.9em;
  color: #303030;
  font-weight: 500;
  border: 1px solid rgba(187, 187, 187, 0.5);
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  transition: 150ms ease-in;
  z-index: 100;
  user-select: none;
}

header.scrolled,
#auth header {
  background: #fff;
  box-shadow: 0 0 1rem rgba(21, 21, 21, 0.05);
}

header .exam-banner {
  width: 100%;
  padding-top: 1em;
  padding-bottom: 1em;
  color: #fff;
  background: #1c5fd3;
  font-weight: 500;
}

header .exam-banner a {
  color: #fff;
}

header nav {
  padding: 1rem 0;
}

@media screen and (max-width: 1200px) {
  header nav {
    font-size: 15px;
  }
}

header nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header nav .container .profile {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: 2rem;
}

header nav .container .profile .profile-photo {
  height: 50px;
  color: #fff;
  border-radius: 0.75rem;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  box-shadow: 0 0 1em rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 768px) {
  header nav .container .profile .profile-photo {
    height: 40px;
  }
}

header nav .container .hamburger {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1rem;
  cursor: pointer;
}

header nav .container .hamburger::before,
header nav .container .hamburger::after {
  content: "";
  width: 100%;
  height: 1.5px;
  position: absolute;
  left: 50%;
  top: 50%;
  background: #3a8af2;
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: -1;
  transition: 300ms ease-in-out;
}

header nav .container .hamburger.active div {
  opacity: 0;
  transform: scale(0);
}

header nav .container .hamburger.active::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

header nav .container .hamburger.active::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media screen and (max-width: 1024px) {
  header nav .container .hamburger {
    display: flex;
  }
}

header nav .container .hamburger div {
  width: 100%;
  height: 1.5px;
  background: #3a8af2;
  border-radius: 0.5rem;
  transition: 100ms ease-in-out;
}

header nav .container ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

header nav .container ul .line {
  height: 40px;
  width: 1px;
  background: linear-gradient(0deg, transparent, #3a8af2, transparent);
}

@media screen and (max-width: 1024px) {
  header nav .container ul .line {
    width: 80%;
    height: 0.5px;
    background: rgba(187, 187, 187, 0.5);
  }
}

header nav .container ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
}

header nav .container ul li.active a {
  position: relative;
  pointer-events: none;
  color: #bbb;
}

header nav .container ul li a {
  color: #3a8af2;
  font-weight: 600;
  transition: 150ms ease-in;
}

header nav .container ul li a:hover {
  color: #1c5fd3;
}

header nav .container ul li.login a {
  font-weight: 600;
}

header nav .container ul li.signup a {
  display: flex;
  color: #fff;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  box-shadow: 0 0 0.5rem rgba(58, 138, 242, 0.25);
}

@media screen and (max-width: 1024px) {
  header nav .container ul {
    position: fixed;
    top: 0;
    left: 100%;
    visibility: hidden;
    height: 100vh;
    max-width: 80%;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    background: #fff;
    gap: 1.75rem;
    transition: 300ms ease-in-out;
    z-index: -1;
    box-shadow: 1rem 0 1rem rgba(0, 0, 0, 0.025);
    border-left: 0.25px solid rgba(187, 187, 187, 0.5);
  }

  header nav .container ul.active {
    left: 20%;
    visibility: visible;
  }

  header nav .container ul li {
    font-size: 1.1em;
  }

  header nav .container ul li.active a {
    color: #bbb;
  }

  header nav .container ul li.active a::before {
    display: none !important;
    visibility: hidden !important;
  }
}

header nav .logo {
  display: flex;
  margin-right: 2rem;
}

header nav .logo img {
  height: 50px;
}

@media screen and (max-width: 768px) {
  header nav .logo img {
    height: 40px;
  }
}

#footer {
  background: linear-gradient(90deg, #1c5fd3, #3a8af2);
  user-select: none;
}

#footer img {
  width: 50px;
}

#footer .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

#footer .content {
  display: grid;
  gap: 3rem;
  color: #fff;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

@media screen and (max-width: 1024px) {
  #footer .content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  #footer .content {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

#footer .content .footer-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#footer .content .footer-section .top {
  border-left: 5px solid #fff;
  padding-left: 0.75rem;
  margin-bottom: 0.75rem;
}

#footer .content .footer-section .box {
  display: flex;
  align-items: center;
}

#footer .content .footer-section i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

#footer .content .footer-section h2 {
  margin-bottom: 0.5rem;
}

#footer .content .footer-section p {
  opacity: 0.75;
}

#footer .content a {
  color: #fff;
}

#_404 header {
  position: sticky;
}

#_404 .content {
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7rem 0;
  color: #151515;
}

#_404 .content h1 {
  font-size: 5em;
}

#_404 .content p {
  font-weight: 500;
}

#admin header {
  position: sticky;
}

#admin nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  padding: 1em 0;
  border-bottom: 1px solid rgba(187, 187, 187, 0.5);
}

#admin nav h2 {
  font-size: 1.25em;
  color: #303030;
}

#admin nav ul {
  display: flex;
  gap: 1em;
}

#admin nav ul li.active>button {
  opacity: 0.75;
  text-decoration: underline;
  pointer-events: none;
}

#admin nav ul button {
  font-size: 0.9em;
  font-weight: 500;
  color: #1c5fd3;
  cursor: pointer;
}

#admin nav ul button:hover {
  text-decoration: underline;
}

#admin .content {
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: #151515;
}

#admin .content .preview-image {
  width: 100%;
  max-width: 300px;
  border: 2px solid #1c5fd3;
  border-radius: 0.25rem;
}

#admin .content #exams .paid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 1rem 0;
}

#admin .content #exams .paid input {
  width: fit-content;
}

#admin .content #exams .paid label {
  margin: 0;
}

#admin .content #exams .buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

#admin .content #exams .buttons button {
  background: none;
  border: 2px dashed #1c5fd3;
  color: #1c5fd3;
  font-weight: 700;
  font-size: 0.75em;
}

#admin .content #exams .buttons button:hover {
  background: rgba(28, 95, 211, 0.2);
}

#admin .content #exams .questions {
  padding: 1rem 0;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#admin .content #exams .questions button {
  border: 1px solid #1c5fd3;
  background: none !important;
  color: #1c5fd3;
}

#admin .content #exams .questions button.danger {
  border: 1px solid #ed1919;
  color: #ed1919;
}

#admin .content #exams .questions span.danger {
  color: #ed1919;
  font-weight: 600;
  margin: auto;
}

#admin .content #exams .questions span.danger.left {
  margin: 0;
}

#admin .content #exams .questions input {
  background: #fff;
}

#admin .content #exams .questions .question {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border: 10px solid #3a8af2;
  border-radius: 0.5rem;
}

#admin .content #exams .questions .question .variant {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#admin .content #exams .questions .question .variant.right {
  padding: 0.5rem;
  background: rgba(13, 198, 103, 0.25);
  border: 1px solid #0dc667;
  border-radius: 0.25rem;
  overflow: hidden;
}

#admin .content #exams .questions .question .variant span {
  background: #1c5fd3;
  color: #fff;
  min-width: 2.5rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

#admin .content #exams .questions .question .variant span:hover {
  background: #0dc667;
}

#admin .content #exams .questions .question .columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media screen and (max-width: 768px) {
  #admin .content #exams .questions .question .columns {
    grid-template-columns: 1fr;
  }
}

#admin .content #exams .questions .question .columns .column {
  padding: 1rem;
  border: 1px solid #bbb;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#admin .content #exams .questions .question .columns .column span {
  pointer-events: none;
}

#admin .content #exams .questions .question .columns .column textarea {
  resize: vertical;
}

#admin .content #exams .questions .question .variants {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#admin .content #exams .questions .question .variants button {
  margin: 0;
}

#admin .content section {
  margin-bottom: 5rem;
  margin-top: 2rem;
  border-radius: 0.5rem;
}

#admin .content form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  margin: 1rem 0;
}

#admin .content form .box {
  display: flex;
  flex-direction: column;
}

#admin .content form label {
  margin-bottom: 0.5rem;
  font-size: 1em;
  font-weight: 600;
}

#admin .content form input,
#admin .content form textarea,
#admin .content form select {
  border: 1px solid #bbb;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  outline-color: #1c5fd3;
  width: 100%;
  font-weight: 500;
  font-family: "Quicksand", sans-serif;
}

#admin .content form textarea {
  resize: vertical;
}

#admin .content form .password {
  position: relative;
  display: flex;
  gap: 0.25rem;
}

#admin .content form .password input {
  padding-right: 4rem;
}

#admin .content form .password button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

#admin .content form button {
  font-size: 1em;
  padding: 0.75rem 1rem;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

#admin .content form button:hover {
  opacity: 0.9;
}

#admin .content form .error {
  color: #ed1919;
  font-weight: 600;
  font-size: 0.9em;
  margin-top: 0.5em;
}

#admin .content #users {
  user-select: text;
}

#admin .content #users button.update {
  background: #fff;
  padding: 1em;
  color: #1c5fd3;
  font-weight: 600;
  font-size: 1em;
  border: 1px solid #1c5fd3;
  border-radius: 0.5em;
}

#admin .content #users .search-user {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#admin .content #users .search-user button {
  margin: 0;
}

#admin .content #users .user {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

#admin .content #users .user img {
  width: 100px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 1em;
}

#admin .content #users .user .box {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

#admin .content #users .user .box select {
  padding: 0.5em 1em;
  background-color: #fff;
  border-radius: 0.5em;
  font-weight: 600;
  border: 1px solid rgba(187, 187, 187, 0.5);
  font-size: 1em;
}

#admin .content #users .user .box h3 {
  font-weight: 600;
  color: #303030;
}

#admin .content #users .user .box span {
  font-weight: 500;
  color: #151515;
}

#admin .content #users .user .exams {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

#admin .content #users .user .exams h3 {
  font-weight: 500;
}

#admin .content #users .user .exams div {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  font-weight: 600;
}

#admin .content #users .user .exams div span {
  background: #fff;
  padding: 0.5em 1em;
  border-radius: 0.5em;
  border: 1px solid rgba(187, 187, 187, 0.5);
  width: fit-content;
  color: #151515;
}

#admin .content #settings form {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

#admin .content #settings form .social,
#admin .content #settings form .addresses {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

#admin .content #settings form .addresses .add {
  width: fit-content;
  align-self: flex-end;
}

#admin .content #settings form .address {
  display: flex;
  align-items: center;
  gap: 1em;
}

#admin .content #settings form .address button {
  margin: 0;
}

#admin .content #settings form .box {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 1em;
  color: #303030;
}

#admin .content #settings form .box i {
  font-size: 1.25em;
}

#admin .content #settings form .box input {
  color: #303030;
}

#admin .content #exam-results {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2em;
}

#admin .content #exam-results button {
  margin: 2em auto;
  padding: 1em;
  border: 1px solid rgba(187, 187, 187, 0.5);
  background: #fff;
  font-weight: 500;
  border-radius: 0.5em;
  font-size: 1em;
  color: #303030;
  box-shadow: 0 0 1rem rgba(28, 95, 211, 0.1);
}

#admin .content #exam-results .exam-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5em;
  width: 100%;
}

@media screen and (max-width: 1024px) {
  #admin .content #exam-results .exam-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  #admin .content #exam-results .exam-results {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

#admin .content #exam-results .exam-results .exam-result {
  display: flex;
  flex-direction: column;
  gap: 1em;
  border: 1px solid rgba(187, 187, 187, 0.5);
  padding: 1em;
  border-radius: 0.5em;
  color: #303030;
  background: #fff;
}

#admin .content #exam-results .exam-results .exam-result .exam-info {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

#admin .content #exam-results .exam-results .exam-result .exam-info .time {
  font-size: 0.75em;
  color: #1c5fd3;
  font-weight: 500;
}

#admin .content #exam-results .exam-results .exam-result .user {
  display: flex;
  align-items: center;
  gap: 1em;
}

#admin .content #exam-results .exam-results .exam-result .user .user-info {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

#admin .content #exam-results .exam-results .exam-result .user a {
  background: none;
  color: #1c5fd3;
  font-weight: 600;
  padding: 0;
  margin: 0;
  font-size: 0.9em;
  width: fit-content;
}

#admin .content #exam-results .exam-results .exam-result .user a:hover {
  text-decoration: underline;
}

#admin .content #exam-results .exam-results .exam-result img {
  border: 1px solid rgba(187, 187, 187, 0.5);
  border-radius: 0.75em;
  width: 48px;
  height: 48px;
}

#admin .content #exam-results .exam-results .exam-result h3 {
  font-size: 1em;
}

#admin .content #exam-results .exam-results .exam-result a {
  background: #3a8af2;
  padding: 0.5em 1em;
  border-radius: 0.5em;
  color: #fff;
  text-align: center;
  margin-top: 0.5em;
  font-weight: 500;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  transition: 150ms ease-in;
  z-index: 100;
  user-select: none;
}

header.scrolled,
#auth header {
  background: #fff;
  box-shadow: 0 0 1rem rgba(21, 21, 21, 0.05);
}

header .exam-banner {
  width: 100%;
  padding-top: 1em;
  padding-bottom: 1em;
  color: #fff;
  background: #1c5fd3;
  font-weight: 500;
}

header .exam-banner a {
  color: #fff;
}

header nav {
  padding: 1rem 0;
}

@media screen and (max-width: 1200px) {
  header nav {
    font-size: 15px;
  }
}

header nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header nav .container .profile {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: 2rem;
}

header nav .container .profile .profile-photo {
  height: 50px;
  color: #fff;
  border-radius: 0.75rem;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  box-shadow: 0 0 1em rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 768px) {
  header nav .container .profile .profile-photo {
    height: 40px;
  }
}

header nav .container .hamburger {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1rem;
  cursor: pointer;
}

header nav .container .hamburger::before,
header nav .container .hamburger::after {
  content: "";
  width: 100%;
  height: 1.5px;
  position: absolute;
  left: 50%;
  top: 50%;
  background: #3a8af2;
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: -1;
  transition: 300ms ease-in-out;
}

header nav .container .hamburger.active div {
  opacity: 0;
  transform: scale(0);
}

header nav .container .hamburger.active::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

header nav .container .hamburger.active::before {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media screen and (max-width: 1024px) {
  header nav .container .hamburger {
    display: flex;
  }
}

header nav .container .hamburger div {
  width: 100%;
  height: 1.5px;
  background: #3a8af2;
  border-radius: 0.5rem;
  transition: 100ms ease-in-out;
}

header nav .container ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

header nav .container ul .line {
  height: 40px;
  width: 1px;
  background: linear-gradient(0deg, transparent, #3a8af2, transparent);
}

@media screen and (max-width: 1024px) {
  header nav .container ul .line {
    width: 80%;
    height: 0.5px;
    background: rgba(187, 187, 187, 0.5);
  }
}

header nav .container ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
}

header nav .container ul li.active a {
  position: relative;
  pointer-events: none;
  color: #bbb;
}

header nav .container ul li a {
  color: #3a8af2;
  font-weight: 600;
  transition: 150ms ease-in;
}

header nav .container ul li a:hover {
  color: #1c5fd3;
}

header nav .container ul li.login a {
  font-weight: 600;
}

header nav .container ul li.signup a {
  display: flex;
  color: #fff;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  box-shadow: 0 0 0.5rem rgba(58, 138, 242, 0.25);
}

@media screen and (max-width: 1024px) {
  header nav .container ul {
    position: fixed;
    top: 0;
    left: 100%;
    visibility: hidden;
    height: 100vh;
    max-width: 80%;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    background: #fff;
    gap: 1.75rem;
    transition: 300ms ease-in-out;
    z-index: -1;
    box-shadow: 1rem 0 1rem rgba(0, 0, 0, 0.025);
    border-left: 0.25px solid rgba(187, 187, 187, 0.5);
  }

  header nav .container ul.active {
    left: 20%;
    visibility: visible;
  }

  header nav .container ul li {
    font-size: 1.1em;
  }

  header nav .container ul li.active a {
    color: #bbb;
  }

  header nav .container ul li.active a::before {
    display: none !important;
    visibility: hidden !important;
  }
}

header nav .logo {
  display: flex;
  margin-right: 2rem;
}

header nav .logo img {
  height: 50px;
}

@media screen and (max-width: 768px) {
  header nav .logo img {
    height: 40px;
  }
}

#root {
  background-color: #fff !important;
}

#auth {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#auth header {
  position: static;
}

#auth .content {
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  color: #151515;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

#auth .content .bottom-link {
  color: #1c5fd3;
  font-weight: 600;
  margin-top: 2rem;
}

#auth .content h1 {
  margin-bottom: 1.5rem;
  font-size: 1.75em;
  color: #303030;
  align-self: flex-start;
  border-left: 5px solid #3a8af2;
  padding-left: 0.5em;
}

#auth .content form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

#auth .content form .box {
  display: flex;
  flex-direction: column;
}

#auth .content form label {
  margin-bottom: 0.5rem;
  font-size: 0.9em;
  font-weight: 600;
}

#auth .content form input {
  border: 1px solid #bbb;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  outline-color: #1c5fd3;
  width: 100%;
  font-weight: 500;
}

#auth .content form .password {
  position: relative;
  display: flex;
  gap: 0.25rem;
}

#auth .content form .password input {
  padding-right: 4rem;
}

#auth .content form .password button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

#auth .content form button {
  font-size: 1em;
  padding: 0.6rem 1rem;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

#auth .content form button:hover {
  opacity: 0.9;
}

#auth .content form .error {
  color: #ed1919;
  font-weight: 600;
  font-size: 0.9em;
  margin-top: 0.5em;
}

#auth .content .divider-text {
  margin: 1.5rem 0;
}

#auth .content .google {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #bbb;
  border-radius: 2rem;
  gap: 0.75rem;
}

#auth .content .google span {
  color: #303030;
  font-weight: 500;
  font-size: 1em;
}

#auth .content .google img {
  height: 1.75rem;
}

#current-exam {
  color: #151515;
}

#current-exam header {
  position: sticky;
}

#current-exam .content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media screen and (max-width: 768px) {
  #current-exam .content {
    font-size: 15px;
  }
}

@media screen and (max-width: 525px) {
  #current-exam .content {
    font-size: 14px;
  }
}

#current-exam .content img {
  width: 100%;
  max-width: 400px;
  border: 1px solid #1c5fd3;
  border-radius: 0.25rem;
  pointer-events: none;
}

#current-exam .content .top {
  position: sticky;
  z-index: 99;
  top: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #1c5fd3, #3a8af2);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: #fff;
  box-shadow: 0 0 1rem rgba(58, 138, 242, 0.25);
  gap: 1rem;
}

#current-exam .content .top h1 {
  font-size: 1em;
  font-weight: 600;
}

#current-exam .content .top .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

#current-exam .content .top .right span {
  font-weight: 500;
  font-size: 1em;
  opacity: 0.75;
}

#current-exam .content .top .info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#current-exam .content .top .info .stats {
  font-size: 1em;
  font-weight: 500;
}

#current-exam .content .top .info img {
  height: 2em;
  width: 2em;
  border-radius: 0.5em;
  border: none;
}

#current-exam .content .top .info .profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#current-exam .content .top .info .profile a {
  color: #fff;
  font-weight: 500;
  font-size: 0.9em;
}

#current-exam .content .top span {
  font-weight: 600;
  font-size: 1.25em;
}

#current-exam .content .top .timer {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1em;
  padding: 0.5em;
  width: 4.5em;
  border: 0.1em solid #fff;
  border-radius: 0.5em;
  white-space: nowrap;
}

#current-exam .content .top .time {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#current-exam .content .top .time div {
  font-size: 0.75em;
  font-weight: 600;
}

#current-exam h2 {
  color: #151515;
  font-size: 1.1em;
  font-weight: 500;
  width: 100%;
  max-width: 100%;
  text-wrap: wrap;
}

#current-exam h2 p {
  max-width: 100%;
  word-break: break-word;
}

#current-exam h2.false::after {
  content: "Cavablandırılmayıb";
  margin-left: 1rem;
  font-size: 0.9em;
  color: #ed1919;
  font-weight: 600;
}

#current-exam .questions {
  padding: 0 1rem;
}

#current-exam .question {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 0;
  border-radius: 0.5rem;
}

#current-exam .question.ended .variant {
  cursor: not-allowed;
}

#current-exam .question .variant {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 1em;
  cursor: pointer;
  width: fit-content;
}

#current-exam .question .variant.false {
  color: #ed1919;
  font-weight: 600;
  border-radius: 0.5rem;
  background: rgba(237, 25, 25, 0.1);
  padding-right: 1.5rem;
}

#current-exam .question .variant.false span {
  background: linear-gradient(45deg, #ed1919, rgba(237, 25, 25, 0.75));
  box-shadow: 0 0 0.5rem rgba(237, 25, 25, 0.25);
}

#current-exam .question .variant.true {
  border-radius: 0.5rem;
  background: rgba(13, 198, 103, 0.1);
  padding-right: 1.5rem;
}

#current-exam .question .variant.marked,
#current-exam .question .variant.true {
  color: #0dc667;
  font-weight: 600;
}

#current-exam .question .variant.marked span,
#current-exam .question .variant.true span {
  background: linear-gradient(45deg, #0dc667, rgba(13, 198, 103, 0.75));
  box-shadow: 0 0 0.5rem rgba(13, 198, 103, 0.25);
}

#current-exam .question .variant span {
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  color: #fff;
  min-width: 2.5rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 0.5rem;
  font-size: 1rem;
}

#current-exam .question .variants {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#current-exam .question .variants button {
  margin: 0;
}

#current-exam .question .columns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1em;
  font-weight: 500;
}

#current-exam .question label {
  font-size: 1.1em;
  font-weight: 600;
}

#current-exam .question .answer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#current-exam .question .answer.true label {
  background: #0dc667;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  width: fit-content;
  color: #fff;
}

#current-exam .question .answer.true textarea {
  border: 2px solid #0dc667;
  color: #0dc667;
  pointer-events: none;
}

#current-exam .question .answer.false label {
  background: #ed1919;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  width: fit-content;
  color: #fff;
}

#current-exam .question .answer.false textarea {
  border: 2px solid #ed1919;
  color: #ed1919;
  pointer-events: none;
}

#current-exam .question textarea {
  resize: vertical;
  border: 1px solid #bbb;
  border-radius: 0.25rem;
  padding: 0.5rem;
  outline-color: #1c5fd3;
  width: 100%;
  font-family: "Quicksand", sans-serif;
  font-size: 1em;
  font-weight: 500;
}

#current-exam .finish {
  background: linear-gradient(45deg, #3a8af2, #1c5fd3);
  padding: 1rem;
  font-weight: 600;
  color: #fff;
  border-radius: 0.5rem;
  font-size: 1em;
}

#exams header {
  position: sticky;
}

#exams #exam .info {
  background: #fff;
  color: #303030;
  padding: 0.75em 1em;
  border-radius: 0.5em;
  font-weight: 600;
  border: 1px solid rgba(187, 187, 187, 0.5);
}

#exams #exam .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#exams #exam .top h1 {
  display: inline;
}

#exams #exam .top .paid {
  font-size: 0.75em;
  font-weight: 600;
  padding: 0.25em 0.5em;
  background: rgba(187, 187, 187, 0.5);
  color: #303030;
  border-radius: 0.25em;
  margin-left: 0.5em;
}

#exams #exam ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#exams #exam ul li {
  color: #303030;
}

#exams #exam h1 {
  color: #151515;
  font-size: 1.5em;
}

#exams #exam button {
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  padding: 1rem 2rem;
  font-size: 1em;
  font-weight: 600;
  color: #fff;
  border-radius: 0.5rem;
  width: fit-content;
}

#exams .content {
  padding-top: 1rem;
  padding-bottom: 3rem;
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
}

#exams .content .top {
  border-left: 5px solid #3a8af2;
  padding-left: 1rem;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media screen and (max-width: 525px) {
  #exams .content .top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

#exams .content .top .left {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

#exams .content .top .left h1 {
  font-size: 2em;
}

#exams .content .top .left p {
  font-size: 0.9em;
  font-weight: 500;
  color: rgba(48, 48, 48, 0.5);
}

#exams .content .top select {
  font-size: 1em;
  padding: 0.5em 1em;
  background: #fff;
  border: 1px solid rgba(187, 187, 187, 0.5);
  border-radius: 0.5em;
  box-shadow: 0 0 1em rgba(28, 95, 211, 0.05);
  outline-color: #3a8af2;
}

#exams .content .exams {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 2rem;
}

@media screen and (max-width: 1024px) {
  #exams .content .exams {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  #exams .content .exams {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 13px;
  }
}

@media screen and (max-width: 525px) {
  #exams .content .exams {
    grid-template-columns: 1fr;
  }
}

#exams .content .exams .exam {
  position: relative;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0.3rem;
  box-shadow: 0 0.25rem 1rem rgba(21, 21, 21, 0.1);
  padding: 0.25rem 1rem;
}

#exams .content .exams .exam .edit-exam {
  background: transparent;
  color: #1c5fd3;
  padding: 0;
  margin: 0;
  margin-bottom: 0.75em;
}

#exams .content .exams .exam .edit-exam:hover {
  text-decoration: underline;
}

#exams .content .exams .exam.paid::before {
  background: linear-gradient(45deg, #edd10b, #d5bc0a);
}

#exams .content .exams .exam.paid a {
  background: linear-gradient(45deg, #edd10b, #d5bc0a);
}

#exams .content .exams .exam.paid i.paid {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  color: #edd10b;
  font-size: 2em;
  -webkit-text-stroke: 1px #fff;
  filter: drop-shadow(0 0 0.25em rgba(237, 209, 11, 0.1));
}

#exams .content .exams .exam::before {
  content: "";
  width: 100%;
  height: 0.3rem;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  position: absolute;
  top: 0;
  left: 0;
}

#exams .content .exams .exam h2 {
  font-size: 1.1em;
  color: #303030;
  margin: 1rem 0;
  font-weight: 500;
}

#exams .content .exams .exam .info {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
  font-size: 0.9em;
}

#exams .content .exams .exam .info div {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  align-items: center;
  color: rgba(21, 21, 21, 0.75);
  font-weight: 600;
}

#exams .content .exams .exam a {
  padding: 0.5rem 0;
  text-align: center;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  color: #fff;
  font-weight: 600;
  border-radius: 0.25rem;
  margin: 1rem 0;
}

#exams .content .exams .exam a:hover {
  opacity: 0.9;
}

#exams .content .exams .exam a.again {
  background: transparent;
  color: #1c5fd3;
  border: 1px solid #1c5fd3;
}

#home {
  flex: 1;
}

#home .home {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: linear-gradient(0deg, rgba(28, 95, 211, 0.1), rgba(58, 138, 242, 0));
  display: flex;
  align-items: center;
  justify-content: center;
}

#home .home .left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#home .home .content {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 3rem;
  align-items: center;
  height: 100%;
}

@media screen and (max-width: 1024px) {
  #home .home .content {
    grid-template-columns: 70% 30%;
  }
}

@media screen and (max-width: 768px) {
  #home .home .content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

#home .home .content .right {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 768px) {
  #home .home .content .right {
    order: -1;
    height: 200px;
  }
}

#home .home .content .right img {
  width: 100%;
  height: 100%;
}

#home .home .content .right img.active {
  opacity: 1;
  transform: scale(1);
}

@media screen and (max-width: 768px) {
  #home .home {
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  #home .home {
    font-size: 13px;
  }
}

#home .home h1 {
  font-size: 3em;
  font-weight: bold;
  color: #151515;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 0.25rem rgba(21, 21, 21, 0.05);
  font-family: "Roboto Mono", sans-serif;
}

#home .home h2 {
  font-size: 1.5em;
  font-weight: 700;
  color: #1c5fd3;
  font-family: "Roboto Mono", sans-serif;
  text-shadow: 0 0 1rem rgba(58, 138, 242, 0.1);
}

#home .home p {
  width: 100%;
  padding: 1rem 0;
  color: #151515;
  opacity: 0.75;
  font-weight: 400;
}

#home .home a {
  display: flex;
  width: fit-content;
  background: #fff;
  color: #1c5fd3;
  font-size: 1.1em;
  padding: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  border-radius: 0.5em;
  box-shadow: 0 0 1rem rgba(58, 138, 242, 0.1);
}

#home .home a:hover {
  opacity: 0.9;
  box-shadow: 0 0 0.5rem rgba(58, 138, 242, 0.25);
}

#home #info .container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

#home #info .container h2 {
  color: #151515;
  font-size: 2em;
  border-left: 5px solid #1c5fd3;
  padding-left: 0.5rem;
}

#home #info .container p {
  font-weight: 400;
  color: #151515;
  font-size: 1em;
}

#home #info .container .study {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#home #info .container .study .box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #303030;
}

#home #info .container .study .box i {
  font-size: 1.1em;
  color: #1c5fd3;
}

#leaderboard header {
  position: sticky;
}

#leaderboard .content {
  padding-top: 1rem;
  padding-bottom: 3rem;
  display: flex;
  gap: 1.5rem;
  flex-direction: column;
  font-size: 16px;
}

@media screen and (max-width: 768px) {
  #leaderboard .content {
    font-size: 15px;
  }
}

@media screen and (max-width: 525px) {
  #leaderboard .content {
    font-size: 13px;
  }
}

#leaderboard .content .top {
  border-left: 5px solid #3a8af2;
  padding-left: 1rem;
  margin: 0.5rem 0;
}

#leaderboard .content .wrapper {
  overflow-x: scroll;
  width: 100%;
}

#leaderboard .content table {
  width: 100%;
  border-spacing: 0.5em;
  white-space: nowrap;
}

#leaderboard .content table thead {
  width: 100%;
}

#leaderboard .content table thead th {
  text-align: center;
  border-radius: 0.5em;
  padding: 1.5em 0;
  color: #303030;
}

#leaderboard .content table tr {
  width: 100%;
}

#leaderboard .content table tr.own td {
  border: 1px dashed #3a8af2;
}

#leaderboard .content table tr td {
  overflow: hidden;
  color: #303030;
  box-shadow: 0 0 1em rgba(58, 138, 242, 0.05);
  border-radius: 0.5em;
  font-weight: 500;
}

#leaderboard .content table tr td {
  padding: 1em;
  text-align: center;
}

#leaderboard .content table tr td .user {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 1em;
}

#leaderboard .content table tr td .user .place {
  padding: 0 1em;
  font-weight: 500;
}

#leaderboard .content table tr td .user a {
  display: flex;
  align-items: center;
  font-weight: 500;
  gap: 0.5em;
  color: #303030;
}

#leaderboard .content table tr td .user a .username {
  color: #303030;
  font-weight: 600;
  font-size: 1em;
}

#leaderboard .content table tr td .profile-photo {
  height: 3em;
  width: 3em;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 0.75em;
}

#leaderboard .content table tr td .badge {
  height: 1.1em;
  width: 1.1em;
}

#profile header {
  position: sticky;
}

#profile .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: #303030;
}

#profile .content .logout {
  color: #ed1919;
  font-weight: 600;
  font-size: 1em;
  width: fit-content;
  margin-top: 1em;
}

#profile .content a {
  border: 1px dashed transparent;
}

#profile .content a:hover {
  border-color: rgba(58, 138, 242, 0.75);
}

#profile .content .lastResults {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

#profile .content .lastResults .results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#profile .content .lastResults .results .lastExam {
  padding: 1rem;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.25rem 1rem rgba(58, 138, 242, 0.05);
  display: flex;
  justify-content: space-between;
  border: 1px solid rgba(187, 187, 187, 0.5);
}

#profile .content .lastResults .results .lastExam .left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #3a8af2;
}

#profile .content .lastResults .results .lastExam .left span {
  font-size: 0.9em;
}

#profile .content .lastResults .results .lastExam .right {
  color: #3a8af2;
  font-weight: 600;
}

#profile .content .lastResults .results .lastExam h3 {
  font-size: 1em;
  color: #303030;
  font-weight: 500;
}

@media screen and (max-width: 525px) {
  #profile .content {
    font-size: 14px;
  }
}

#profile .content .edit-popup {
  width: 100%;
  max-width: 400px;
}

#profile .content .edit-popup .error {
  color: #ed1919;
  font-size: 0.9em;
  font-weight: 500;
}

#profile .content .edit-popup form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 0.5em;
}

#profile .content .edit-popup form input {
  border: 1px solid rgba(187, 187, 187, 0.5);
  padding: 0.5em 1em;
  border-radius: 0.25em;
  width: 100%;
  outline: none;
  font-size: 1em;
}

#profile .content .edit-popup form button {
  background: linear-gradient(45deg, #3a8af2, #1c5fd3);
  width: 100%;
  padding: 0.5em;
  border-radius: 0.25em;
  color: #fff;
  font-weight: 500;
  font-size: 1em;
}

#profile .content .edit-popup form .box {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  width: 100%;
}

#profile .content .edit-popup form .box label {
  font-weight: 500;
  color: #303030;
}

#profile .content .edit button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  margin-left: 0.25em;
  color: #303030;
}

#profile .content .badge {
  height: 1.1em;
  pointer-events: none;
}

#profile .content .info {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

#profile .content .info span {
  font-weight: 500;
  margin: 0.25rem 0;
}

#profile .content .info span.email {
  user-select: text;
}

#profile .content .info .stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#profile .content .info .stats span {
  font-weight: 600;
  padding: 1em;
  border-radius: 0.5em;
  background: #fff;
  box-shadow: 0 0.25rem 1rem rgba(58, 138, 242, 0.05);
  border: 1px solid rgba(187, 187, 187, 0.5);
}

#profile .content .top {
  display: flex;
  gap: 1em;
  align-items: center;
  width: 100%;
}

#profile .content .top .main-info {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  width: 100%;
}

#profile .content .top h1 {
  font-size: 1.5em;
  color: #151515;
  font-weight: 600;
}

#profile .content .top h2 {
  font-size: 1.1em;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #303030;
  width: fit-content;
}

#profile .content .top img.profile {
  border-radius: 20%;
  aspect-ratio: 1/1;
  max-height: 96px;
  height: 96px;
  pointer-events: none;
  object-fit: cover;
}

#tests header {
  position: sticky;
}

#tests iframe {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #bbb;
  width: 100%;
  height: 500px;
}

#tests .content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

#tests .content .top {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  border-left: 5px solid #3a8af2;
  padding-left: 1rem;
  margin: 0.5rem 0;
}

#tests .content p {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(48, 48, 48, 0.5);
}

#tests .content h1 {
  color: #303030;
}

#tests .content h2 {
  font-size: 1.25em;
}

#tests .content .tests {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media screen and (max-width: 768px) {
  #tests .content .tests {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 525px) {
  #tests .content .tests {
    grid-template-columns: 1fr;
  }
}

#tests .content .tests .test {
  padding: 1rem;
  background: #fff;
  color: #303030;
  border-radius: 0.5rem;
  font-size: 0.75em;
  border: 1px solid rgba(187, 187, 187, 0.5);
  box-shadow: 0 0 0.25em rgba(21, 21, 21, 0.05);
  user-select: text;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

#tests .content .tests .test a {
  color: #303030;
}

#tests .content .tests .test span {
  user-select: text;
  z-index: 10;
  font-size: 1.1em;
  font-weight: 500;
}

/* Sagirdler page: search + cards (reuses #tests grid), modal, calendars. */
.sagird-search {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin: 1rem 0;
  align-items: center;
}

.sagird-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}

.sagird-search-icon {
  position: absolute;
  left: 1rem;
  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}

.sagird-search input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.6rem !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  font-family: Quicksand, sans-serif !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 0.6rem !important;
  color: #1e293b !important;
  outline: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
}

.sagird-search input:focus {
  border-color: #1c5fd3 !important;
  box-shadow: 0 0 0 3px rgba(28, 95, 211, 0.15) !important;
}

.sagird-search-clear {
  position: absolute;
  right: 0.85rem;
  color: #94a3b8;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  transition: all 0.15s ease;
  z-index: 2;
  cursor: pointer;
}

.sagird-search-clear:hover {
  background: #f1f5f9;
  color: #475569;
}

.sagird-search button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 0.85rem 1.6rem !important;
  background: linear-gradient(135deg, #1c5fd3, #3a8af2) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0.6rem !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(28, 95, 211, 0.25) !important;
  transition: all 0.2s ease !important;
}

.sagird-search button:hover {
  opacity: 0.93;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(28, 95, 211, 0.3) !important;
}

.sagird-search button:active {
  transform: translateY(0);
}

@media screen and (max-width: 525px) {
  .sagird-search {
    flex-direction: column;
    gap: 0.5rem;
  }
  .sagird-search-input-wrap {
    width: 100%;
  }
  .sagird-search button {
    width: 100%;
    justify-content: center;
  }
}

.sagird-hint {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(48, 48, 48, 0.5);
}

#tests .content .tests .test.sagird-card {
  cursor: pointer;
}

.sagird-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 20%;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  color: #fff;
  font-weight: 700;
  font-size: 1.1em;
}

.sagird-avatar.big {
  width: 96px;
  height: 96px;
  font-size: 2em;
  flex-shrink: 0;
}

.sagird-class {
  display: inline-block;
  font-weight: 600;
  padding: 0.25em 0.75em;
  border: 1px solid rgba(187, 187, 187, 0.5);
  border-radius: 0.5em;
  background: #fff;
  width: fit-content;
}

.sagird-pay,
.pay-chip {
  display: inline-block;
  font-weight: 600;
  padding: 0.25em 0.75em;
  border-radius: 0.5em;
  width: fit-content;
  border: 1px solid transparent;
}

.pay-paid {
  background: rgba(13, 198, 103, 0.1);
  color: #0dc667;
  border-color: #0dc667;
}

.pay-partial {
  background: rgba(241, 196, 15, 0.12);
  color: #9a7b00;
  border-color: #f1c40f;
}

.pay-unpaid {
  background: rgba(187, 187, 187, 0.2);
  color: #303030;
  border-color: rgba(187, 187, 187, 0.5);
}

.sagird-meta {
  font-size: 0.9em;
  color: rgba(48, 48, 48, 0.7);
}

.sagird-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(21, 21, 21, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 1rem;
  overflow-y: auto;
}

.sagird-modal[hidden] {
  display: none;
}

.sagird-modal-card {
  background: #fff;
  border-radius: 0.5rem;
  max-width: 700px;
  width: 100%;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 0.25rem 1rem rgba(21, 21, 21, 0.2);
  color: #303030;
}

.sagird-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.5em;
  color: #303030;
  line-height: 1;
}

.sagird-modal-card h2 {
  font-size: 1.25em;
  margin: 1rem 0 0.5rem;
  border-left: 5px solid #3a8af2;
  padding-left: 0.5rem;
}

.sagird-modal-head {
  display: flex;
  gap: 1em;
  align-items: center;
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

@media screen and (max-width: 525px) {
  .pay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.att-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9em;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.att-legend .dot {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  margin-right: 0.35em;
  vertical-align: baseline;
}

.dot-present {
  background: #0dc667;
}

.dot-absent {
  background: #ed1919;
}

.dot-excused {
  background: #bbb;
}

.att-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}

.att-day {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  border-radius: 0.4em;
  font-weight: 600;
  border: 1px solid rgba(187, 187, 187, 0.5);
  background: #fff;
}

.att-present,
.att-late {
  background: rgba(13, 198, 103, 0.15);
  border-color: #0dc667;
  color: #0a7a40;
}

.att-absent {
  background: rgba(237, 25, 25, 0.1);
  border-color: #ed1919;
  color: #ed1919;
}

.att-excused {
  background: rgba(187, 187, 187, 0.25);
  color: #303030;
}

.att-none {
  color: rgba(48, 48, 48, 0.4);
}

/* Elminboard: staff dashboard (mirrors #admin layout + leaderboard table). */
#elminboard nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  padding: 1em 0;
  border-bottom: 1px solid rgba(187, 187, 187, 0.5);
}

#elminboard nav h2 {
  font-size: 1.25em;
  color: #303030;
}

#elminboard nav ul {
  display: flex;
  gap: 1em;
  list-style: none;
}

#elminboard nav ul li.active>a {
  opacity: 0.75;
  text-decoration: underline;
  pointer-events: none;
}

#elminboard nav ul button {
  font-size: 0.9em;
  font-weight: 500;
  color: #1c5fd3;
  cursor: pointer;
}

#elminboard nav ul button:hover {
  text-decoration: underline;
}

#elminboard .content {
  padding-top: 1rem;
  padding-bottom: 3rem;
  color: #151515;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#elminboard section {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#elminboard section>h2 {
  font-size: 1.25em;
  border-left: 5px solid #3a8af2;
  padding-left: 0.5rem;
  color: #303030;
}

#elminboard .stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

@media screen and (max-width: 768px) {
  #elminboard .stat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#elminboard .stat-card {
  padding: 1em;
  border-radius: 0.5em;
  background: #fff;
  box-shadow: 0 0.25rem 1rem rgba(58, 138, 242, 0.05);
  border: 1px solid rgba(187, 187, 187, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

#elminboard .stat-card h3 {
  font-size: 0.9em;
  font-weight: 500;
  color: #303030;
}

#elminboard .stat-card span {
  font-size: 1.5em;
  font-weight: 600;
  color: #1c5fd3;
}

#elminboard .picker {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

#elminboard .picker label {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.9em;
  color: #303030;
}

#elminboard form input,
#elminboard form select {
  border: 1px solid #bbb;
  font-size: 1rem;
  padding: 0.5em 0.75em;
  border-radius: 0.5rem;
  outline-color: #1c5fd3;
  font-weight: 500;
  font-family: Quicksand, sans-serif;
  background: #fff;
}

#elminboard form button {
  font-size: 1em;
  padding: 0.5em 1em;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
}

#elminboard form button:hover,
#elminboard .btn:hover {
  opacity: 0.9;
}

#elminboard .btn {
  display: inline-block;
  font-size: 1em;
  padding: 0.5em 1em;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  white-space: nowrap;
}

#elminboard .wrapper {
  overflow-x: auto;
  width: 100%;
}

#elminboard table {
  width: 100%;
  border-spacing: 0.5em;
  white-space: nowrap;
}

#elminboard table th {
  text-align: left;
  padding: 0.75em 1em;
  color: #303030;
  font-size: 0.9em;
}

#elminboard table td {
  padding: 0.75em 1em;
  background: #fff;
  border: 1px solid rgba(187, 187, 187, 0.5);
  border-radius: 0.5em;
  color: #303030;
  font-weight: 500;
}

/* Elminboard overview: grid, segmented bars, chart, mini-cards, lists. */
#elminboard .dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.5rem;
  align-items: start;
}

@media screen and (max-width: 1024px) {
  #elminboard .dash-grid {
    grid-template-columns: 1fr;
  }
}

#elminboard .dash-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

#elminboard .dash-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 1rem;
}

#elminboard .avg-card .avg {
  font-size: 2.5em;
}

#elminboard .avg-card p {
  font-size: 0.9em;
  font-weight: 500;
  color: #303030;
}

#elminboard .mini-card {
  display: block;
  padding: 0.9em 1em;
  border-radius: 0.5em;
  background: #fff;
  border: 1px solid rgba(187, 187, 187, 0.5);
  box-shadow: 0 0.25rem 1rem rgba(58, 138, 242, 0.05);
  color: #1c5fd3;
  font-weight: 600;
}

#elminboard .mini-card:hover {
  border-color: #3a8af2;
}

#elminboard .mini-card.active {
  border: 1px dashed #3a8af2;
  pointer-events: none;
  opacity: 0.75;
}

#elminboard .segments {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.25rem;
  margin-top: 0.25rem;
}

#elminboard .segments .seg {
  height: 0.5rem;
  border-radius: 1em;
  background: rgba(187, 187, 187, 0.35);
}

#elminboard .segments .seg.filled {
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
}

#elminboard .chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#elminboard .chart-head h2 {
  font-size: 1.25em;
  border-left: 5px solid #3a8af2;
  padding-left: 0.5rem;
  color: #303030;
}

#elminboard .year-pill {
  font-weight: 700;
  padding: 0.4em 1em;
  border-radius: 2em;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  color: #fff;
}

#elminboard .chart-body {
  display: flex;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid rgba(187, 187, 187, 0.5);
  border-radius: 0.5em;
  padding: 1em;
  margin-top: 0.75rem;
}

#elminboard .chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.75em;
  font-weight: 600;
  color: rgba(48, 48, 48, 0.6);
  padding: 0 0 1.5em;
}

#elminboard .chart-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  flex: 1;
}

#elminboard .chart-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

#elminboard .chart-group .bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.3rem;
  height: 160px;
  width: 100%;
}

#elminboard .bar {
  width: 1.1rem;
  min-height: 3px;
  border-radius: 0.3rem 0.3rem 0 0;
}

#elminboard .bar.lime {
  background: #84cc16;
}

#elminboard .bar.dark {
  background: #1c5fd3;
}

#elminboard .chart-label {
  font-size: 0.8em;
  font-weight: 600;
  color: #303030;
}

#elminboard .chart-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.9em;
  font-weight: 500;
  margin-top: 0.5rem;
}

#elminboard .chart-legend .dot {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  margin-right: 0.35em;
}

#elminboard .dot-dark {
  background: #1c5fd3;
}

#elminboard .dot-lime {
  background: #84cc16;
}

#elminboard .list-box {
  background: #fff;
  border: 1px solid rgba(187, 187, 187, 0.5);
  border-radius: 0.5em;
  padding: 1em;
}

#elminboard .list-box h2 {
  font-size: 1.1em;
  margin-bottom: 0.5rem;
  color: #303030;
}

#elminboard .list-box p {
  padding: 0.4em 0;
  border-bottom: 1px solid rgba(187, 187, 187, 0.3);
  font-weight: 500;
}

#elminboard .inline-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

#elminboard .inline-form input,
#elminboard .inline-form select {
  flex: 1 1 150px;
  border: 1px solid rgba(187, 187, 187, 0.6);
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.95em;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#elminboard .inline-form input:focus,
#elminboard .inline-form select:focus {
  border-color: #1c5fd3;
  box-shadow: 0 0 0 3px rgba(28, 95, 211, 0.12);
  outline: none;
}

#elminboard .inline-form button {
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  color: #fff;
  border-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

#elminboard .inline-form button:hover {
  opacity: 0.9;
}

#elminboard .exam-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#elminboard .error {
  color: #ed1919;
  font-weight: 600;
}

#elminboard .board-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media screen and (max-width: 768px) {
  #elminboard .board-lists {
    grid-template-columns: 1fr;
  }
}

/* Elminboard: icon rail + pills + status cards + chart + mini-cards (site palette). */
#elminboard .board-layout {
  width: 100%;
  max-width: 1280px;
  margin: auto;
  box-sizing: border-box;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 3rem;
}

#elminboard {
  overflow-x: clip;
}

#elminboard .board-rail {
  background: #fff;
  border: 1px solid rgba(187, 187, 187, 0.5);
  box-shadow: 0 0.25rem 1rem rgba(58, 138, 242, 0.05);
  border-radius: 0.75rem;
  box-sizing: border-box;
  width: 4.5rem;
  flex: 0 0 4.5rem;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 1rem;
  align-self: flex-start;
  min-height: calc(100vh - 5rem);
}

#elminboard .board-rail nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  border: none;
  width: 100%;
  margin: auto 0;
}

#elminboard .board-rail nav ul {
  display: contents;
}

#elminboard .rail-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: transparent;
  transition: transform 0.2s ease;
  margin: 0 auto;
}

#elminboard .rail-logo:hover {
  transform: scale(1.06);
}

#elminboard .rail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  display: block;
}

#elminboard .board-rail nav a,
#elminboard .rail-foot a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  color: rgba(48, 48, 48, 0.5);
  font-size: 1.1em;
  margin: 0 auto;
  transition: all 0.2s ease;
}

#elminboard .board-rail nav a i,
#elminboard .rail-foot a i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  text-align: center;
  line-height: 1;
}

#elminboard .board-rail nav a:hover,
#elminboard .rail-foot a:hover {
  color: #1c5fd3;
  background: rgba(28, 95, 211, 0.08);
}

#elminboard .board-rail nav a.active {
  background: rgba(28, 95, 211, 0.1);
  color: #1c5fd3;
  pointer-events: none;
}

#elminboard .rail-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

#elminboard .rail-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  color: #fff;
  font-weight: 700;
  margin: 0 auto;
}

#elminboard .board-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#elminboard .board-top {
  position: static;
  width: 100%;
  top: auto;
  left: auto;
  z-index: auto;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

#elminboard .board-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#elminboard .board-header-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  object-fit: cover;
  box-shadow: 0 0.2rem 0.6rem rgba(28, 95, 211, 0.18);
}

#elminboard .board-top h1 {
  font-size: 1.75em;
  font-weight: 700;
  color: #151515;
  white-space: nowrap;
}

#elminboard .title-pill {
  background: rgba(28, 95, 211, 0.1);
  color: #1c5fd3;
  border-radius: 2em;
  padding: 0.15em 0.6em;
  font-size: 0.85em;
}

#elminboard .board-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

#elminboard .icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  background: #fff;
  border: 1px solid rgba(187, 187, 187, 0.5);
  color: #303030;
}

#elminboard .cta-gradient {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  color: #fff;
  font-weight: 600;
  padding: 0.7em 1.25em;
  border-radius: 0.5rem;
}

#elminboard .cta-gradient:hover {
  opacity: 0.9;
}

#elminboard .cta-gradient span {
  font-size: 1.2em;
  line-height: 1;
}

#elminboard .board-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#elminboard .board-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.55em 1.1em;
  border-radius: 2em;
  background: #fff;
  border: 1px solid rgba(187, 187, 187, 0.4);
  color: #303030;
  font-weight: 600;
  font-size: 0.9em;
}

#elminboard .board-tabs a i {
  color: #3a8af2;
}

#elminboard .board-tabs a.active {
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  border-color: transparent;
  color: #fff;
  pointer-events: none;
}

#elminboard .board-tabs a.active i {
  color: #fff;
}

#elminboard .dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 1.5rem;
  align-items: start;
}

@media screen and (max-width: 1024px) {
  #elminboard .dash-grid {
    grid-template-columns: 1fr;
  }
}

#elminboard .dash-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

#elminboard .dash-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 1rem;
}

#elminboard .status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

@media screen and (max-width: 768px) {
  #elminboard .status-row {
    grid-template-columns: 1fr;
  }
}

#elminboard .status-card {
  border-radius: 0.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: #fff;
  color: #303030;
  border: 1px solid rgba(187, 187, 187, 0.5);
  box-shadow: 0 0.25rem 1rem rgba(58, 138, 242, 0.05);
  min-width: 0;
  overflow: hidden;
}

#elminboard .status-title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#elminboard .status-title i {
  color: #3a8af2;
  flex-shrink: 0;
}

#elminboard .status-value {
  font-size: 2.5em;
  font-weight: 700;
  line-height: 1.1;
  color: #151515;
}

#elminboard .status-sub {
  font-size: 0.85em;
  color: rgba(48, 48, 48, 0.6);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#elminboard .dot-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.6rem;
}

#elminboard .dot-pin {
  aspect-ratio: 1/1;
  border-radius: 50%;
}

#elminboard .dot-pin.filled {
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
}

#elminboard .dot-pin.hollow {
  border: 1.5px dashed rgba(187, 187, 187, 0.8);
}

#elminboard .chart-card,
#elminboard .list-box,
#elminboard .panel-card,
#elminboard .avg-card,
#elminboard .mini-card {
  background: #fff;
  border: 1px solid rgba(187, 187, 187, 0.5);
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(58, 138, 242, 0.05);
}

#elminboard .chart-card {
  padding: 1.25rem;
}

#elminboard .chart-card .chart-body {
  border: none;
  padding: 0.5rem 0 0;
}

#elminboard .chart-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#elminboard .chart-head h2 {
  font-size: 1.25em;
  border-left: 5px solid #3a8af2;
  padding-left: 0.5rem;
  color: #303030;
}

#elminboard .chart-head .chart-legend {
  font-size: 0.85em;
  font-weight: 500;
  color: rgba(48, 48, 48, 0.6);
  margin: 0;
}

#elminboard .year-pill {
  margin-left: auto;
  font-weight: 700;
  padding: 0.4em 1em;
  border-radius: 2em;
  background: rgba(28, 95, 211, 0.1);
  color: #1c5fd3;
}

#elminboard .avg-card {
  padding: 1.25rem;
}

#elminboard .avg-card h3 {
  font-size: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

#elminboard .avg-card h3 i {
  color: #3a8af2;
}

#elminboard .avg-card .avg {
  font-size: 2.25em;
  color: #151515;
}

#elminboard .avg-sub {
  color: rgba(48, 48, 48, 0.6);
}

#elminboard .mini-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9em 1em;
  color: #303030;
  font-weight: 600;
}

#elminboard .mini-card:hover {
  border-color: #3a8af2;
}

#elminboard .mini-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  background: rgba(28, 95, 211, 0.08);
  color: #1c5fd3;
  flex-shrink: 0;
}

#elminboard .mini-arrow {
  margin-left: auto;
  color: rgba(48, 48, 48, 0.4);
  font-size: 1.2em;
}

#elminboard .panel-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid rgba(187, 187, 187, 0.5);
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 1rem rgba(58, 138, 242, 0.05);
}

#elminboard .panel-card > h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: none;
  padding: 0;
  font-size: 1.3em;
  color: #151515;
  font-weight: 700;
}

#elminboard .panel-card > h2 .mini-ico {
  width: 2.25rem;
  height: 2.25rem;
}

#elminboard .rows-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

#elminboard .rows-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: #303030;
  font-size: 0.9em;
  background: rgba(28, 95, 211, 0.04);
  border-bottom: 2px solid rgba(28, 95, 211, 0.1);
}

#elminboard .rows-table td {
  padding: 0.85rem 1rem;
  border: none;
  border-bottom: 1px solid rgba(187, 187, 187, 0.25);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: #303030;
  font-size: 0.95em;
  font-weight: 500;
}

#elminboard .rows-table tbody tr:hover td {
  background: rgba(28, 95, 211, 0.02);
}

#elminboard .rows-table tbody tr:last-child td {
  border-bottom: none;
}

/* Elminboard Action Buttons */
#elminboard .btn,
#elminboard .rows-table .btn,
#elminboard .rows-table button,
#elminboard .picker button,
#elminboard .panel-card > form > button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.88em;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(28, 95, 211, 0.2);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

#elminboard .btn:hover,
#elminboard .rows-table .btn:hover,
#elminboard .rows-table button:hover,
#elminboard .picker button:hover,
#elminboard .panel-card > form > button[type="submit"]:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 95, 211, 0.3);
}

#elminboard .btn:active,
#elminboard .rows-table button:active,
#elminboard .picker button:active {
  transform: translateY(0);
}

/* Compact button for table rows (Yadda saxla) */
#elminboard .btn-save-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82em;
  border-radius: 0.45rem;
}

/* Edit button specific style (Redaktə) */
#elminboard .btn-edit {
  background: rgba(28, 95, 211, 0.08);
  color: #1c5fd3;
  border: 1px solid rgba(28, 95, 211, 0.35);
  box-shadow: none;
  padding: 0.4rem 0.85rem;
  font-size: 0.82em;
}

#elminboard .btn-edit:hover {
  background: #1c5fd3;
  color: #fff;
  border-color: #1c5fd3;
  box-shadow: 0 3px 8px rgba(28, 95, 211, 0.25);
}

/* Filter button specific style (Göstər) */
#elminboard .btn-filter {
  padding: 0.45rem 1rem;
  font-size: 0.85em;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
}

/* Table inputs & selects styling */
#elminboard .rows-table select,
#elminboard .rows-table input[type="text"],
#elminboard .rows-table input[type="number"],
#elminboard .picker input,
#elminboard .picker select {
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(187, 187, 187, 0.6);
  border-radius: 0.5rem;
  font-size: 0.9em;
  font-family: inherit;
  background: #fff;
  color: #151515;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#elminboard .rows-table select:focus,
#elminboard .rows-table input:focus,
#elminboard .picker input:focus,
#elminboard .picker select:focus {
  border-color: #1c5fd3;
  box-shadow: 0 0 0 3px rgba(28, 95, 211, 0.12);
}

#elminboard .panel-card > form > button[type="submit"] {
  align-self: flex-start;
  margin-top: 1rem;
}

#elminboard .board-lists .list-box {
  border: 1px solid rgba(187, 187, 187, 0.5);
}

@media screen and (max-width: 1024px) {
  #elminboard .board-layout {
    flex-direction: column;
  }

  #elminboard .board-rail {
    position: static;
    flex-direction: row;
    align-self: stretch;
    width: auto;
    flex: none;
    align-items: center;
    min-height: auto;
    padding: 0.75rem 1rem;
  }

  #elminboard .board-rail nav {
    flex-direction: row;
    flex: none;
    justify-content: flex-start;
    margin: 0;
  }

  #elminboard .rail-foot {
    flex-direction: row;
    margin: 0 0 0 auto;
  }
}

/* Elminboard chart bars + legend dots (per dashboard spec: lime totals, dark paid). */
#elminboard .chart-body {
  display: flex;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid rgba(187, 187, 187, 0.5);
  border-radius: 0.5em;
  padding: 1em;
}

#elminboard .chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.75em;
  font-weight: 600;
  color: rgba(48, 48, 48, 0.6);
  padding-bottom: 1.5em;
}

#elminboard .chart-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  flex: 1;
}

#elminboard .chart-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

#elminboard .chart-group .bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.3rem;
  height: 160px;
  width: 100%;
}

#elminboard .bar {
  width: 1.1rem;
  min-height: 3px;
  border-radius: 0.3rem 0.3rem 0 0;
}

#elminboard .bar.lime {
  background: #84cc16;
}

#elminboard .bar.dark {
  background: #1c5fd3;
}

#elminboard .chart-label {
  font-size: 0.8em;
  font-weight: 600;
  color: #303030;
}

#elminboard .chart-legend .dot,
#elminboard .att-legend .dot {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  margin-right: 0.35em;
}

#elminboard .dot-dark {
  background: #1c5fd3;
}

#elminboard .dot-lime {
  background: #84cc16;
}

/* Elminboard: Add Student Modal */
.board-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.board-modal[hidden] {
  display: none !important;
}

.board-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.board-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(187, 187, 187, 0.5);
  overflow: hidden;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.board-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(187, 187, 187, 0.3);
  background: #fafafa;
}

.board-modal-head h2 {
  font-size: 1.25em;
  font-weight: 700;
  color: #151515;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.board-modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #888;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  transition: color 0.15s, background 0.15s;
}

.board-modal-close:hover {
  color: #151515;
  background: rgba(0, 0, 0, 0.05);
}

.board-modal-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media screen and (max-width: 600px) {
  .modal-form-grid {
    grid-template-columns: 1fr;
  }
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-field.full-width {
  grid-column: 1 / -1;
}

.modal-field label {
  font-size: 0.85em;
  font-weight: 600;
  color: #303030;
}

.modal-field label .req {
  color: #ed1919;
}

.modal-field input,
.modal-field select {
  border: 1px solid rgba(187, 187, 187, 0.6);
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.95em;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.modal-field input:focus,
.modal-field select:focus {
  border-color: #1c5fd3;
  box-shadow: 0 0 0 3px rgba(28, 95, 211, 0.12);
}

.modal-form-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(187, 187, 187, 0.3);
}

.btn-secondary {
  padding: 0.65rem 1.25rem;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  border: 1px solid rgba(187, 187, 187, 0.4);
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* Floating Toast Notification */
.message {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.message div {
  background: #1c5fd3;
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(28, 95, 211, 0.3);
  font-weight: 600;
  font-size: 0.95em;
  animation: slideInUp 0.3s ease-out;
  pointer-events: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}

.message div.fade-out {
  opacity: 0;
  transform: translateY(1rem);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Class Management & Filter Pills */
.btn-action-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border-radius: 0.6rem;
  font-size: 0.9em;
  font-weight: 600;
  font-family: inherit;
  background: rgba(28, 95, 211, 0.08);
  color: #1c5fd3;
  border: 1px solid rgba(28, 95, 211, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-action-outline:hover {
  background: #1c5fd3;
  color: #fff;
  border-color: #1c5fd3;
  box-shadow: 0 4px 12px rgba(28, 95, 211, 0.25);
  transform: translateY(-1px);
}

.class-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(187, 187, 187, 0.25);
}

.class-filter-label {
  font-size: 0.85em;
  font-weight: 700;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.35rem;
}

.class-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(187, 187, 187, 0.35);
  transition: all 0.2s ease;
}

.class-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: rgba(28, 95, 211, 0.4);
}

.class-pill.active {
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(28, 95, 211, 0.25);
  pointer-events: none;
}

.class-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 1rem;
  font-size: 0.78em;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.class-pill.active .class-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.class-pill-add {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  background: transparent;
  color: #1c5fd3;
  border: 1px dashed rgba(28, 95, 211, 0.5);
  font-size: 0.85em;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.class-pill-add:hover {
  background: rgba(28, 95, 211, 0.08);
  border-color: #1c5fd3;
}

.public-class-filter {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  justify-content: center;
  border-bottom: none;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-text-action {
  background: none;
  border: none;
  color: #1c5fd3;
  font-size: 0.8em;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}

.btn-text-action:hover {
  opacity: 0.8;
}

.field-hint {
  font-size: 0.78em;
  color: #64748b;
  margin-top: 0.25rem;
}

/* Clickable Student Name Links in Dashboard */
.student-name-link {
  color: #1c5fd3;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.student-name-link:hover {
  color: #1245a8;
  text-decoration: underline;
}

.board-lists .student-name-link {
  color: #1c5fd3;
  font-weight: 600;
}

.sagird-modal-phone {
  font-size: 0.85em;
  color: #64748b;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sagird-modal-phone i {
  color: #1c5fd3;
}

.sagird-modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(187, 187, 187, 0.3);
}

.pay-chip-date {
  font-size: 0.85em;
  opacity: 0.85;
  font-weight: 500;
  margin-left: 0.25rem;
}

.payment-date-input,
.due-date-input {
  max-width: 140px;
  font-size: 0.85em !important;
  padding: 0.35rem 0.6rem !important;
  background-color: #fff !important;
  cursor: pointer;
}

.due-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.76em;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #f0f4f9;
  color: #4b5e76;
  margin-left: 0.4rem;
}

.due-badge.overdue {
  background: #fde8e8;
  color: #c81e1e;
  font-weight: 600;
}

.att-date-input {
  max-width: 140px;
  cursor: pointer;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23555555' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.65rem center !important;
  background-size: 15px 15px !important;
  padding-right: 2.2rem !important;
}

.flatpickr-calendar {
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-clr);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
  background: #1c5fd3 !important;
  border-color: #1c5fd3 !important;
}

/* Bulk Import Card */
.bulk-import-card {
  margin: 1.25rem 0 1.5rem;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(135deg, #f8faff 0%, #f0f5ff 100%);
  border: 1px solid #d0e1fd;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(28, 95, 211, 0.04);
}

.bulk-import-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.bulk-import-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.google-sheets-ico {
  background: #107c41 !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1.1em;
}

.bulk-import-title strong {
  font-size: 1rem;
  color: #0f274a;
  display: block;
}

.bulk-import-title p {
  margin: 0.15rem 0 0;
  font-size: 0.82em;
  color: #586981;
}

.bulk-template-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-template-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82em;
  color: #1c5fd3;
  background: #fff;
  border: 1px solid #c7d8f5;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-template-download:hover {
  background: #e9f1fe;
  border-color: #1c5fd3;
  color: #0f409c;
}

.bulk-import-inputs {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
  background: #fff;
  padding: 0.9rem 1.1rem;
  border: 1px solid #dbe6f6;
  border-radius: 10px;
}

.bulk-file-upload,
.bulk-url-input {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bulk-file-upload label,
.bulk-url-input label {
  font-size: 0.78em;
  font-weight: 600;
  color: #4b5a6f;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bulk-file-upload input[type="file"] {
  font-size: 0.85em;
  color: #333;
  padding: 0.25rem 0;
}

.bulk-url-input {
  flex: 1;
  min-width: 240px;
}

.bulk-url-input input {
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: 1px solid #ccd8e8;
  border-radius: 6px;
  font-size: 0.88em;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bulk-url-input input:focus {
  border-color: #1c5fd3;
  box-shadow: 0 0 0 3px rgba(28, 95, 211, 0.12);
}

.bulk-divider {
  font-size: 0.8em;
  font-weight: 600;
  color: #8c9ba5;
  padding-bottom: 0.5rem;
  text-transform: uppercase;
}

.btn-bulk-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #1c5fd3;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.52rem 1rem;
  font-size: 0.88em;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-bulk-submit:hover {
  background: #134db5;
}

.btn-bulk-submit:active {
  transform: scale(0.98);
}

.bulk-hint {
  margin: 0.65rem 0 0;
  font-size: 0.8em;
  color: #63758b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bulk-hint i {
  color: #1c5fd3;
}

/* ============================================================
   Student Table Pagination & Actions
   ============================================================ */
.btn-cancel-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #64748b;
  color: #ffffff;
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85em;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-cancel-edit:hover {
  background: #475569;
  color: #ffffff;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.pagination-info {
  font-size: 0.86rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pagination-info strong {
  color: #0f172a;
  font-weight: 600;
}

.pagination-nav {
  display: flex;
  align-items: center;
}

.pagination-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-btn,
.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
  user-select: none;
}

.pagination-btn {
  gap: 0.4rem;
  padding: 0 0.85rem;
}

.pagination-btn:hover:not(.disabled),
.pagination-number:hover:not(.active) {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.pagination-number.active {
  background: linear-gradient(135deg, #1c5fd3, #3a8af2);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(28, 95, 211, 0.28);
  pointer-events: none;
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #94a3b8;
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 2.2rem;
  color: #94a3b8;
  font-weight: 700;
  user-select: none;
}

.sagirdler-public-pagination {
  margin: 2rem auto;
  max-width: 650px;
  justify-content: center;
}

@media (max-width: 640px) {
  .pagination-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.9rem 0.65rem;
  }
  .pagination-list {
    flex-wrap: wrap;
    justify-content: center;
  }
  .pagination-btn {
    padding: 0 0.55rem;
    font-size: 0.78rem;
  }
  .pagination-number {
    min-width: 2rem;
    height: 2rem;
    font-size: 0.78rem;
    padding: 0 0.45rem;
  }
}

/* Section Search Bar & Inputs across Elminboard */
.section-search-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.table-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 320px;
  max-width: 480px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrap .search-ico {
  position: absolute;
  left: 0.85rem;
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.board-search-input {
  width: 100%;
  padding-left: 2.3rem !important;
  padding-right: 2.2rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.5rem !important;
  font-size: 0.92rem !important;
  transition: all 0.2s ease;
  background-color: #ffffff;
}

.board-search-input:focus {
  border-color: #1c5fd3 !important;
  box-shadow: 0 0 0 3px rgba(28, 95, 211, 0.15) !important;
  outline: none !important;
}

.inline-search-wrap {
  width: 220px;
}

.inline-search-wrap .board-search-input {
  padding-left: 0.75rem !important;
  padding-right: 2.2rem !important;
}

.search-clear-btn {
  position: absolute;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  transition: all 0.15s ease;
  z-index: 2;
}

.search-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.btn-search-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(45deg, #1c5fd3, #3a8af2);
  color: #fff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(28, 95, 211, 0.2);
}

.btn-search-submit:hover {
  background: linear-gradient(45deg, #164eb3, #2d70c9);
  box-shadow: 0 3px 10px rgba(28, 95, 211, 0.3);
  transform: translateY(-1px);
}

.search-results-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: #f0f7ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.search-results-badge.mb-3 {
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
}

.badge-reset-link {
  color: #0284c7;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 0.25rem;
  transition: color 0.15s ease;
}

.badge-reset-link:hover {
  color: #0369a1;
}

@media (max-width: 640px) {
  .inline-search-wrap {
    width: 100%;
  }
  .table-search-form {
    max-width: 100%;
  }
}