/* app/assets/style.css */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&family=Noto+Serif+KR:wght@400;700&display=swap');

:root {
  /*--bs-body-bg: #d1dceea0;*/
}

html {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans KR', sans-serif;
}

body {
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  overflow-x: hidden;
  height: 100%;
  margin: 0;
  padding: 0;
  /*background-image: linear-gradient(
    to right,
    #8996bf80 20%,
    #8996bf80 80%
  );*/
}

.serif {
  font-family: 'Noto Serif KR', serif !important;
}

.sans {
  font-family: 'Noto Sans KR', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans KR', sans-serif !important;
}

.accordion-button {
  background-color:  #eeeeee !important;
  color: #151515 !important;
  line-height: 1.6;
}
.accordion-button:focus {
  background-color: #eeeeee;
  color: #151515;
  box-shadow: none;
  line-height: 1.6;
}
.accordion-body {
  background-color: #eeeeeedf;
  color: #151515;
  line-height: 1.6;
}

/* Change accordion toggle arrow (chevron) color */
.accordion-button::after {
  filter: invert(0.8);
}

.card-body {
  opacity: 0.9 !important;
}

.opaque-modal-content {
  color: #e0e0e0;
  background-color: #5d6b6d;
  opacity: 1;
}

.opaque-dark {
  color: #e0e0e0;
  background-color: #303030;
  opacity: 1;
}

.dropdown-menu {
  color: #e0e0e0 !important;
  background-color: #b0b0b0;
  opacity: 1;
}

.dropdown-item: disabled {
  color: #e0e0e0;
  opacity: 0.5;
  cursor: not-allowed;
}

.Select-multi-value {
  display: flex;
  align-items: center;
  margin-right: 0.5rem;
}

.Select-multi-value-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  margin-right: 2rem; /* Prevent overlap with the close button */
}

.dropdown-style {
  white-space: nowrap;
}

.btn-outline-dark.outline-dark:hover {
  background-color: black !important;
  color: white;
  border-color: black;
}

.dash-spinner.dash-graph-spinner {
  position: absolute;
  top: 50px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 1000;
}

.vod {
  box-shadow: 5px 5px 7px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #000000b0;
}

.video-wrapper {
  position: relative;
  max-width: 560px;
  width: 100%;
  aspect-ratio: 16/9;
  margin: auto;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  border: none;
}

.Select-menu {
  color: #232323;
  white-space: nowrap;
}

.radio-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.custom-radio {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.custom-radio label {
  display: flex;
  align-items: center;
  padding: 12px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}
.custom-radio input[type="radio"] {
    margin-right: 4px;
    cursor: pointer;
}
.custom-radio label:has(#radio-suneung) {
  background-color: #3d9bb5;
  border: 1px solid #f0f0f0e0;
}
.custom-radio label:has(#radio-grade) {
  background-color: #48ae48;
  border: 1px solid #f0f0f0e0;
}
.custom-radio label:has(#radio-international) {
  background-color: #ec4843;
  border: 1px solid #f0f0f0e0;
}
.custom-radio label:hover {
  opacity: 0.8;
}
.custom-radio input[type="radio"]:checked + label {
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.circle {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid black;
  text-align: center;
  line-height: 16px;
  margin: 3px;
  font-size: 15px;
}

.rectangle {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 1px solid black;
  text-align: center;
  line-height: 20px;
  margin: 3px;
  font-size: 13px;
}

/* KNS individual problem dropdown buttons */
.problem-dropdown-outline .dropdown-toggle {
    color: #212529 !important;
    background-color: transparent !important;
    border-color: #212529 !important;
}

.problem-dropdown-outline .dropdown-toggle:hover,
.problem-dropdown-outline .dropdown-toggle:focus,
.problem-dropdown-outline .dropdown-toggle.show,
.problem-dropdown-outline.show > .dropdown-toggle {
    color: #ffffff !important;
    background-color: #212529 !important;
    border-color: #212529 !important;
}

.problem-dropdown-outline .dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.25) !important;
}


/* Generated Suneung result controls and spacing */
.kns-generation-summary-alert,
.kns-generation-item-alert,
.kns-generation-copy-controls,
.kns-generation-copy-controls .btn {
    font-family: 'Noto Sans KR', sans-serif !important;
}

.kns-generation-summary-alert {
    margin-top: 0;
}

.kns-generation-copy-controls {
    margin: 0.55rem 0 1rem;
}

.kns-generation-copy-controls .btn {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    padding: 0.2rem 0.55rem;
}

.kns-generation-item-alert {
    font-size: 0.9rem;
}

.kns-copy-question-source,
.kns-copy-solution-source {
    display: none !important;
    white-space: pre-wrap;
}

.kns-copy-question,
.kns-copy-solution {
    width: 100%;
    /* Generated exam layouts intentionally use leading and repeated spaces. */
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    tab-size: 4;
}

.kns-copy-question u,
.kns-copy-solution u {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.12em;
}

/* Problem 25: screen as a real table while copy keeps the ASCII source. */
.kns-problem-25-visual {
    width: 100%;
}

.kns-problem-25-title {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.kns-problem-25-table {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
}

.kns-problem-25-table th,
.kns-problem-25-table td {
    text-align: center;
    vertical-align: middle;
    white-space: normal;
}

.kns-problem-25-table th:first-child,
.kns-problem-25-table td:first-child {
    text-align: left;
}

/* -------------------------------------------------------------------------
   Dengle Dash extensions: intentionally shares the LevelUp English visual
   language while keeping the academy-management navigation compact.
   ------------------------------------------------------------------------- */

.dengle-brand-title {
  color: #f4f4f4;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dengle-nav-rail {
  position: fixed;
  top: 0;
  left: 0;
  width: 3rem;
  height: 100%;
  z-index: 900;
  background-color: #191C1FD7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 72px;
  padding-bottom: 38px;
  overflow-y: auto;
  scrollbar-width: none;
}

.dengle-nav-rail::-webkit-scrollbar { display: none; }

.dengle-rail-link {
  width: 2rem;
  min-height: 2rem;
  margin: 0.18rem 0;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 0.25rem;
  color: white !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.dengle-rail-link:hover {
  opacity: 0.78;
  color: white !important;
}

.dengle-main {
  width: 100%;
  min-height: 100vh;
  padding-left: 3rem;
  background: linear-gradient(180deg, rgba(247,248,247,0.94), rgba(238,240,238,0.78));
}

.dengle-kpi {
  border-color: rgba(25,28,31,0.12);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.dengle-upload {
  width: 100%;
  min-height: 74px;
  line-height: 74px;
  border: 1px dashed #8a8f94;
  border-radius: 7px;
  text-align: center;
  background-color: rgba(255,255,255,0.45);
  cursor: pointer;
}

.dengle-prewrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.72;
}

.dengle-radio-list label {
  display: block;
  margin-bottom: 0.45rem;
}

.dengle-radio-list input {
  margin-right: 0.45rem;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner {
  border-radius: 6px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .dengle-nav-rail { width: 2.5rem; }
  .dengle-rail-link { width: 1.8rem; min-height: 1.8rem; font-size: 0.66rem; }
  .dengle-main { padding-left: 2.5rem; }
}
