:root {
  --smart-primary: #136f7a;
  --smart-primary-dark: #0f3f52;
  --smart-accent: #f39c12;
  --smart-surface: #ffffff;
  --smart-bg: #eef3f8;
  --smart-border: #d7e1ea;
  --smart-text: #17324a;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  background: var(--smart-bg);
  color: var(--smart-text);
}

.main-header.navbar {
  border-bottom: 1px solid rgba(19, 111, 122, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.main-sidebar {
  background: linear-gradient(180deg, #153450 0%, #0a1b2a 100%);
}

.brand-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(90deg, rgba(19, 111, 122, 0.3), rgba(19, 111, 122, 0));
}

.brand-link .brand-text {
  font-weight: 600 !important;
}

.brand-image-fallback,
.sidebar-user-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.sidebar-subtext {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.nav-sidebar .nav-link {
  border-radius: 0.65rem;
  margin-bottom: 0.2rem;
}

.nav-sidebar > .nav-item > .nav-link.active,
.nav-sidebar .nav-treeview > .nav-item > .nav-link.active {
  background: linear-gradient(135deg, rgba(19, 111, 122, 0.95), rgba(34, 154, 171, 0.95));
  color: #fff;
  box-shadow: 0 10px 18px rgba(8, 29, 45, 0.18);
}

.nav-sidebar .nav-treeview {
  padding-left: 0.4rem;
}

.content-wrapper {
  background:
    radial-gradient(circle at top right, rgba(19, 111, 122, 0.08), transparent 28%),
    linear-gradient(180deg, #f6f9fc 0%, #edf3f8 100%);
}

.main-footer {
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(19, 111, 122, 0.1);
  color: #4d6275;
}

.page-header {
  margin: 0 0 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--smart-border);
}

.page-header h1,
.page-header h2,
.page-header h3 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  color: #17324a;
}

.px-content {
  padding-bottom: 1rem;
}

.panel,
.box,
.jumbotron {
  background: var(--smart-surface);
  border: 1px solid var(--smart-border);
  border-radius: 0.95rem;
  box-shadow: 0 12px 30px rgba(20, 44, 67, 0.08);
}

.panel {
  margin-bottom: 1rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--smart-border);
}

.panel-title {
  margin: 0;
  color: var(--smart-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.panel-heading-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panel-body {
  padding: 1.25rem;
}

.box {
  overflow: hidden;
}

.box-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

.box-cell {
  display: block;
}

.bg-primary {
  background: linear-gradient(160deg, var(--smart-primary) 0%, #1d93a4 100%) !important;
}

.bg-primary .table,
.bg-primary .table th,
.bg-primary .table td,
.bg-primary .list-group-item,
.bg-primary .panel-title,
.bg-primary h4,
.bg-primary p,
.bg-primary span,
.bg-primary li {
  color: #fff;
}

.bg-primary .table th,
.bg-primary .table td,
.bg-primary .list-group-item {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: transparent;
}

.label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
}

.label-info {
  background: #17a2b8;
}

.label-danger {
  background: #dc3545;
}

.label-warning {
  background: #f39c12;
}

.label-success {
  background: #28a745;
}

.jumbotron {
  padding: 2.25rem;
}

.table {
  background: transparent;
}

.table thead th {
  border-bottom-width: 1px;
  color: #28445c;
  font-weight: 700;
}

.pull-right,
.pull-xs-right {
  float: right !important;
}

.pull-left,
.pull-xs-left {
  float: left !important;
}

.text-xs-center {
  text-align: center !important;
}

.valign-top {
  vertical-align: top !important;
}

.line-height-1 {
  line-height: 1 !important;
}

.font-size-11 {
  font-size: 0.6875rem !important;
}

.font-size-12 {
  font-size: 0.75rem !important;
}

.font-size-13 {
  font-size: 0.8125rem !important;
}

.font-size-15 {
  font-size: 0.9375rem !important;
}

.font-size-20 {
  font-size: 1.25rem !important;
}

.p-a-0 {
  padding: 0 !important;
}

.p-a-1 {
  padding: 0.25rem !important;
}

.p-a-3 {
  padding: 1rem !important;
}

.p-a-4 {
  padding: 1.5rem !important;
}

.p-x-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.p-x-4 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.p-y-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.p-b-0 {
  padding-bottom: 0 !important;
}

.m-a-0 {
  margin: 0 !important;
}

.m-t-0 {
  margin-top: 0 !important;
}

.m-t-1 {
  margin-top: 0.25rem !important;
}

.m-t-2 {
  margin-top: 0.5rem !important;
}

.m-t-3 {
  margin-top: 1rem !important;
}

.m-b-0 {
  margin-bottom: 0 !important;
}

.m-b-4 {
  margin-bottom: 1.5rem !important;
}

.m-x-0 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.m-y-1 {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}

.b-a-0 {
  border: 0 !important;
}

.b-x-0 {
  border-left: 0 !important;
  border-right: 0 !important;
}

.b-t-0 {
  border-top: 0 !important;
}

.b-b-0 {
  border-bottom: 0 !important;
}

.darken {
  background-color: rgba(0, 0, 0, 0.04) !important;
}

.visible-md,
.visible-lg,
.visible-xl {
  display: none !important;
}

@media (min-width: 768px) {
  .text-md-left {
    text-align: left !important;
  }

  .visible-md {
    display: block !important;
  }
}

@media (min-width: 992px) {
  .visible-lg {
    display: block !important;
  }
}

@media (min-width: 1200px) {
  .visible-xl {
    display: block !important;
  }
}

@media (max-width: 767.98px) {
  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-heading-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .page-header h1,
  .page-header h2,
  .page-header h3 {
    font-size: 1.4rem;
  }
}