/* AICS FONT: Naver Barun Gothic / NanumBarunGothic preferred */
:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #6b7280;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --green: #16a34a;
  --orange: #f97316;
  --red: #dc2626;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "NanumBarunGothic", "Nanum Barun Gothic", "Naver Barun Gothic", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.aics-shell {
  min-height: 100vh;
  display: flex;
}

.aics-sidebar {
  width: 260px;
  background: #101827;
  color: #fff;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b82f6, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: #a9b4c7;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.side-nav a {
  padding: 12px 13px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
}

.side-nav a:hover,
.side-nav a.active {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.side-note {
  margin-top: 28px;
  padding: 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #dbeafe;
}

.side-note b {
  font-size: 13px;
  color: #fff;
}

.aics-main {
  flex: 1;
  min-width: 0;
  padding: 28px;
}

.hero {
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
  color: #fff;
  border-radius: 26px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: stretch;
  box-shadow: var(--shadow);
}

.eyebrow {
  font-size: 13px;
  color: #bfdbfe;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -1px;
}

.hero p {
  margin: 0;
  max-width: 760px;
  color: #dbeafe;
  line-height: 1.65;
  font-size: 15px;
}

.hero-card {
  min-width: 250px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card-label {
  font-size: 12px;
  color: #bfdbfe;
  font-weight: 700;
}

.hero-card-title {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 900;
}

.hero-card-desc {
  margin-top: 8px;
  color: #dbeafe;
  font-size: 13px;
}

.status-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.status-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.status-card.good {
  border-top: 5px solid var(--green);
}

.status-card.warn {
  border-top: 5px solid var(--orange);
}

.status-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

.status-value {
  margin-top: 8px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.status-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 18px;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel.wide {
  min-width: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.menu-card {
  min-height: 112px;
  padding: 17px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.menu-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  background: #eff6ff;
}

.menu-card b {
  font-size: 16px;
}

.menu-card span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.menu-card.disabled {
  opacity: 0.6;
  cursor: default;
}

.menu-card.disabled:hover {
  transform: none;
  border-color: var(--line);
  background: #f8fafc;
}

.todo-list {
  margin: 0;
  padding-left: 21px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.todo-list li {
  padding-left: 4px;
}

.todo-list b {
  display: block;
  font-size: 15px;
}

.todo-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.api-table-wrap {
  overflow-x: auto;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.api-table th,
.api-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 11px;
  text-align: left;
  white-space: nowrap;
}

.api-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.ready {
  background: #dcfce7;
  color: #166534;
}

.badge.wait {
  background: #ffedd5;
  color: #9a3412;
}

.small-link {
  display: inline-flex;
  padding: 9px 12px;
  background: #eff6ff;
  color: var(--blue-dark);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.footer {
  color: var(--muted);
  padding: 22px 4px 4px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
}

@media (max-width: 1200px) {
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .aics-shell {
    display: block;
  }

  .aics-sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .hero {
    flex-direction: column;
  }

  .hero-card {
    min-width: 0;
  }

  .status-grid,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .aics-main {
    padding: 18px;
  }
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.principle-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 17px;
}

.principle-card b {
  display: block;
  font-size: 15px;
  margin-bottom: 9px;
}

.principle-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1200px) {
  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .principle-grid {
    grid-template-columns: 1fr;
  }
}
