/**
 * 스마트글라스 모니터링 - UI/UX 글로벌 표준
 * 접근성(WCAG), 시각적 위계, 일관된 디자인 시스템
 */

/* 스크린 리더용 숨김 텍스트 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 페이지 헤더 버튼 */
.page-header .btn {
  min-height: 40px;
  padding: 8px 20px;
  font-weight: 500;
  font-size: 14px;
  border-radius: 8px;
  transition: background-color 0.2s, transform 0.05s;
}

.page-header .btn:focus-visible {
  outline: 2px solid #6c757d;
  outline-offset: 2px;
}

.page-header .btn:hover {
  transform: translateY(-1px);
}

.page-header .btn:active {
  transform: translateY(0);
}

.page-header .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* 페이지 설명 */
.page-desc {
  margin: 0 0 24px 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

/* 요약 카드 그리드 - 관리자 표준과 동일 */
.monitoring-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* 요약 카드 공통 */
.monitoring-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.monitoring-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.monitoring-card-label {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 500;
}

.monitoring-card-value {
  font-size: 28px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
}

/* 카드 상태별 색상 (WCAG AA 대비 확보) */
.monitoring-card-active {
  background: #ecfdf5;
  border-color: #6ee7b7;
}

.monitoring-card-active .monitoring-card-value {
  color: #047857;
}

.monitoring-card-inactive {
  background: #fffbeb;
  border-color: #fcd34d;
}

.monitoring-card-inactive .monitoring-card-value {
  color: #b45309;
}

.monitoring-card-unused {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.monitoring-card-unused .monitoring-card-value {
  color: #475569;
}

/* 테이블 컨테이너 */
.monitoring-table-section {
  margin-top: 0;
}

/* 테이블 메시지 상태 (로딩/빈/에러) */
.mobilities-table .loading,
.mobilities-table .table-message {
  padding: 48px 20px;
  font-size: 14px;
  color: #64748b;
  text-align: center;
}

.mobilities-table .table-empty {
  color: #64748b;
}

.mobilities-table .table-error {
  color: #dc2626;
}

/* 상태 배지 */
.monitoring-status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.monitoring-status-active {
  background: #d1fae5;
  color: #047857;
}

.monitoring-status-inactive {
  background: #fef3c7;
  color: #b45309;
}

.monitoring-status-unused {
  background: #e2e8f0;
  color: #475569;
}

/* 반응형 */
@media (max-width: 768px) {
  .monitoring-summary-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .monitoring-card-value {
    font-size: 24px;
  }
}
