body {
  font-family: -apple-system, BlinkMacSystemFont, Verdana, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: small;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga", "kern";
  text-size-adjust: 100%;
}

img {
  border: 0;
  vertical-align: middle;
}

.stu_photo {
  border-radius: 1rem;
  height: 180px;
  width: 170px;
  object-fit: cover;
}

/* Block styles */
.blockOuter {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 12px;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.12),
    0 4px 12px -2px rgba(0, 0, 0, 0.08);
  position: relative;
  isolation: isolate; /* ensures inner blending doesn't bleed */
}

.blockOuter--temporary {
  background: linear-gradient(135deg, #9333ea, #7e22ce);

  & > .blockInner {
    border: 2px solid #9333ea;
  }
}

.blockInner {
  background: #ffffff;
  padding: 8px; /* unchanged */
  border-radius: 6px 6px 10px 10px;
  border: 2px solid #2563eb;
}

.blockTitle {
  padding: 6px 8px 4px 8px; /* unchanged */
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Support plain CSS nesting alternative for previous & usage */
.blockTitle img {
  height: 23px;
  width: auto;
}

.logoArea {
  max-width: 2100px;
  margin: auto;
  display: flex;
  place-content: space-between;
  padding-bottom: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.menu {
  display: flex;
  place-items: center;
  min-width: max-content;
  max-width: 2100px;
  margin: auto;
  height: 60px;
}

.menuArea {
  background: #e1e5e917;
  border-top: 2px solid #e1e5e9;
  border-bottom: 2px solid #e1e5e9;
  margin-left: -8px;
  margin-right: -8px;
}

/* User Profile Card Styles */
.userProfileCard {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  padding: 16px;
  min-width: 280px;
  position: relative;
}

.userProfileHeader {
  display: flex;
  align-items: center;
  gap: 12px;
}

.userInfo {
  flex: 1;
}

.userName {
  font-weight: 600;
  font-size: 14px;
  color: #2c3e50;
  margin-bottom: 2px;
  line-height: 1.2;
}

.userEmail {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 4px;
  line-height: 1.2;
}

.userStatus {
  font-size: 11px;
  color: #28a745;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.userStatus::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #28a745;
  border-radius: 50%;
  display: inline-block;
}

.settingsLink {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #6c757d;
}

.settingsLink img {
  width: 24px;
  height: 24px;
}

/* Responsive design for user profile card */
@media (max-width: 768px) {
  .userProfileCard {
    min-width: 240px;
    padding: 12px;
  }

  .userProfileHeader {
    gap: 8px;
  }

  .userName {
    font-size: 13px;
  }

  .userEmail {
    font-size: 11px;
  }

  .userStatus {
    font-size: 10px;
  }

  .settingsLink {
    top: 8px;
    right: 8px;
  }

  .settingsLink img {
    width: 20px;
    height: 20px;
  }
}

/* Footer styles */
.footerArea {
  padding-top: 28px;
  padding-bottom: 20px;
  text-align: center;
  font-size: 12px;
  color: #757575;
  border-top: 2px solid #e1e5e9;
  margin-left: -8px;
  margin-right: -8px;
  margin-top: 20px;
}

/* Core styles */
.spoiler {
  background-color: gray;
  color: transparent;
  font-size: large;
  padding-right: 15px;
}

.spoiler:hover {
  background-color: inherit;
  color: inherit;
}

.loginBack {
  background-color: #d5d6db;
}

.loginMain {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 260px;
  gap: 1rem;
}

.loginLogo {
  max-width: 650px;
}

.loginMainArea {
  background: #fafbff40;
  border-radius: 2rem;
  border: 1px solid #00000029;
  width: 350px;
  padding: 25px;
  margin: 5px;
  text-align: center;
}

.loginTitle {
  font-weight: bold;
  font-size: medium;
  text-align: center;
}

.loginNote {
  border: 2px solid #f8ba01;
  background: #fff3dd;
  margin-top: 4px;
  padding: 3px;
  text-align: center;
}

.loginWarning {
  border: 2px solid #f00;
  background: #ffd9da;
  margin-top: 4px;
  padding: 3px;
  text-align: center;
}

.logoutNote {
  border: 2px solid #78f57b;
  background: #d1fcd2;
  margin-top: 4px;
  padding: 3px;
  text-align: center;
}

/* Utility classes */
#verticaltextSAR {
  writing-mode: bt-rl;
}

:focus-visible {
  outline: none;
}

.boxTopText {
  color: #ffffff;
  font-weight: bold;
  margin-top: -2px;
  padding-bottom: 9px;
}

.boxSpacer {
  height: 5px;
}

.col {
  float: left;
}

.colClear {
  clear: both;
}

.divCol {
  display: inline;
  float: left;
}

.grayImage {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

.pageBody {
  max-width: 2100px;
  margin: auto;
  min-height: calc(100vh - 290px);
}

.home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
  gap: 1rem;
}

.homeCol {
  display: flex;
  flex-flow: column;
  gap: 1rem;
}

.mainTitle {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

.note {
  color: #09f;
}

.noteSM {
  color: #09f;
  font-size: x-small;
}

.note2 {
  position: relative;
  background: #fffdb3;
  padding: 10px;
  width: 400px;
  border-radius: 0.5rem;
  border: 2px solid #ffbb3c;
  overflow-wrap: break-word;
}

.noteSection {
  font-weight: bold;
  padding: 7px;
  margin: 5px 0;
  background: #dddddd;
}

.noteAreaType {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 1rem;
  padding: 15px 0;
}

.noteArea {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-content: flex-start;
  gap: 1rem;
  max-height: 900px;
  max-width: 1800px;
  overflow-y: auto;
  padding: 15px 0;
}

.note2 > .new {
  position: absolute;
  transform: rotate(20deg);
  top: -18px;
  right: -18px;
}

.note2 > .noteButton {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.note2 > .private {
  padding: 5px;
  margin: -12px -10px 5px -10px;
  background: rgb(254, 123, 61);
  background: linear-gradient(
    174deg,
    rgba(254, 123, 61, 1) 1%,
    rgba(255, 187, 60, 1) 55%
  );
}

.note2 > .sub {
  border-radius: 0.5rem;
  margin: 10px -10px -10px -10px;
  padding: 15px 10px 10px 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 1%,
    rgba(255, 255, 255, 0.85) 37%,
    rgba(255, 255, 255, 0.6) 94%
  );
  font-size: 0.9em;
}

.noteTy1 {
  background: rgb(201, 222, 241) !important;
  background: linear-gradient(
    180deg,
    rgba(201, 222, 241, 1) 0%,
    rgba(231, 241, 250, 1) 100%
  ) !important;
  border-color: #5597d2 !important;
}

.noteTy2 {
  background: rgb(221, 221, 221) !important;
  background: linear-gradient(
    180deg,
    rgba(221, 221, 221, 1) 0%,
    rgba(243, 243, 243, 1) 100%
  ) !important;
  border-color: #919191 !important;
}

.tabDivider {
  padding: 12px 16px 12px 16px;
  margin: 16px 0 16px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
  border-radius: 8px;
  font-weight: 600;
  color: #495057;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.tabDivider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #007bff, transparent);
}

/* List styles */
.listUnstyled {
  list-style-type: none;
  margin-block-start: unset;
  margin-block-end: unset;
  padding-inline-start: 0;
}

/* Page bars */
.barConfidential {
  border: 2px solid #ffd69d;
  background: #fff5d7;
  font-style: inherit;
  text-align: center;
  padding: 3px;
  margin-bottom: 2px;
}

.divBar {
  background: #d2eeff;
  border-bottom: 2px solid #0093ff;
  padding: 10px;
  margin: 10px 0;
  font-weight: bold;
}

/* Box styles */
.BOXSaved {
  border: 2px solid #69ff37;
  border-radius: 0.3rem;
  background: #e2fcd8;
  padding: 10px;
  margin-bottom: 5px;
  text-align: center;
}

.BOXNotFound {
  border: 2px solid #f4a733;
  border-radius: 0.3rem;
  background: #fce3be;
  text-align: center;
  padding: 10px;
}

.BOXError {
  border: 2px solid #ff0000;
  background: #ffcccc;
  border-radius: 0.3rem;
  padding: 10px;
}

.BOXDisabled {
  border: 2px solid #dfdfdf;
  border-radius: 0.5rem;
  background: #f3f3f3;
  padding: 10px;
}

.BOXWarn {
  padding: 10px;
  border-radius: 0.3rem;
  border: 2px solid #ff8e00;
  background: #fff1da;
}

.BOXInfo {
  padding: 10px;
  border-radius: 0.3rem;
  border: 2px solid #93c9ff;
  background: #d2e8ff;
}

.BOXClear {
  border-radius: 0.3rem;
  border: 2px solid #dbdbdb;
  padding: 10px;
}

/* Favourites styles */
.favButton {
  border: 2px solid #09f;
  padding: 5px 10px;
  margin-left: 5px;
  cursor: pointer;
  border-radius: 0.25rem;
}

.favButton:hover {
  border: 2px solid #06f;
  background: #d2ebff;
}

.favButton.active {
  border: 2px solid #06f;
  background: #80c6ffa5;
  color: #000;
}

/* GrayBlock styles */
.grayBlock {
  position: relative;
  cursor: pointer;
  background: #f0f0f0;
  padding: 7px;
  width: 180px;
  height: 90px;
  transition: 0.5s ease;
}

.grayBlock:hover {
  background: #e1e1e1;
  transition: 0.5s ease;
}

.grayBlock > .blockSpacedTitle {
  margin: 10px 0;
  font-weight: bold;
}

.grayBoxButtonBL {
  position: absolute;
  bottom: 3px;
  right: 3px;
}

/* Expand Derivative styles */
.expandBlock {
  background: #f0f0f0;
  padding: 5px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: 0.5s ease;
}

.expandBlock:hover {
  background: #e1e1e1;
  transition: 0.5s ease;
}

.expandBlock > div {
  background: #fff;
  margin: 5px -3px -3px -3px;
  padding: 5px;
  display: none;
}

/* Search table styles */
.searchTable {
  border-spacing: 0;
  border-radius: 12px;
  overflow: clip;
  border-collapse: collapse;
}

.searchTable th,
td {
  padding: 7px;
}

.searchTable tbody td:not(:last-child) {
  border-right: 1px solid #eee;
}

.searchTable tbody tr:nth-of-type(even):not(:first-child) {
  border-bottom: 1px solid transparent;
}

.searchTable tbody tr:nth-of-type(odd):not(:first-child) {
  background-color: #f8f9fa;
  border-bottom: 1px solid transparent;
}

.searchTable tbody tr:hover:not(:first-child) {
  background-color: #add8e655;
}

.searchTableTop {
  height: 40px;
  background: linear-gradient(to bottom, #5c7eb0 0%, #40628d 100%);
  color: #ffffff;
}

.searchTableTopSticky {
  height: 40px;
  background: linear-gradient(to bottom, #5c7eb0 0%, #40628d 100%);
  color: #ffffff;
  position: sticky;
  top: -1px;
  z-index: 1; /* ensure it paints above rows */
}

.searchTableBottom {
  height: 28px;
  background: linear-gradient(to bottom, #f5f5f5 0%, #e0e0e0 100%);
  border-top: 1px solid #999999;
  font-size: 0.6rem;
  font-weight: bold;
}

/* Subject report styles */
.reportBox {
  border: 1px solid #666;
  background: #fff;
  padding: 6px;
}

/* Timetable layout classes */
.dayCol {
  display: inline;
  float: left;
  width: 235px;
  height: 880px;
  border: 1px solid #ccc;
  margin-left: -1px;
}

.dayColFull {
  display: inline;
  float: left;
  width: 235px;
  height: 1207px;
  border: 1px solid #ccc;
  margin-left: -1px;
}

.dayName {
  background: #06f;
  color: #fff;
  padding: 3px;
  font-weight: 500;
  text-align: center;
}

.itemTime {
  width: 95px;
  height: 70px;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

.timeCol {
  display: inline;
  float: left;
  width: 95px;
  border: 1px solid #ccc;
}

/* Button styles */
.but {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 0.3rem;
  min-width: 90px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
  color: #000000;
  border: 2px solid #2587d8;
  background: #cae2ff;
}

.but:hover {
  background: #80c6ff;
}

.butSG {
  padding: 6px 14px;
  border-radius: 0.3rem;
  min-width: 90px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
  color: #000000;
  border: 2px solid #b70000;
  background: #ffbcbd;
}

.butSG:hover {
  background: #ff7578;
}

.butYellow {
  padding: 6px 14px;
  border-radius: 0.3rem;
  min-width: 90px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
  color: #000000;
  border: 2px solid #fdc248;
  background: #fff9cc;
}

.butYellow:hover {
  background: #fcf19f;
}

.butDisabled {
  display: inline-block;
  padding: 6px 12px;
  min-width: 90px;
  appearance: none;
  font-size: medium;
  color: #686868;
  background-color: #9b9b9b9d;
  border: 1px solid #9b9b9b;
  border-radius: 0.3rem;
  transition: 0.3s ease;
}

.butGreen {
  padding: 6px 14px;
  border-radius: 0.3rem;
  min-width: 90px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease;
  text-decoration: none;
  color: #000000;
  border: 2px solid #41c73e;
  background: #b3ffb2;
}

.butGreen:hover {
  background: #5aff57;
}

.filterButton {
  display: inline-block;
  width: -moz-fit-content;
  width: fit-content;
  padding: 6px;
  margin: 0 2px;
  text-decoration: none;
  color: #000000;
  border: 2px solid #636363;
  border-radius: 0.3rem;
  background: #cfcfcf;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease;
}

.filterButton:hover {
  background: #b2b2b2;
}

.filterButton.selected {
  border: 2px solid #2587d8 !important;
  background: #80c6ff !important;
}

/* Report headlines */
.headline__report {
  margin: 30px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: fit-content;
  text-align: center;
}

.headline__report > div {
  border: 2px solid #0093ff;
  background: #dcecff;
  color: #40628d;
  flex: 1 1 0;
  min-width: fit-content;
  border-radius: 0.5rem;
  padding: 15px;
}

.headline__report > div > span {
  font-size: large;
}

.subheadline__report {
  border: 2px solid #008000 !important;
  background: #c0ffc0 !important;
  color: #008000 !important;
}

/* Text styles */
.textEllipsis {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.small-label {
  display: inline-block;
  font-size: 0.75rem;
  color: #ffffff;
  background-color: #007bff;
  padding: 3px 6px;
  border-radius: 12px;
  letter-spacing: 1px;
  line-height: 1;
}

.status-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  border-bottom: 1px solid #e5e5e5;
}

.status-item:last-child {
  border-bottom: none;
}

.status-name {
  font-weight: 500;
}

.status-details {
  display: flex;
  align-items: center;
}

.status-text {
  color: #4b5563;
  margin-right: 5px;
}

.status-icon {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.status-time {
  font-size: 12px;
}

/* jQuery styles */
.jqHide {
  display: none;
}

.jqShow {
  display: block;
}

.jqShowFlex {
  display: flex;
}

#tabs:not(.ui-tabs) {
  visibility: hidden;
}

.ui-tooltip {
  border-radius: 0.5rem;
  box-shadow: 0 0 2px darkgrey;
}
