/* ==========================================================================
   AI CHARGE Premium Black & White (Monochrome) Stylesheet - 폰트 및 모달 확대 버전
   ========================================================================== */

:root {
  --font-primary: 'Outfit', 'Noto Sans KR', sans-serif;
  
  /* 클래식 흑백 (Black & White) 테마 변수 */
  --bg-app: #f1f5f9;           /* 밝은 회색 바탕 */
  --bg-sidebar: #000000;       /* 완전 검은색 사이드바 */
  --bg-card: #ffffff;          /* 순백색 카드/모달 */
  --bg-card-hover: #f8fafc;
  
  --border-color: #cbd5e1;     /* 옅은 회색 테두리 */
  --border-focus: #000000;     /* 포커스 시 검은색 */
  
  --text-main: #0f172a;        /* 짙은 검은색 글꼴 */
  --text-muted: #475569;       /* 짙은 그레이 보조 글꼴 */
  --text-dark: #94a3b8;
  
  /* 포인트 컬러 (블랙 앤 그레이 모노톤) */
  --color-primary: #000000;
  --color-primary-hover: #1e293b;
  --color-success: #059669;
  --color-success-bg: rgba(5, 150, 105, 0.08);
  --color-warning: #d97706;
  --color-warning-bg: rgba(217, 119, 6, 0.08);
  --color-danger: #dc2626;
  --color-danger-bg: rgba(220, 38, 38, 0.08);
  --color-info: #2563eb;
  --color-info-bg: rgba(37, 99, 235, 0.08);

  /* 효과 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 3px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  font-size: 15.5px;           /* 본문 폰트 기본 확대 */
}

/* 스크롤바 */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg-app); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* 레이아웃 */
.app-container { display: flex; min-height: 100vh; width: 100%; }


.parsing-footer-urls {
  padding: 14px 20px;
  background-color: #fafafa;
  flex-shrink: 0;
}
.footer-urls-desc {
  font-size: 12.5px;
  color: var(--color-danger);
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;          /* 안내 문구 중앙 정렬 */
}
.footer-urls-row {
  display: flex;
  gap: 16px;
  max-width: 650px;           /* 전체 모달 너비(1200px)의 약 절반 크기로 인풋 가로폭 제한 */
  margin: 0 auto;             /* 가로 중앙 배치 */
}
@media (max-width: 800px) {
  .footer-urls-row {
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
  }
}
.url-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.url-input-group .url-lbl {
  font-size: 13.5px;          /* 하단 다중 URL 라벨 확대 (11.5px -> 13.5px) */
  font-weight: 700;
  white-space: nowrap;
}
.url-input-group input.form-control {
  font-size: 14px;            /* URL 주소 글꼴 확대 */
  padding: 6px 10px;
}

.sidebar {
  width: 230px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
  padding: 24px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 28px 10px;
}

.brand-icon {
  font-size: 28px;
  color: #ffffff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.nav-menu { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15.5px;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
  border-left: 4px solid #ffffff;
  padding-left: 10px;
}

.nav-icon { font-size: 20px; }

.sidebar-footer {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.status-indicator { width: 8px; height: 8px; border-radius: 50%; }
.status-indicator.online {
  background-color: var(--color-success);
  box-shadow: 0 0 6px var(--color-success);
}

.main-content {
  margin-left: 230px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - 230px);
}
 
.top-header {
  height: 68px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}
 
.header-title h1 { font-size: 23px; font-weight: 700; color: #000000; }
.header-title p { font-size: 13.5px; color: var(--text-muted); }
.header-actions { display: flex; align-items: center; gap: 14px; }
 
.quick-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
  background-color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
 
.spinner { color: var(--color-primary); font-size: 16px; }
.spinner.spinning { animation: spin 1.5s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
 
/* 본문 영역 패딩 */
.content-body { padding: 18px 24px; flex: 1; width: 100%; }

.tab-pane { display: none; animation: fadeIn 0.4s ease; width: 100%; }
.tab-pane.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 카드 헤더 및 마진 */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-normal);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header { 
  padding: 10px 20px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  background-color: #fafafa; 
  border-bottom: 1px solid var(--border-color); 
}
.card-header h2 { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: #000000; }
.header-icon { color: var(--color-primary); font-size: 18px; }
.border-bottom { border-bottom: 1px solid var(--border-color); }
.card-body { padding: 12px 20px; }

/* 2열 폼 그리드 */
.project-forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 1100px) {
  .project-forms-grid { grid-template-columns: 1fr; }
}

.form-row {
  display: flex;
  gap: 14px;
  margin-bottom: 2px;
}
.col-6 { flex: 1; }

.form-group { margin-bottom: 8px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.required { color: var(--color-danger); margin-left: 2px; }

.form-control {
  font-family: var(--font-primary);
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--text-main);
  font-size: 14.5px;
  outline: none;
  transition: var(--transition-fast);
}
.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}
textarea.form-control { 
  resize: vertical; 
  height: 42px;
}

/* 토글 스위치 */
.switch-container { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.switch-label { display: inline-flex; align-items: center; cursor: pointer; position: relative; }
.switch-input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  background-color: #cbd5e1;
  border-radius: 34px;
  transition: var(--transition-fast);
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: var(--transition-fast);
}
.switch-input:checked + .switch-slider { background-color: #000000; }
.switch-input:checked + .switch-slider:before { transform: translateX(18px); }

/* 버튼 */
.btn {
  font-family: var(--font-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-primary { background-color: #000000; color: #ffffff; }
.btn-primary:hover { background-color: #222222; transform: translateY(-1px); }
.btn-primary:disabled { background-color: #e2e8f0; color: #94a3b8; cursor: not-allowed; transform: none; }
.btn-secondary { background-color: #475569; color: #fff; }
.btn-secondary:hover { background-color: #334155; transform: translateY(-1px); }
.btn-outline { background-color: transparent; border-color: #cbd5e1; color: var(--text-main); }
.btn-outline:hover { background-color: #f1f5f9; }
.btn-outline:disabled { color: #cbd5e1; border-color: #e2e8f0; cursor: not-allowed; }
.btn-block { display: flex; width: 100%; padding: 10px; }
.btn-icon-text { padding: 6px 12px; font-size: 14px; }
.btn-large { padding: 12px 24px; font-size: 15px; border-radius: var(--radius-md); }

.form-actions-row { display: flex; gap: 10px; margin-top: 10px; }
.form-actions-row .btn { flex: 1; }

/* 필터 검색 바 스타일 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding: 14px 20px;
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-group label {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 3px;
}
.filter-group input, .filter-group select {
  padding: 6px 10px;
  font-size: 13.5px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background-color: #fff;
  min-width: 140px;
  height: 32px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.15s ease;
}
.filter-group input:focus, .filter-group select:focus {
  border-color: var(--color-primary);
}
.filter-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 6px 12px;
  font-size: 13.5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* 데이터 테이블 */
.table-card { min-height: 350px; display: flex; flex-direction: column; }
.table-container { flex: 1; overflow-x: auto; position: relative; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14.5px; }
th { background-color: #f8fafc; padding: 10px 14px; color: #475569; font-weight: 700; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid #e2e8f0; color: var(--text-main); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #f8fafc; }

/* 배지 */
.badge { display: inline-flex; padding: 3px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.badge-info { background-color: #e0f2fe; color: #0369a1; }
.badge-warning { background-color: #fef3c7; color: #b45309; }
.badge-danger { background-color: #fee2e2; color: #b91c1c; }
.badge-success { background-color: #d1fae5; color: #047857; }

.text-pending { color: var(--color-warning) !important; }
.text-completed { color: var(--color-success) !important; }
.text-failed { color: var(--color-danger) !important; }

/* Empty State */
.empty-state { display: none; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; text-align: center; }
.empty-icon { font-size: 38px; color: #cbd5e1; margin-bottom: 10px; }
.empty-state p { font-size: 14px; color: var(--text-muted); }

/* 테이블 제어 */
.server-ctrl-box {
  display: flex;
  align-items: center;
  gap: 8px;
}
.test-link-btn {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 5px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}
.test-link-btn:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.btn-user-db {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 5px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.btn-user-db:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.table-row-selected {
  background-color: #f1f5f9 !important;
}
.table-row-selected td {
  border-bottom-color: #94a3b8;
}

/* 대시보드 2열 레이아웃 */
.dashboard-tables-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 1200px) {
  .dashboard-tables-layout { grid-template-columns: 1fr; }
}

/* 오토메이션 콘솔 */
.automation-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  margin-bottom: 18px;
}
.auto-info-box { display: flex; align-items: center; gap: 14px; }
.auto-info-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.auto-info-box p.description { font-size: 13.5px; color: var(--text-muted); }
.pulse-indicator { width: 10px; height: 10px; border-radius: 50%; background-color: var(--color-success); position: relative; }
.pulse-indicator.active::after {
  content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%;
  background-color: var(--color-success); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

.action-buttons { display: flex; gap: 8px; }
.btn-edit { color: var(--text-main); background: transparent; border: none; font-size: 16px; cursor: pointer; }
.btn-delete { color: var(--color-danger); background: transparent; border: none; font-size: 16px; cursor: pointer; }
.btn-edit:hover, .btn-delete:hover { transform: scale(1.1); }

/* ==========================================================================
   5. 팝업 모달창 (유저 DB 통합 콘솔) 스타일 - 텍스트 확대 반영
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 1050px;
  height: 650px;
  max-width: 95%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.parsing-action-bar {
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;        /* 세로 중앙 정렬 추가 */
  background-color: #ffffff;
  flex-shrink: 0;
  width: 100%;                /* 가로 전체 너비 확보 */
}
.modal-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background-color: #fafafa;
}
.modal-header h2 {
  font-size: 20px;            /* 헤더 타이틀 확대 (17px -> 20px) */
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #000000;
}
.modal-header-icon {
  color: #000000;
  font-size: 24px;            /* 아이콘 확대 */
}
.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 28px;            /* 확대 */
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-body-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  padding: 20px;
  flex: 1;
  overflow: hidden;
}

.modal-left-panel {
  border-right: 1px solid var(--border-color);
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100%;
}

.modal-right-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.section-title {
  font-size: 15.5px;          /* 섹션 타이틀 확대 */
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-desc {
  font-size: 13.5px;          /* 설명문 텍스트 확대 */
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* 유저 DB 모달 내 유저 리스트 테이블 폰트 확대 */
.modal-table-container {
  flex: 1;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
}
.modal-table-container table {
  width: 100%;
  border-collapse: collapse;
}
.modal-table-container th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #fafafa;
  box-shadow: 0 1px 0 var(--border-color);
  font-size: 14.5px;          /* 헤더 폰트 확대 */
  padding: 10px 14px;
}
.modal-table-container td {
  padding: 12px 14px;
  border-bottom: 1px solid #cbd5e1;
  font-size: 14.5px;          /* 본문 폰트 확대 */
}

/* ==========================================================================
   6. 셀프 파싱 및 단어 필터 설정 모달 스타일 (레거시 스크린 매칭) - 텍스트 확대
   ========================================================================== */
.parsing-body-grid {
  display: grid;
  grid-template-columns: 260px 210px 240px 1fr 1fr; /* 그리드 폭 소폭 조율 */
  gap: 14px;
  padding: 16px 20px;
  flex: 1;
  overflow: hidden;
}

.parsing-title {
  font-size: 15px;            /* 파싱 타이틀 확대 (13px -> 15px) */
  font-weight: 700;
  color: #000000;
  margin-bottom: 12px;
  border-bottom: 2px solid #000000;
  padding-bottom: 6px;
  text-align: center;
  background-color: #fafafa;
}

/* 01 문자 붙여넣기 란 폰트 확대 */
#rule-raw-sms-input {
  font-size: 14px !important; /* 12px -> 14px */
}

/* 02 파싱 순서 테이블의 텍스트 확대 및 스크롤 영역 정의 */
.parsing-scroll-container {
  flex: 1;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: #ffffff;
  max-height: 380px;          /* 01 문자 입력 상자의 높이와 일치시켜 조화 확보 */
}
.parsing-scroll-container table {
  width: 100%;
  border-collapse: collapse;
}
.parsing-scroll-container th, .filter-list-box th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #fafafa;
  box-shadow: 0 1px 0 var(--border-color);
  font-size: 13.5px;          /* 헤더 폰트 확대 */
  padding: 8px 10px;
}
.parsing-scroll-container td, .filter-list-box td {
  padding: 8px 10px;
  font-size: 14px;            /* 토큰 및 단어 글꼴 확대 (11.5px -> 14px) */
}

/* 03 셀프 파싱 설정 라벨 및 입력 수치 폰트 확대 */
.form-group-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 6px;
}
.form-group-flex:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.form-group-flex label {
  font-size: 13.5px;          /* 라벨 글꼴 확대 (11.5px -> 13.5px) */
  color: var(--text-main);
  line-height: 1.4;
  text-align: left;
  flex: 1;
  font-weight: 600;
  margin: 0;
}
.rule-num-input {
  width: 70px;
  height: 32px;
  font-size: 14px;            /* 수치 폰트 확대 */
  text-align: center;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #000;
}

.rule-helper-warning {
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  color: #b45309;
  font-size: 13px;            /* 경고문구 확대 */
  padding: 12px;
  margin-top: 10px;
}

.rule-desc-txt {
  font-size: 13px;            /* 설명 텍스트 확대 */
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.url-input-group .url-lbl {
  font-size: 13.5px;          /* 하단 다중 URL 라벨 확대 (11.5px -> 13.5px) */
  font-weight: 700;
}
.url-input-group input.form-control {
  font-size: 14px;            /* URL 주소 글꼴 확대 */
}

/* 사이드바 메뉴 대제목 소제목 */
.nav-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  padding: 18px 18px 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-top: 1px solid #334155;
  margin-top: 8px;
}

/* 하트비트 펄스 및 은행 그리드 신규 디자인 */
.pulse-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.pulse-online {
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 1.6s infinite;
}
.pulse-offline {
  background-color: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red 1.6s infinite;
}
@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.bank-grid-btn {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bank-grid-btn:hover {
  background: #f8fafc;
  border-color: #0f172a;
}
.bank-grid-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* 입출금 장부 페이징 컴포넌트 */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid #cbd5e1;
  background: #f8fafc;
}
.page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s ease;
}
.page-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.page-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}
.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f1f5f9;
}

/* ==========================================================================
   Admin Login Gateway Styles
   ========================================================================== */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.login-brand-icon {
  font-size: 32px;
  color: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}

.login-brand span {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 30px;
}

.login-error-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
}

.login-card form {
  text-align: left;
}

.login-card .input-group {
  margin-bottom: 20px;
}

.login-card .input-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 8px;
  font-weight: 500;
}

.login-card .input-group label i {
  font-size: 16px;
  color: #38bdf8;
}

.login-card .input-group input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.2s ease;
}

.login-card .input-group input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  background: rgba(15, 23, 42, 0.8);
}

.login-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
  transition: all 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.35);
}
