/*
  btwob 전용 스타일. 테마 원본(wwwroot/theme)은 수정하지 않습니다.
  ui-* 클래스는 테마와 무관합니다. 테마를 바꿔도 그대로 둡니다.
*/

/* 가로 배치 (Ui/Grid.razor) */
.ui-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(var(--ui-cols, 3), minmax(0, 1fr));
  margin-bottom: 1.25rem;
}

@media (max-width: 767.98px) {
  .ui-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 표 칸 (Ui/DataTable.razor) */
.ui-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ui-strong {
  font-weight: 700;
}

.ui-danger {
  color: #d9214e;
  font-weight: 700;
}

.ui-muted {
  opacity: 0.6;
}

/* 겉틀: 어두운 사이드바 위 로고 글자색 고정 */
.app-sidebar-logo a,
.app-sidebar-logo a:hover {
  color: #ffffff !important;
}

/* 겉틀: 로고 마크 (사이드바 펼침·접힘, 모바일 헤더 공용) */
.ui-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1b84ff 0%, #7239ea 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
}

/* 보기 전환 링크 (페이지 상단) */
.ui-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.ui-toolbar a.ui-active {
  font-weight: 700;
  text-decoration: underline;
}

#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: #fff3cd;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 0.6rem;
}

/* 추이 그래프 (Ui/TrendChart.razor) */
.ui-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.ui-chart-legend {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.ui-chart-swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: -1px;
}

.ui-chart-swatch-bar,
.ui-chart-bar {
  background: #f59e0b;
  fill: #f59e0b;
}

.ui-chart-bar:hover {
  fill: #d97706;
}

.ui-chart-swatch-line {
  background: #3b82f6;
}

.ui-chart-line {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.ui-chart-dot {
  fill: #ffffff;
  stroke: #3b82f6;
  stroke-width: 2;
}

.ui-chart-grid {
  stroke: #e5e7eb;
  stroke-width: 1;
}

.ui-chart-axis {
  fill: #8a8f9c;
  font-size: 11px;
}

/* 기간 선택 (Ui/DateRangeForm.razor) */
.ui-daterange {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.ui-daterange-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ui-daterange-form input[type="date"] {
  width: 10.5rem;
}

.ui-daterange-quick {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.ui-daterange-quick a.ui-active {
  font-weight: 700;
  text-decoration: underline;
}

/* 구역 사이 간격 */
.ui-block {
  margin-bottom: 1.25rem;
}

/* 폼 (Ui/PostForm, TextField 등) */
.ui-form {
  max-width: 720px;
}

.ui-form-wide {
  max-width: none;
}

.ui-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ui-field-help {
  font-size: 0.85em;
  opacity: 0.7;
  margin-top: 0.25rem;
}

.ui-required::after {
  content: " *";
  color: #d9214e;
}

/* 로그인·가입 화면 겉틀 (Layout/Shells/Demo1AuthShell.razor) */
.ui-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
}

.ui-auth-box {
  width: 100%;
  max-width: 760px;
}

.ui-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}
