@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;700&display=swap");
:root {
  --bg-body1: #17202e;
  --bg-body2: #010614;
  --bg-mobile: #0f172a;
  --bg-mobile2: #172f69;

  --bg-box: #151718;
  --bg-card: #ffffff0e;
  --bg-item: #35353a4d;
  --bg-focus: #3f3f447e;
  --bg-datepicker: #0c0e0c;

  --bg-gray: #5f5f5f;
  --bg-blue: #006983;
  --bg-red: #af5656;
  --bg-yellow: #a16207;
  --bg-green: #187a4e;
  --bg-dark-green: #003c46;
  --bg-dark-blue: #020080;
  --bg-dark-yellow: #472300;
  --bg-dark-red: #800000;

  --glass-blue: #0095c770;

  --bd-bottom: #ffffff1a;
  --bd-item: #3f3f46;
  --bd-focus: #3f89ff;

  --color: #dfdfdf;
  --color-sub: #b2c6e6;
  --color-gray: #92a0b8;
  --color-muted: #64748b6b;
  --color-blue: #ace1ff;
  --color-red: #ff6661;
  --color-yellow: #f8e6c8;
  --color-green: #78e7af;

  --xs: 0.775rem;
  --sm: 0.8125rem;
  --md: 0.875rem;
  --lg: 1rem;
  --xl: 1.1rem;
  --xxl: 1.5rem;

  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-text: 0 2px 4px rgba(0, 0, 0, 0.9);
  --shadow-focus: 0 0 0 2px #9fc4ff27;

  --hover: rgba(255, 255, 255, 0.05);
  --active: rgba(0, 105, 131, 0.4);
  --accent: #d1d34d;

  --op-min: rgba(255, 255, 255, 0.05);
  --op-1: rgba(255, 255, 255, 0.1);
  --op-2: rgba(255, 255, 255, 0.2);

  --bg-radial: radial-gradient(circle at top, var(--bg-body1) 0%, var(--bg-body2) 100%);
  --bg-linear: linear-gradient(180deg, #17202e 0%, #000000 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
}
/* ---------------------------------------------------------------------------------------------------- */
body {
  font-family: "Noto Sans KR", sans-serif !important;
  background: var(--bg-radial) !important;
  font-size: var(--md) !important;
  font-weight: 400 !important;
  color: var(--color) !important;
  line-height: 1.5 !important;
  width: 100vw !important;
  height: 100vh !important;
}

.box {
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  background-color: transparent;
  border: 1px solid var(--bd-bottom);
}

.header {
  width: 100%;
  background-color: var(--op-1);
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: start;
  align-items: center;
  border-bottom: 1px solid var(--bd-bottom);
  box-shadow: var(--shadow-sm);
}

.sidebar {
  width: 13rem !important;
  max-width: 13rem !important;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  top: 0;
  left: 0;
  background: var(--bg-linear);
  color: var(--color);
  transition: transform 0.3s ease-in-out;
  overflow: hidden;
}
.side-menu-box {
  flex: 1;
  width: 100% !important;
  display: flex;
  flex-direction: column;
  justify-items: flex-start;
  align-items: center;
  padding: 1rem 0.5rem !important;
  border-top: 1px solid var(--bd-bottom) !important;
  gap: 0.75rem;
}
.side-menu,
.link-menu {
  width: 100% !important;
  display: flex;
  justify-items: flex-start;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--color);
  font-size: var(--md);
  border-radius: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.side-menu:hover {
  color: white !important;
  background-color: var(--op-1);
  transition: all 0.1s ease;
}
.side-menu.active {
  background-color: var(--bg-blue);
  text-shadow: var(--shadow-text) !important;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(149, 213, 255, 0.22);
  transform: translateZ(0) !important;
  color: white !important;
}
.side-menu.active i {
  color: var(--color-blue);
}
.link-menu:hover {
  color: white !important;
  transition: all 0.1s ease;
}

.side-menu.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: default;
}
.page-container {
  display: flex;
  justify-items: flex-start;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
}

.footer {
  text-align: center;
  color: var(--color-gray);
  font-size: 0.75rem;
  padding: 0.5rem 0;
}

iframe {
  width: 100%;
  min-height: 100%;
  border: none;
  overflow: hidden;
  background: var(--bg-radial) !important;
}

/* font ---------------------------------------------------------------------------------------------------- */
.fs-xs {
  font-size: var(--xs) !important;
  line-height: 1rem;
}
.fs-sm {
  font-size: var(--sm) !important;
  line-height: 1.25rem;
}
.fs {
  font-size: var(--md) !important;
  line-height: 1.5rem;
}
.fs-lg {
  font-size: var(--lg) !important;
  line-height: 1.5rem;
}
.fs-xl {
  font-size: var(--xl) !important;
  line-height: 1.75rem;
}

.fs-xxl {
  font-size: var(--xxl) !important;
  line-height: 1rem;
}
.fw-500 {
  font-weight: 500;
}
.fw-300 {
  font-weight: 300;
}

.fc {
  color: var(--color) !important;
}
.fc-white {
  color: white !important;
}
.fc-gray {
  color: var(--color-gray) !important;
}
.fc-blue {
  color: var(--color-blue) !important;
}
.fc-red {
  color: var(--color-red) !important;
}
.fc-yellow {
  color: var(--color-yellow) !important;
}
.fc-green {
  color: var(--color-green) !important;
}
.fc-black {
  color: black !important;
}
.fc-sub {
  color: var(--color-sub) !important;
}
.fc-muted {
  color: var(--color-muted) !important;
}

/* Container & Spacing ------------------------------------------------------------------------------------------------------------*/
.p-0 {
  padding: 0;
}
.p-1 {
  padding: 0.5rem;
}
.p-2 {
  padding: 1rem;
}
.p-3 {
  padding: 1.5rem;
}

.px-0 {
  padding-left: 0;
  padding-right: 0;
}
.px-1 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-2 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-3 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}
.py-1 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-3 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.pt-1 {
  padding-top: 0.5rem;
}
.pt-2 {
  padding-top: 1rem;
}
.pt-3 {
  padding-top: 1.5rem;
}
.pb-1 {
  padding-bottom: 0.5rem;
}
.pb-2 {
  padding-bottom: 1rem;
}
.pb-3 {
  padding-bottom: 1.5rem;
}

.m-0 {
  margin: 0;
}
.m-1 {
  margin: 0.5rem;
}
.m-2 {
  margin: 1rem;
}
.m-3 {
  margin: 1.5rem;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mx-1 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.mx-2 {
  margin-left: 1rem;
  margin-right: 1rem;
}
.mx-3 {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.mr-1 {
  margin-right: 0.25rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-3 {
  margin-right: 1rem;
}

.ml-1 {
  margin-left: 0.25rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.ml-3 {
  margin-left: 1rem;
}

.bs {
  box-shadow: var(--shadow) !important;
}
.bs-sm {
  box-shadow: var(--shadow-sm) !important;
}
.bs-hover:hover {
  box-shadow: var(--shadow-hover) !important;
}
.bs-focus:focus {
  box-shadow: var(--shadow-focus) !important;
}
.ts {
  text-shadow: var(--shadow) !important;
}
.ts-sm {
  text-shadow: var(--shadow-sm) !important;
}
.ts-hover:hover {
  text-shadow: var(--shadow-hover) !important;
}

/* Overflow */
.of-hidden {
  overflow: hidden;
}
.of-y-auto {
  overflow-y: auto;
}

.ta-c {
  text-align: center !important;
}
.ta-r {
  text-align: right !important;
}
.ta-l {
  text-align: left !important;
}

.uppercase {
  text-transform: uppercase;
}

.truncate {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/*  Backgrounds */
.bg-dark {
  background-color: var(--bg-dark) !important;
}
.bg-mobile {
  background-color: var(--bg-mobile2) !important;
}
.bg-box {
  background-color: var(--bg-box) !important;
}

.bg-item {
  background-color: var(--bg-item) !important;
}
.bg-gray {
  background-color: var(--bg-gray) !important;
}
.bg-blue {
  background-color: var(--bg-blue) !important;
}
.bg-red {
  background-color: var(--bg-red) !important;
}
.bg-yellow {
  background-color: var(--bg-yellow) !important;
}
.bg-green {
  background-color: var(--bg-green) !important;
}
.bg-white {
  background-color: white !important;
}
.bg-dark-blue {
  background-color: var(--bg-dark-blue) !important;
}
.bg-dark-green {
  background-color: var(--bg-dark-green) !important;
}
.bg-dark-yellow {
  background-color: var(--bg-dark-yellow) !important;
}
.bg-dark-red {
  background-color: var(--bg-dark-red) !important;
}
.bg-none,
.bg-trans {
  background-color: transparent !important;
}

.op-1 {
  background-color: rgba(255, 255, 255, 0.1);
}
.op-2 {
  background-color: rgba(255, 255, 255, 0.2);
}
.op-min {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Borders & Rounded */
.bd {
  border: 1px solid var(--bd-bottom) !important;
}
.bd-item {
  border: 1px solid var(--bd-item) !important;
}
.bd-white {
  border: 1px solid white !important;
}
.bd-none {
  border: none !important;
}
.bd-b {
  border-bottom: 1px solid var(--bd-bottom) !important;
}
.bd-t {
  border-top: 1px solid var(--bd-bottom) !important;
}
.bd-r {
  border-right: 1px solid var(--bd-bottom) !important;
}
.bd-l {
  border-left: 1px solid var(--bd-bottom) !important;
}
.bd-0 {
  border-width: 0 !important;
}
.bd-2px {
  border-width: 2px !important;
}

/* Rounded Corners */
.rd-sm {
  border-radius: 0.25rem !important;
}
.rd-item {
  border-radius: 0.5rem !important;
}
.rd-box {
  border-radius: 1rem !important;
}
.rd-circle {
  border-radius: 50% !important;
}

.rd-item-top {
  border-radius: 0.5rem 0.5rem 0 0 !important;
}
.rd-item-bottom {
  border-radius: 0 0 0.5rem 0.5rem !important;
}
.rd-box-top {
  border-radius: 1rem 1rem 0 0 !important;
}
.rd-box-bottom {
  border-radius: 0 0 1rem 1rem !important;
}

.rd-0 {
  border-radius: 0 !important;
}

/* Interactivity (Hover & Transition) */
.cs-p {
  cursor: pointer !important;
}
.cs-d {
  cursor: default !important;
}
.cs-m {
  cursor: move !important;
}

/* ----------------------------------------------------------------------------------------- */

a {
  text-decoration: none;
  color: inherit;
  color: var(--color);
  font-size: var(--md) !important;
  width: 100%;
}

img {
  width: 100%;
  height: 100%;
  object-position: top;
  object-fit: cover;
}

/* 1. Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="number"],
select,
textarea {
  display: block;
  width: 100%;
  color: var(--color);
  padding: 0.5rem;
  font-size: var(--md);
  font-weight: 400;
  line-height: 1.25rem;
  background-color: var(--bg-item);
  border: 1px solid var(--bd-item);
  border-radius: 0.5rem;
  font-family: "Noto Sans KR", sans-serif;
  resize: none;
  box-shadow: var(--shadow-sm);
}

textarea {
  line-height: 1.4rem;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M4.47 6.53a.75.75 0 0 1 1.06 0L8 9l2.47-2.47a.75.75 0 1 1 1.06 1.06L8.53 10.59a.75.75 0 0 1-1.06 0L4.47 7.59a.75.75 0 0 1 0-1.06Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 16px 16px;
  padding-right: 1.5rem;
  cursor: pointer;
}

select option {
  background-color: var(--bg-body1);
  color: var(--color);
}

input:not(:read-only):not(:disabled):focus,
select:not(:disabled):focus,
textarea:not(:read-only):not(:disabled):focus {
  color: var(--color) !important;
  border-color: var(--bd-focus) !important;
  background-color: var(--bg-focus) !important;
  box-shadow: var(--shadow-focus) !important;
}

input[type="text"].datepicker {
  background-image: url(/img/calendar.svg);
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 16px 16px;
  cursor: pointer;
}

input[type="text"].search {
  padding-left: 2rem;
  width: 10rem !important;
  background-image: url(/img/search.png);
  background-repeat: no-repeat;
  background-position: left 0.5rem center;
  background-size: 16px 16px;
}

input[type="text"].search.trans {
  background-color: transparent !important;
  border: none !important;
}

input[type="text"].search.trans:focus {
  border-color: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

input[type="text"].edit,
select.edit {
  border: none !important;
  border-radius: 0% !important;
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
  vertical-align: middle !important;
  font-size: var(--sm) !important;
}

select.edit {
  padding-right: 0.2rem !important;
  text-align: center !important;
}

input[type="text"].edit:focus,
select.edit:focus {
  border: none !important;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: var(--color-gray);
}

::-webkit-input-placeholder {
  color: var(--color-gray);
  opacity: 1;
}

input[type="text"]:focus::placeholder {
  color: transparent;
}

input[type="time"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.05em;
  color-scheme: dark;
  padding: 0.4rem 0.3rem 0.4rem 1rem;
}

input[type="time"]:focus,
input[type="time"]:required:valid {
  color: var(--color);
}

input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0);
  width: 17px; /* 아이콘 너비 조절 */
  height: 17px; /* 아이콘 높이 조절 */
  cursor: pointer;
}

input:-webkit-autofill,
input:autofill {
  -webkit-text-fill-color: var(--color) !important; /* 글자색 */
  box-shadow: 0 0 0 1000px var(--bg-item) inset !important; /* 배경색 */
  -webkit-box-shadow: 0 0 0 1000px var(--bg-item) inset !important;
  transition: background-color 5000s ease-in-out 0s; /* 배경색 변경 애니메이션 지연 */
}

/* --------------------------------------------------------------------------------------------------------------- */
label {
  vertical-align: middle;
  align-items: center;
  white-space: nowrap;
  line-height: 1.25rem;
}

.input-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.125rem;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 0.5rem;
}

.input-box label {
  font-size: var(--sm);
  color: var(--color-sub);
  align-self: flex-start;
  padding-left: 0.5rem;
  text-shadow: var(--shadow-text) !important;
  white-space: nowrap;
}
/*---------------------------------------------------------------------------------------------------------  */
.input-box.inline {
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
}
.input-box.inline label {
  width: 30% !important;
  color: var(--color-sub);
  padding: 0.5rem 0 0.5rem 0.5rem;
  font-size: var(--md) !important;
  background-color: var(--bg-item);
  border: 1px solid var(--bd-item) !important;
  border-right: none !important;
  border-radius: 0.5rem 0 0 0.5rem !important;
  text-align: left;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm) !important;
  white-space: nowrap;
}
.input-box.inline input,
.input-box.inline select {
  width: 70% !important;
  border-left: none !important;
  border-radius: 0 0.5rem 0.5rem 0 !important;
  /* clip-path: inset(-1rem -1rem -1rem 0); */
}

.input-box.inline input:not(:read-only):not(:disabled):focus,
.input-box.inline select:not(:disabled):focus {
  border-color: var(--bd-focus) !important;
  background-color: var(--bg-focus) !important;
  box-shadow: none !important;
}

.input-box.inline:has(input:not(:read-only):not(:disabled):focus, select:not(:disabled):focus) label {
  border-color: var(--bd-focus) !important;
  background-color: var(--bg-focus) !important;
  box-shadow: none !important;
}
.input-box.inline.blank {
  height: 2.5rem !important;
  pointer-events: none;
}
/*----------------------------------------------------------------------------------------------------------------- */
.input-box.textarea {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
}

.input-box.textarea label {
  width: 100% !important;
  color: var(--color-sub);
  padding: 0.5rem 0 0 0.5rem;
  font-size: var(--md) !important;
  background-color: var(--bg-item);
  border: 1px solid var(--bd-item) !important;
  border-bottom: none !important;
  border-radius: 0.5rem 0.5rem 0 0 !important;
  align-self: flex-start;
  text-align: left;
}
.input-box.textarea textarea {
  width: 100% !important;
  border-top: none !important;
  border-radius: 0 0 0.5rem 0.5rem !important;
  /* clip-path: inset(0 -1rem -1rem -1rem); */
}
.input-box.textarea textarea:not(:read-only):not(:disabled):focus {
  border-color: var(--bd-focus) !important;
  background-color: var(--bg-focus) !important;
  box-shadow: none !important;
}

.input-box.textarea:has(textarea:not(:read-only):not(:disabled):focus) label {
  border-color: var(--bd-focus) !important;
  background-color: var(--bg-focus) !important;
  box-shadow: none !important;
}
:is(.input-box.trans, .input-box.inline.trans, .input-box.textarea.trans) :is(label, input, select, textarea) {
  background-color: transparent !important;
}

:is(.input-box.trans, .input-box.inline.trans, .input-box.textarea.trans)
  :is(input:not(:read-only):not(:disabled):focus, select:not(:disabled):focus, textarea:not(:read-only):not(:disabled):focus) {
  background: var(--bg-body2) !important;
}

/* --------------------------------------------------------------------------------------------------------------- */
.input-box-float {
  position: relative;
  width: 100%;
  margin-top: 15px;
}
.input-box-float .label-float {
  position: absolute;
  left: 12px;
  top: 50%;
  padding: 0 5px;
  transform: translateY(-50%);
  background-color: var(--bg-item) !important;
  color: var(--color-gray);
  transition: all 0.2s ease-out;
  pointer-events: none;
  z-index: 10;
}
.input-box-float input {
  padding-top: 0.75rem !important;
  padding-bottom: 0.25rem !important;
  background-color: var(--bg-item) !important;
}
.input-box-float input:focus ~ .label-float,
.input-box-float input:not(:placeholder-shown) ~ .label-float {
  top: 0;
  transform: translateY(-50%) scale(0.9);
  font-size: 0.8rem;
  color: var(--color-blue);
  font-weight: 350;
  background-color: var(--bg-item) !important;
}

input:disabled,
select:disabled,
textarea:disabled {
  pointer-events: none;
  opacity: 0.8;
  cursor: default;
}
/* 2. Buttons ---------------------------------------------------------------------------------------------------*/
button {
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  padding: 0.375rem 1.125rem;
  border: 1px solid var(--bd-bottom) !important;
  border-radius: 0.375rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-shadow: var(--shadow-text) !important;
  box-shadow: var(--shadow) !important;
  white-space: nowrap;
}
button:hover {
  color: white;
  filter: brightness(1.15);
  box-shadow: var(--shadow-hover);
  transition: all 0.1s ease;
}

button:active {
  transform: translateY(1px);
}

button.mobile {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 400;
}

button.sm {
  padding: 0.375rem 0.725rem !important;
  font-size: var(--sm) !important;
  font-weight: 350 !important;
}

.btn-blue {
  background-color: var(--bg-blue);
  color: white;
}
.btn-green {
  background-color: var(--bg-green);
  color: white;
}
.btn-yellow {
  background-color: var(--bg-yellow);
  color: white;
}
.btn-gray {
  background-color: var(--bg-gray);
  color: white;
}
.btn-red {
  background-color: var(--bg-red);
  color: white;
}

/* 3. Cards -----------------------------------------------------------------------------------*/
.card {
  color: var(--color);
  padding: 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--bd-bottom);
  border-radius: 1rem;
  box-shadow: var(--shadow) !important;
  overflow: hidden;
  gap: 0.5rem;
  width: 100%;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--lg);
  font-weight: 500 !important;
  border-bottom: 1px solid var(--bd-bottom);
  padding-bottom: 0.5rem;
  width: 100%;
}

.card-date {
  font-size: var(--md);
  color: var(--color-sub);
}
.card-title {
  color: var(--color-blue);
  font-size: var(--xl) !important;
  font-weight: 500 !important;
}
.card-content textarea {
  width: 100% !important;
  height: 14rem !important;
  border: none !important;
  font-size: var(--lg);
  color: var(--color);
  padding: 0.25rem 0.5rem !important;
  background-color: var(--op-min) !important;
  resize: none;
  overflow: hidden;
  line-height: 1.5rem !important;
  box-shadow: var(--shadow) !important;
}

.label-sm {
  display: block;
  font-size: var(--sm) !important;
  font-weight: 400;
  color: white;
  background-color: transparent;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--bd-item);
  border-radius: 0.5rem;
  width: fit-content;
  min-width: fit-content;
  box-shadow: var(--shadow-sm);
}

.label-sm.xs {
  font-size: var(--xs) !important;
  font-weight: 350 !important;
  padding: 0.125em 0.5rem !important;
}

.label-sm.red {
  color: var(--color-red);
  background-color: rgba(175, 86, 86, 0.2);
}

.label-sm.blue {
  color: var(--color-blue);
  background-color: rgba(124, 207, 255, 0.3);
}
.label-sm.green {
  color: var(--color-green);
  background-color: rgba(128, 255, 192, 0.3);
}
.label-sm.yellow {
  color: var(--color-yellow);
  background-color: rgba(253, 196, 109, 0.3);
}

.label-sm.gray {
  color: var(--color-gray) !important;
  border-color: var(--bg-gray) !important;
}

/* -------------------------------------------------------------------------------------------- */
.menu-box {
  display: flex;
  justify-items: center;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--color);
  font-size: var(--md) !important;
  background-color: var(--bg-gray);
  border: var(--bd-item);
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  text-shadow: var(--shadow-text) !important;
  transition: all 0.2s;
  cursor: pointer;
}
.menu-box:hover {
  filter: brightness(1.15);
  box-shadow: var(--shadow-hover);
  transition: all 0.2s ease;
}

.menu-box:active {
  transform: scale(0.98);
}

.menu-box.active {
  color: var(--white);
  background-color: var(--bg-green);
}
/* -------------------------------- */
.menu-box.trans {
  color: var(--color-sub);
  background-color: transparent !important;
  box-shadow: none !important;
  border: 1px solid var(--color-gray) !important;
}
.menu-box.trans:hover {
  color: white;
  border: 1px solid var(--color-sub) !important;
  transition: all 0.2s ease;
}
.menu-box.trans.active {
  background-color: rgba(64, 255, 57, 0.15) !important;
  color: var(--color-green) !important ;
  border: 1px solid var(--color-green) !important;
}
/* -------------------------------- */
.menu-box.shadow {
  color: var(--color-sub);
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.menu-box.shadow:hover {
  color: white;
  filter: brightness(1.15);
  box-shadow: var(--shadow-hover) !important;
  transition: all 0.2s ease;
}
.menu-box.shadow.active {
  color: var(--color-blue);
  font-weight: 600;
}
/* ------------------------------------- */
.tab-box {
  display: flex;
  justify-items: center;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem 0.5rem;
  color: var(--color);
  font-size: var(--md);
  background-color: var(--op-1);
  border: var(--bd-item);
  border-bottom: none !important;
  border-radius: 0.5rem 0.5rem 0 0;
  text-shadow: var(--shadow-text) !important;
  transition: all 0.2s;
  cursor: pointer;
}
.tab-box:hover {
  color: white;
  background-color: var(--op-2);
  transition: all 0.1s ease;
}

.tab-box.active {
  color: white;
  background-color: var(--bg-green);
}

.tab-line {
  display: block;
  height: 4px;
  background-color: var(--bg-green);
  width: 100%;
  border-radius: 0;
  padding: 0;
  box-shadow: var(--shadow-sm);
}

/* icon ---------------------------------------------------------------------------------------------- */
.icon-rd {
  display: flex !important;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color);
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.icon-rd.sm {
  width: 1.5rem !important;
  height: 1.5rem !important;
  border-width: 1px !important;
  font-size: 0.775em !important;
}

.icon-rd img {
  width: 100% !important;
  height: 100% !important;
  object-position: top center;
  object-fit: cover;
}

.icon-rd p {
  margin: 0;
  padding: 0;
  font-size: var(--lg);
  line-height: 1;
  color: inherit;
  width: fit-content;
  text-align: center;
  vertical-align: middle;
}

.icon-rd.sm p {
  margin: 0;
  padding: 0;
  font-size: var(--sm);
  line-height: 0.8;
  color: var(--color);
  width: fit-content;
  text-align: center;
  vertical-align: middle;
}

.icon-sq {
  display: flex !important;
  overflow: hidden;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: var(--shadow-sm);
}

.icon-sq img {
  width: 100% !important;
  height: 100% !important;
  object-position: center;
  object-fit: contain;
}

.icon-sq p {
  margin: 0;
  padding: 0;
  font-size: var(--xl);
  line-height: 1;
  color: inherit;
  width: fit-content;
}

.icon-sq.sm {
  width: 2rem !important;
  height: 2rem !important;
  border-width: 1px !important;
  font-size: 1.125em !important;
}

.icon-sq.sm > i {
  transform: translateY(0.1em);
}

.icon-lg {
  width: 3rem !important;
  height: 3rem !important;
}

/* //----------------------------------------------//----------------------------------------------//---------------------------------------------- */

/* 4. Tables */
table.default {
  width: 100%;
  height: 100%;
  text-align: left;
  border-spacing: 0px;
  border-style: none;
  border-collapse: collapse;
  table-layout: auto;
}
table.default thead {
  display: block;
  background-color: var(--op-1);
  color: white;
  overflow-y: scroll;
}

table.default thead::-webkit-scrollbar {
  background: transparent;
}
table.default thead::-webkit-scrollbar-thumb {
  background: transparent;
}

table.default tbody {
  display: block;
  height: calc(100% - 2.5rem); /* 헤더 높이 제외 */
  overflow-y: auto overlay;
}

table.default thead tr,
table.default tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

table.default tbody tr {
  border-bottom: 1px solid var(--bd-bottom);
  transition: background-color 0.15s ease-in-out;
}

table.default tbody tr:hover td {
  background-color: var(--hover);
  cursor: pointer;
  color: white;
}

table.default tbody tr.active td {
  background-color: var(--active) !important;
  color: white;
  font-weight: 500 !important;
}
/* 
table.default tbody tr:last-child {
  border-bottom: none !important;
} */

table.default th,
table.default td {
  padding: 0.725rem 0.25rem;
  text-align: center;
  vertical-align: middle;
  align-items: center;
  width: fit-content;
  min-width: fit-content;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: var(--sm) !important;
  font-family: "Noto Sans KR", sans-serif !important;
  color: var(--color);
}

table.default th:hover {
  cursor: pointer;
}

/* 5. Lists (UL/OL) */

ul {
  display: flex;
  flex-direction: column;
  height: 100%;
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow-y: auto overlay;
  gap: 0;
}

ul.list-disc {
  list-style-type: disc;
  padding-left: 1.25rem;
}
ul.list-decimal {
  list-style-type: decimal;
  padding-left: 1.25rem;
}
ul.list-none {
  list-style-type: none;
  padding-left: 0;
}
ul li {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid var(--bd-bottom);
}

ul li:hover {
  background-color: var(--hover);
  color: var(--white);
  cursor: pointer;
}
ul li.active {
  background-color: var(--active);
  color: var(--white);
}

ul li:last-child {
  border-bottom: none;
}

/* Display----------------------------------------------------------------------------------------------- */
.flex {
  display: flex;
  justify-items: flex-start;
  justify-content: flex-start;
  align-content: flex-start;
  align-items: flex-start;
}
.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
  align-items: start;
  grid-auto-rows: min-content;
  width: 100%;
  gap: 0.5rem;
}

.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.hidden {
  display: none !important;
}

/* Position */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.sticky {
  position: sticky;
  top: 0;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.top-0 {
  top: 0;
}
.left-0 {
  left: 0;
}
.bottom-0 {
  bottom: 0;
}
.right-0 {
  right: 0;
}
.z-0 {
  z-index: 0;
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}

/* Sizing ------------------------------------------------------------------------------------------------------------*/
.w-100 {
  width: 100% !important;
}
.w-80 {
  width: 80% !important;
}
.w-75 {
  width: 75% !important;
}
.w-70 {
  width: 70% !important;
}
.w-66 {
  width: 66% !important;
}

.w-65 {
  width: 65% !important;
}

.w-60 {
  width: 60% !important;
}
.w-50 {
  width: 50% !important;
}
.w-40 {
  width: 40% !important;
}
.w-33 {
  width: 33% !important;
}
.w-30 {
  width: 30% !important;
}
.w-25 {
  width: 25% !important;
}

.w-20 {
  width: 20% !important;
}

.vw-100 {
  width: 100vw !important;
}

.min-w-0 {
  min-width: 0 !important;
}

.min-w-100 {
  min-width: 100% !important;
}

.min-w-33 {
  min-width: 33% !important;
}

.min-w-50 {
  min-width: 50% !important;
}

.min-w-100 {
  min-width: 100% !important;
}

.max-w-33 {
  max-width: 33% !important;
}

.max-w-50 {
  max-width: 50% !important;
}
.max-w-100 {
  max-width: 100% !important;
}
.m-w-100 {
  max-width: 100% !important;
  min-width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.h-50 {
  height: 50% !important;
}

.min-h-0 {
  min-height: 0 !important;
}
.min-h-100 {
  min-height: 100% !important;
}
.max-h-100 {
  max-height: 100% !important;
}

.vh-100 {
  height: 100vh !important;
}

/* Flex & Grid Layout ---------------------------------------------------------------------------------------------*/
.flex-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-items: flex-start;
}

.flex-1 {
  flex: 1 !important;
}
.items-center {
  align-items: center !important;
}
.items-start {
  align-items: flex-start !important;
}
.justify-between {
  justify-content: space-between !important;
}
.justify-center {
  justify-content: center !important;
}
.justify-end {
  justify-content: flex-end !important;
}
.justify-start {
  justify-content: flex-start !important;
}
.gap-0 {
  gap: 0rem !important;
}
.gap-1 {
  gap: 0.5rem !important;
}
.gap-2 {
  gap: 1rem !important;
}
.gap-3 {
  gap: 1.5rem !important;
}
/* Grid Columns (2-20rem)/ default grid-16 */
.col-2 {
  grid-template-columns: repeat(2, 1fr) !important;
}
.col-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}
.col-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}
.col-5 {
  grid-template-columns: repeat(5, 1fr) !important;
}

.fill-16 {
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)) !important;
}
.fill-12 {
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)) !important;
}
.fit-12 {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)) !important;
}
.fill-9 {
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)) !important;
}
.fit-9 {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)) !important;
}
.fill-6 {
  grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)) !important;
}
.fit-6 {
  grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr)) !important;
}
.fill-4 {
  grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr)) !important;
}
.fit-4 {
  grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr)) !important;
}
.fit-100 {
  grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)) !important;
}
/* --------------------------------------------------------------------------------------------------------------- */
button.w-fix {
  width: 7rem !important;
}

/* Transitions ---------------------------------------------------------------------------------------------------*/
.transition {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
/* ============================================================================   */

@supports (overflow-y: overlay) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.5);
    border-radius: 6px;
    border: 3px solid transparent;
    background-clip: content-box;
  }
  ::-webkit-scrollbar-track {
    background-color: transparent;
  }
}

/* * =============================
 * Animation Utilities
 * ============================= 
 */

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes slide-left {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes spin-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@supports not ((backdrop-filter: blur(5px)) or (-webkit-backdrop-filter: blur(5px))) {
}

.ripple {
  position: relative;
  overflow: hidden;
}

.floating {
  animation: float 2s ease-in-out infinite;
}

.slide-l {
  animation: slide-left 0.3s ease-out forwards;
}

.slide-r {
  animation: slide-right 0.3s ease-out forwards;
}

.spin {
  position: absolute;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.644);
  pointer-events: auto; /* 오버레이가 클릭을 차단하도록 */
}
.spinner {
  width: 48px;
  height: 48px;
  border: 6px solid var(--color-gray, #ffffff);
  border-top: 6px solid var(--color-green, #3ef044);
  border-radius: 50%;
  animation: spin-rotate 1s linear infinite;
}

/* context Menu ---------------------------------------------------------------------------------------------------- */

.contextmenu-box {
  position: fixed;
  background: #3d3d41;
  border: 1px solid var(--border-item);
  border-radius: 4px;
  box-shadow: var(--shadow);
  z-index: 50;
  min-width: 150px;
  overflow: hidden;
}
.contextmenu-box .contextmenu {
  width: 100%;
  display: block;
  padding: 8px 16px;
  cursor: pointer;
}

.contextmenu-box .contextmenu:hover {
  background-color: var(--hover);
  color: white;
}
/* ========================================================================================= */
/* Modal System */
/* ========================================================================================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex; /* Alpine x-show toggles this with inline display:none */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  /* REMOVED: opacity: 0; visibility: hidden; - Alpine handles this via transition classes now */
}

/* Modal Content Box */
.modal-box {
  background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 420px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-box.sm {
  width: 300px;
}

.modal-box.login {
  max-width: 380px;
  padding: 40px 32px 32px 32px;
}

/* Modal Icons */
.modal-icon-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-icon-circle i {
  font-size: 40px;
}
.modal-icon-circle.red {
  background: rgba(244, 67, 54, 0.2);
}
.modal-icon-circle.red i {
  color: #ff5252;
}
.modal-icon-circle.blue {
  background: rgba(33, 150, 243, 0.2);
}
.modal-icon-circle.blue i {
  color: #42a5f5;
}

/* Modal Typography */
.modal-title {
  margin: 0 0 15px 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
}
.modal-title.lg {
  font-size: 18px;
  margin-bottom: 20px;
}

.modal-text {
  margin-bottom: 25px;
  color: #cccccc;
  font-size: 13px;
  line-height: 1.5;
}

/* Modal Buttons */
.modal-btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-btn {
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-btn.full {
  width: 100%;
  padding: 12px 0;
  font-size: 15px;
}

.modal-btn-cancel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}
.modal-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-btn-confirm-red {
  border: none;
  background: linear-gradient(135deg, #ff5252 0%, #f44336 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}
.modal-btn-confirm-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.6);
}

.modal-btn-confirm-blue {
  border: none;
  background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}
.modal-btn-confirm-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}

/* Modal Inputs */
.modal-input {
  width: 100%;
  padding: 12px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}
.modal-input.mb-sm {
  margin-bottom: 12px;
}
.modal-input.mb-0 {
  margin-bottom: 0;
}
.modal-input:focus {
  border-color: #42a5f5;
  background: rgba(255, 255, 255, 0.1);
}

/* Alpine Transition Utilities */
.duration-200 {
  transition-duration: 200ms;
}
.duration-300 {
  transition-duration: 300ms;
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.ease-in {
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.opacity-0 {
  opacity: 0;
}
.opacity-100 {
  opacity: 1;
}
.scale-90 {
  transform: scale(0.9);
}
.scale-100 {
  transform: scale(1);
}
