@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";

@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@700&display=swap");

@font-face {
  font-family: "Helvetica";
  src: url("../../public/fonts/Helvetica.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica";
  src: url("../../public/fonts/Helvetica.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

/* ===== general styling =====  */
*::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 5px;
  height: 10px;
}

*::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background-color: transparent;
}

*::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background-color: #004d34;
}

*::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background-color: #1ebba3;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Helvetica" !important;
}

/* Banner status typography — must beat global Helvetica !important */
.student-banner-status-label {
  font-family: "Nunito", sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-size: 16px !important;
  line-height: 22px !important;
  color: #ffffff !important;
  text-align: center;
}

/* Single plate only — covers the empty status rect baked into the banner PNG. */
.student-banner-status-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.student-banner-status-badge-mask {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% + 20px);
  height: calc(100% + 14px);
  transform: translate(-50%, -50%);
  border-radius: 10px;
  /* Same fill as badge — hides PNG plate without a second visible layer. */
  background-color: #35ead0;
  pointer-events: none;
}

.student-banner-status-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 32px;
  padding: 0 18px;
  border-radius: 8px;
  background-color: #35ead0 !important;
  font-family: "Nunito", sans-serif !important;
  font-weight: 700 !important;
  font-style: normal !important;
  font-size: 15px !important;
  line-height: 20px !important;
  color: #ffffff !important;
  text-align: center;
  white-space: nowrap;
  box-shadow: none;
}
p {
  opacity: 0.8;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
}

/* loading spinner  */
@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.loading-spinner {
  width: 30px;
  height: 30px;
  border: 5px solid #f3f3f3; /* Light grey */
  border-top: 5px solid #383636; /* Black */
  border-radius: 50%;
  animation: spinner 1.5s linear infinite;
}

/* ---------------- MUI Styles amendment ---------------- */
.css-4jnixx-MuiStack-root {
  padding-top: 0 !important;
  overflow: visible !important;
}

.css-nxo287-MuiInputBase-input-MuiOutlinedInput-input {
  padding: 8px !important;
  background-color: #fff !important;
}

.image-container {
  position: relative;
  display: inline-block;
}

.image-container img {
  display: block;
}

.image-container {
  position: relative;
  display: inline-block;
}

.image-container img {
  display: block;
}

.edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  background-color: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.edit-overlay:hover {
  background-color: rgba(0, 0, 0, .50);
}

.image-container .edit-overlay {
  opacity: 1;
}
