@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Pretendard', sans-serif;
}

body {
  color: #111111;
  background: #ffffff;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

.pageTitle {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.commonButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #111111;
  border-radius: 6px;
  background: #111111;
  color: #ffffff;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.commonButtonSize1 {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.commonButtonSize2 {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.commonButtonSize3 {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}

.commonButtonSize4 {
  min-height: 50px;
  padding: 0 22px;
  font-size: 15px;
}

.dataGridContainer {
  overflow: hidden;
  border: 1px solid #e7e7e7;
  background: #ffffff;
}

.dataGrid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.dataGrid thead th {
  padding: 10px 12px;
  border-bottom: 1px solid #e7e7e7;
  background: #f6f6f6;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  line-height: 1.4;
  color: #444444;
  white-space: nowrap;
}

.dataGrid tbody td {
  padding: 10px 12px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  line-height: 1.5;
  vertical-align: top;
  color: #333333;
}

.dataGrid tbody tr:first-child td {
  border-top: 0;
}

.dataGrid tbody tr:hover {
  background: #fcfcfc;
}

.dataGridThumbnailCell {
  width: 96px;
}

.dataGridThumbnail {
  display: block;
  width: 56px;
  height: 56px;
  border: 1px solid #e7e7e7;
  object-fit: cover;
  background: #f3f3f3;
}

.dataGridThumbnailInlineGroup {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.dataGridThumbnailItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dataGridThumbnailLabel {
  font-size: 11px;
  font-weight: 600;
  color: #666666;
}

.dataGridTitle {
  font-weight: 600;
  color: #111111;
  line-height: 1.4;
}

.dataGridTextDeleted {
  text-decoration: line-through;
  color: #888888;
}

.dataGridDescription {
  color: #666666;
  word-break: break-word;
  line-height: 1.5;
}

.dataGridMeta {
  margin-top: 2px;
  font-size: 12px;
  color: #666666;
}

.dataGridEmpty {
  padding: 28px 20px;
  text-align: center;
  color: #777777;
  background: #ffffff;
}

.dataGridActionCell {
  width: 180px;
}

.dataGridActionGroup {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dataGridCompact th,
.dataGridCompact td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.dataGridCodeText {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #111111;
  word-break: break-all;
}

.dataGridNumberText {
  font-variant-numeric: tabular-nums;
}

.paginationContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.paginationPageList {
  display: flex;
  align-items: center;
  gap: 6px;
}

.paginationButton,
.paginationPage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  color: #333333;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.paginationPage.isActive {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.paginationButton.isDisabled {
  pointer-events: none;
  opacity: 0.4;
}

.adminFooter {
  margin-top: auto;
  border-top: 1px solid #ececec;
  background: #fafafa;
}

.adminFooterInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
}

.adminFooterCopy,
.adminFooterMeta {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #666666;
}

.adminFooterMeta {
  font-weight: 600;
  color: #888888;
}

.adminHome {
  padding: 28px 24px 40px;
}

.adminHomeHero {
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid #ececec;
  background:
    radial-gradient(circle at top right, rgba(219, 234, 254, 0.72), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.adminHomeEyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
}

.adminHomeTitle {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.adminHomeDescription {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #555555;
}

.adminHomeGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.adminHomeCard {
  padding: 18px 16px;
  border: 1px solid #ececec;
  background: #ffffff;
}

.adminHomeCardTitle {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.adminHomeCardDescription {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #666666;
}

.settingKeyValueRow {
  display: grid;
  grid-template-columns: minmax(0, 180px) 24px minmax(0, 1fr) minmax(0, 180px);
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.settingKeyValueInput {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  background: #f8f8f8;
}

.settingKeyValueColon {
  text-align: center;
  font-weight: 700;
  color: #666666;
}

.imageModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.82);
}

.imageModal.isOpen {
  display: flex;
}

.imageModalInner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.imageModalClose {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}

.imageModalImage {
  display: block;
  max-width: min(1200px, 100%);
  max-height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.commonModal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.commonModal.isOpen {
  display: flex;
}

.commonModalDialog {
  position: relative;
  width: min(720px, 100%);
  min-height: 240px;
  padding: 24px;
  background: #ffffff;
}

.commonModalClose {
  position: absolute;
  top: 24px;
  right: 24px;
}

.commonModalContent {
  padding-top: 48px;
}

.formContainer {
  max-width: 720px;
  padding: 24px;
  border: 1px solid #e7e7e7;
  background: #ffffff;
}

.formRow {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.formRow + .formRow {
  margin-top: 20px;
}

.formLabel {
  display: block;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #111111;
}

.formField {
  min-width: 0;
}

.formContainer input[type='text'],
.formContainer input[type='password'],
.formContainer input[type='file'],
.formContainer select,
.formContainer textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  background: #f8f8f8;
}

.formContainer textarea {
  min-height: 120px;
  resize: vertical;
}

.formButtonRow {
  margin-top: 24px;
  padding-left: 176px;
}

.formButtonRow button {
  padding: 10px 16px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
}

.authPage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at top left, rgba(219, 234, 254, 0.85), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.authCard {
  width: min(100%, 720px);
  padding: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
}

.authHeader {
  margin-bottom: 24px;
}

.authEyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
}

.authTitle {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  color: #0f172a;
}

.authDescription {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

.authErrorMessage {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fff7f7;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 600;
}

.authFormContainer {
  max-width: none;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #ffffff;
}

.authFormButtonRow button {
  min-width: 120px;
}

.pageWithSubmenu {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  padding: 24px;
}

.pageSubmenu {
  border-right: 1px solid #e7e7e7;
  padding-right: 20px;
}

.pageSubmenuTitle {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

.pageSubmenuList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pageSubmenuItem a,
.pageSubmenuItem span {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: #555555;
}

.pageSubmenuItem.isActive a,
.pageSubmenuItem.isActive span {
  color: #111111;
  font-weight: 600;
}

.pageContent {
  min-width: 0;
}

.pageContent h1 {
  margin-top: 0;
}

header {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 24px;
  border-bottom: 1px solid #e7e7e7;
}

header nav:first-of-type {
  flex: 0 0 auto;
}

header nav:first-of-type a {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.menuContainer {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.menuList {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menuItem {
  position: relative;
  font-size: 14px;
  color: #555555;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.menuItem > a,
.menuItem > span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.menuItem:hover {
  color: #111111;
}

.menuItem:active {
  opacity: 0.7;
}

.submenuList {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  padding-top: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.menuItemWithSubmenu:hover .submenuList,
.menuItemWithSubmenu:focus-within .submenuList {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.submenuListInner {
  padding: 8px 0;
  background: #ffffff;
  border: 1px solid #e7e7e7;
}

.submenuListInner > a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: #555555;
  white-space: nowrap;
}

.submenuListInner > a:hover {
  color: #111111;
  background: #f7f7f7;
}

.actionButtonContainer {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.actionButtonContainer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.actionButtonContainer a:last-child {
  border-color: #fecaca;
  background: #fff7f7;
  color: #991b1b;
}

.actionButtonContainer a:hover,
header nav:first-of-type a:hover {
  opacity: 1;
}

.actionButtonContainer a:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.actionButtonContainer a:last-child:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}
