:root {
  /* 순백색 라이트 모드 컬러 팔레트 */
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-muted: #f1f5f9;
  --border-color: #e2e8f0;
  --border-active: #2563eb;
  --border-subtle: #f1f5f9;
  
  --primary-color: #2563eb;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --sun-red: #dc2626;
  --sat-blue: #2563eb;
  --emerald: #059669;
  --amber: #d97706;
  --purple: #7c3aed;
  
  --text-bold: #000000;
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #64748b;
  --text-light: #ffffff;
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow-x: hidden;
  box-sizing: border-box;
  position: relative;
}

.glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-xs);
}

/* 상단 헤더 */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  font-size: 22px;
  background: var(--primary-light);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--primary-border);
}

.user-meta h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-bold);
  letter-spacing: -0.3px;
}

.header-sub {
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 600;
}

.icon-btn {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

/* 상단 5단 탭 네비게이션 */
.nav-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 4px 6px;
  background: #ffffff;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
  font-weight: 700;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 24px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 3px;
}

.tab-icon {
  font-size: 17px;
}

.tab-badge {
  position: absolute;
  top: 4px;
  right: 12px;
  background: var(--sun-red);
  color: #fff;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 10px;
  font-weight: 800;
}

/* 메인 바디 */
.main-body {
  flex: 1;
  padding: 14px 16px 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-color: var(--bg-app);
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.tab-content {
  display: none;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* 캘린더 컨트롤 */
.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.view-switch-group {
  display: flex;
  background: var(--bg-muted);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.view-btn.active {
  background: #ffffff;
  color: var(--primary-color);
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

.cal-nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-nav-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.cal-nav-btn:hover {
  background: var(--bg-muted);
}

.today-btn {
  width: auto;
  padding: 0 9px;
  font-size: 11px;
}

.cal-current-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-bold);
  min-width: 65px;
  text-align: center;
}

/* 월간 그리드 */
.cal-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.col-sun {
  color: var(--sun-red) !important;
}

.col-sat {
  color: var(--sat-blue) !important;
}

.cal-grid-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 6px;
}

.cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 5px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-color);
  cursor: pointer;
  position: relative;
  min-height: 48px;
  transition: all 0.15s ease;
}

.cal-day-cell:hover {
  background: var(--bg-card-hover);
  border-color: #cbd5e1;
}

.cal-day-cell.today {
  border: 2px solid var(--primary-color);
  background: var(--primary-light);
}

.cal-day-cell.today .day-num {
  color: var(--primary-color);
  font-weight: 800;
}

.cal-day-cell.selected {
  border-color: var(--primary-color);
  background: #dbeafe;
  box-shadow: 0 0 0 1px var(--primary-color);
}

.cal-day-cell.other-month {
  opacity: 0.35;
  background: #fafafa;
}

.day-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.holiday-name {
  font-size: 9px;
  color: var(--sun-red);
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  font-weight: 600;
}

.event-dot-bar {
  display: flex;
  gap: 2px;
  margin-top: auto;
  margin-bottom: 3px;
}

.event-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
}

/* 선택된 날짜 일정 목록 */
.selected-day-agenda {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agenda-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agenda-head h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-bold);
}

.agenda-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-item-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.schedule-item-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.schedule-item-card * {
  text-shadow: none;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 주간 (Week View) 요일별 한줄 목록 & 상세 스타일 */
.week-days-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
  margin-bottom: 14px;
}

.week-day-row {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: var(--shadow-xs);
}

.week-day-row:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.week-day-row.selected {
  background: #eff6ff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.week-day-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 4px 6px;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-bold);
  margin-right: 10px;
  flex-shrink: 0;
  gap: 4px;
}

.week-day-badge.sun {
  color: var(--sun-red);
}

.week-day-badge.sat {
  color: var(--sat-blue);
}

.week-day-row.is-today .week-day-badge {
  background: var(--primary-color);
  color: #ffffff;
}

.week-day-today-tag {
  font-size: 10px;
  background: #ef4444;
  color: #fff;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 800;
  line-height: 1.2;
}

.week-day-summary {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.week-day-summary.has-event {
  color: var(--text-bold);
  font-weight: 700;
}

.week-day-summary.no-event {
  color: var(--text-muted);
  font-size: 12px;
}

.week-day-count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: #dbeafe;
  color: #1d4ed8;
  margin-left: 6px;
  flex-shrink: 0;
}

.week-day-arrow {
  margin-left: 6px;
  color: var(--text-muted);
  font-size: 12px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.week-day-row.selected .week-day-arrow {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.selected-week-day-agenda {
  border-top: 2px solid var(--primary-color);
  background: #ffffff;
  animation: fadeIn 0.2s ease-out;
}

.day-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-bold);
  margin-bottom: 8px;
}

.day-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--emerald);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-main);
}

.day-task-item.completed {
  opacity: 0.6;
  text-decoration: line-through;
  background: #f1f5f9;
}

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

/* 할 일 체크리스트 */
.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.filter-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.pill-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.pill-btn:hover {
  background: var(--bg-muted);
}

.pill-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.tasks-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-xs);
}

.task-card:hover {
  background: var(--bg-card-hover);
  border-color: #cbd5e1;
}

.task-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #94a3b8;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
}

.task-checkbox:hover {
  border-color: var(--primary-color);
}

.task-checkbox.checked {
  background: var(--emerald);
  border-color: var(--emerald);
}

.task-checkbox.checked::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.task-info {
  flex: 1;
  min-width: 0;
}

.task-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bold);
  word-break: break-word;
}

.task-meta {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 4px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.priority-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 800;
}

.priority-high {
  background: #fee2e2;
  color: var(--sun-red);
}

.priority-normal {
  background: #e0e7ff;
  color: #3730a3;
}

.priority-low {
  background: #f1f5f9;
  color: var(--text-sub);
}

.archive-section {
  margin-top: 10px;
  padding: 0;
  overflow: hidden;
}

.archive-toggle-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.archive-content {
  padding: 0 14px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.archived-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* 검색창 공통 스타일 */
.search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 0 10px 0 34px;
  transition: all 0.2s;
  cursor: text;
}

.search-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
  user-select: none;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px 0;
  color: var(--text-bold);
  font-size: 13px;
  outline: none;
  font-weight: 500;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.clear-search-btn {
  background: #e2e8f0;
  border: none;
  color: var(--text-sub);
  font-size: 12px;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}

.search-info-bar {
  font-size: 12px;
  color: #1d4ed8;
  font-weight: 700;
  padding: 2px 4px;
}

/* 메모장 */
.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.note-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-xs);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.note-card:hover {
  background: var(--bg-card-hover);
  border-color: #cbd5e1;
}

.note-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-bold);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.note-card-snippet {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.note-card-date {
  font-size: 10px;
  color: var(--text-muted);
  align-self: flex-end;
}

/* 파일 보관함 (Files) */
.files-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  box-shadow: var(--shadow-xs);
}

.file-card:hover {
  background: var(--bg-card-hover);
  border-color: #cbd5e1;
}

.file-icon-box {
  width: 42px;
  height: 42px;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  color: var(--primary-color);
}

.file-main-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.file-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-bold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-sub);
  flex-wrap: wrap;
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.file-download-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 6px 11px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 회의록 */
.category-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cat-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.cat-chip:hover {
  background: var(--bg-muted);
}

.cat-chip.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.minutes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.minute-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s;
  box-shadow: var(--shadow-xs);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.minute-card:hover {
  background: var(--bg-card-hover);
  border-color: #cbd5e1;
}

/* 모달 시트 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--border-color);
  border-bottom: none;
  padding: 20px 20px 30px 20px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: slideUp 0.25s ease-out;
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  box-sizing: border-box;
  min-width: 0;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.tag-badge {
  font-size: 10px;
  padding: 2px 8px;
  background: var(--primary-color);
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
}

.modal-content-view {
  font-size: 13px;
  line-height: 1.6;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  gap: 8px;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  box-sizing: border-box;
}

.modal-raw-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 6px;
  min-width: 0;
  box-sizing: border-box;
}

.raw-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 4px;
}

.raw-text-content {
  font-size: 13px;
  color: var(--text-bold);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.modal-foot-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-danger {
  background: var(--sun-red);
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-sub);
}

.btn-outline:hover {
  background: var(--bg-muted);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
  margin-top: 10px;
}

.form-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-bold);
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-grid label {
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 4px;
  display: block;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.loading-state,
.empty-state {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.toast-wrap {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
}

.toast-msg {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
