:root {
  --primary: #4CAF50;
  --primary-dark: #388E3C;
  --accent: #2196F3;
  --danger: #e74c3c;
  --warning: #FF9800;
  --bg: #f0f2f5;
  --card: #ffffff;
  --text: #1a1a1a;
  --text2: #666666;
  --border: #e4e4e4;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 14px;
  --present: #4CAF50;
  --absent: #e74c3c;
  --halfday: #FF9800;
  --holiday: #9C27B0;
  --leave: #2196F3;
  --note: #607D8B;
  --header-h: 56px;
  --nav-h: 62px;
}

[data-theme="dark"] {
  --bg: #0f0f1a;
  --card: #1a1a2e;
  --text: #e8e8e8;
  --text2: #999999;
  --border: #2a2a44;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
}

/* ===== HEADER ===== */
.app-header {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 480px;
  height: var(--header-h);
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.header-left { display: flex; align-items: center; gap: 8px; }
.header-left i { font-size: 20px; }
.header-left h1 { font-size: 17px; font-weight: 700; }
.icon-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.2); }

/* ===== BACKUP INDICATOR ===== */
.backup-indicator {
  position: absolute;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  cursor: default;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.3s;
}
.bi-ok { color: #a5d6a7; }
.bi-syncing { color: #fff; animation: pulse 1s infinite; }
.bi-pending { color: #FFD54F; }
.bi-retry { color: #FF8A65; animation: pulse 2s infinite; }
.bi-offline { color: rgba(255,255,255,0.4); }
.bi-none { color: rgba(255,255,255,0.3); }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: var(--nav-h);
  background: var(--card);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--border);
  z-index: 100;
}
.nav-btn {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  border-radius: 12px;
  transition: all 0.2s;
}
.nav-btn i { font-size: 22px; transition: transform 0.2s; }
.nav-btn.active { color: var(--primary); }
.nav-btn.active i { transform: scale(1.15); }

/* ===== CONTENT ===== */
.content {
  padding: calc(var(--header-h) + 10px) 12px calc(var(--nav-h) + 10px);
  min-height: 100vh;
}

.view { display: none; }
.view.active { display: block; animation: fadeUp 0.25s ease; }

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

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.view-header h2 { font-size: 22px; font-weight: 800; }

.add-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(76,175,80,0.3);
}
.add-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ===== FOLDER LIST ===== */
.folder-list { display: flex; flex-direction: column; gap: 10px; }

.folder-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.folder-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.folder-card:active { transform: scale(0.98); }

.folder-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  flex-shrink: 0;
}

.folder-info { flex: 1; }
.folder-info .name { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.folder-info .meta { font-size: 12px; color: var(--text2); }

.folder-actions { display: flex; gap: 2px; }
.folder-actions button {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}
.folder-actions .edit-btn:hover { color: var(--accent); }
.folder-actions .del-btn:hover { color: var(--danger); }

/* ===== SUBJECT LIST ===== */
.subject-list { display: flex; flex-direction: column; gap: 10px; }

.subject-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.subject-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.subject-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.subject-card:active { transform: scale(0.98); }

.subject-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.subject-info { flex: 1; min-width: 0; }
.subject-info .name { font-weight: 700; font-size: 15px; }
.subject-info .teacher { font-size: 12px; color: var(--text2); margin-top: 1px; }
.subject-info .pct-bar { margin-top: 6px; }
.pct-bar-track { width: 100%; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.pct-bar-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; }
.pct-bar-label { font-size: 11px; color: var(--text2); margin-top: 2px; }

.subject-actions { display: flex; gap: 2px; flex-shrink: 0; }
.subject-actions button {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}
.subject-actions .edit-btn:hover { color: var(--accent); }
.subject-actions .del-btn:hover { color: var(--danger); }

/* ===== CALENDAR VIEW ===== */
.cal-month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  background: var(--card);
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cal-month-nav button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 10px;
  transition: background 0.2s;
}
.cal-month-nav button:hover { background: var(--bg); }
.cal-month-nav span { font-weight: 800; font-size: 16px; }

.calendar-container {
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 4px;
}
.cal-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  padding: 6px 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  transition: all 0.15s;
}
.cal-day:hover { background: var(--border); }
.cal-day:active { transform: scale(0.9); }
.cal-day.empty { visibility: hidden; pointer-events: none; }
.cal-day.today { font-weight: 900; outline: 2px solid var(--primary); outline-offset: -2px; }
.cal-day.present { background: var(--present); color: white; }
.cal-day.absent { background: var(--absent); color: white; }
.cal-day.halfday { background: var(--halfday); color: white; }
.cal-day.holiday { background: var(--holiday); color: white; }
.cal-day.leave { background: var(--leave); color: white; }
.cal-day.note { background: var(--note); color: white; }
.cal-day .day-note-dot {
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  justify-content: center;
}
.legend-item { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text2); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.legend-dot.present { background: var(--present); }
.legend-dot.absent { background: var(--absent); }
.legend-dot.halfday { background: var(--halfday); }
.legend-dot.holiday { background: var(--holiday); }
.legend-dot.leave { background: var(--leave); }
.legend-dot.note { background: var(--note); }

.month-stats, .overall-stats-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.month-stats h4, .overall-stats-box h4 { font-size: 14px; margin-bottom: 10px; color: var(--text2); }

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.stat-row:last-child { border-bottom: none; }
.stat-row span:last-child { font-weight: 700; }

.cal-actions { margin-top: 8px; }
.action-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(33,150,243,0.3);
}
.action-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ===== DAY MARK MODAL ===== */
.day-mark-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.day-mark-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.15s;
}
.day-mark-btn i { font-size: 24px; }
.day-mark-btn:hover { transform: translateY(-2px); }
.day-mark-btn:active { transform: scale(0.95); }
.day-mark-btn.present:hover, .day-mark-btn.present.sel { background: var(--present); color: white; border-color: var(--present); }
.day-mark-btn.absent:hover, .day-mark-btn.absent.sel { background: var(--absent); color: white; border-color: var(--absent); }
.day-mark-btn.halfday:hover, .day-mark-btn.halfday.sel { background: var(--halfday); color: white; border-color: var(--halfday); }
.day-mark-btn.holiday:hover, .day-mark-btn.holiday.sel { background: var(--holiday); color: white; border-color: var(--holiday); }
.day-mark-btn.leave:hover, .day-mark-btn.leave.sel { background: var(--leave); color: white; border-color: var(--leave); }
.day-mark-btn.note:hover, .day-mark-btn.note.sel { background: var(--note); color: white; border-color: var(--note); }
.day-mark-btn.clear-mark { border-style: dashed; }
.day-mark-btn.clear-mark:hover { background: #ffcdd2; color: var(--danger); border-color: var(--danger); }

/* ===== CALCULATOR ===== */
.calc-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.calc-card h3 { font-size: 14px; margin-bottom: 10px; color: var(--primary); font-weight: 700; }

.calc-status { font-size: 14px; line-height: 1.8; }
.calc-status .big-pct { font-size: 40px; font-weight: 900; display: block; margin-bottom: 4px; }

.calc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.calc-row label { font-size: 13px; color: var(--text2); flex-shrink: 0; }

.range-input {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(76,175,80,0.4);
}
.range-val { font-weight: 800; font-size: 18px; min-width: 44px; text-align: right; color: var(--primary); }

.num-input {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  text-align: center;
  font-weight: 600;
}

.calc-result { font-size: 13px; line-height: 1.9; }
.calc-result .hl { font-weight: 700; color: var(--primary); }
.calc-result .warn { color: var(--warning); }
.calc-result .bad { color: var(--danger); }
.calc-result .good { color: var(--present); }

/* ===== MODALS ===== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal.active { display: flex; }

.modal-content {
  background: var(--card);
  border-radius: var(--radius);
  width: 92%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.2s ease;
}
.modal-sm { max-width: 360px; }

@keyframes modalPop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 17px; }
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text2);
  padding: 4px;
}
.modal-body { padding: 20px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; }
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary); }

.icon-picker, .color-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-opt {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--border);
  font-size: 18px;
  color: var(--text2);
  transition: all 0.15s;
}
.icon-opt.selected { border-color: var(--primary); background: rgba(76,175,80,0.1); color: var(--primary); }
.icon-opt:hover { border-color: var(--primary); }

.color-opt {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.15s;
}
.color-opt.selected { border-color: var(--text); transform: scale(1.2); }

.btn-cancel, .btn-save, .btn-danger, .btn-backup, .btn-restore {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-cancel { background: var(--bg); color: var(--text); }
.btn-save { background: var(--primary); color: white; }
.btn-danger { background: var(--danger); color: white; }

/* ===== SETTINGS ===== */
.settings-group {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.settings-group h4 { font-size: 15px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.settings-desc { font-size: 12px; color: var(--text2); margin-bottom: 12px; line-height: 1.5; }
.settings-link { font-size: 11px; color: var(--accent); text-decoration: none; display: block; margin-top: 4px; }
.settings-link:hover { text-decoration: underline; }

/* ===== GOOGLE ACCOUNT ===== */
.google-account-group { border: 1.5px solid #4285f4; }
.google-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #e8f0fe;
  border-radius: 10px;
  margin-bottom: 12px;
}
.google-user-info.logged-in { display: flex; }
.google-user-info:not(.logged-in) { display: none; }
.google-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #4285f4;
}
.google-user-details { flex: 1; }
.google-user-name { font-weight: 700; font-size: 14px; color: var(--text); }
.google-user-email { font-size: 12px; color: var(--text2); }
.google-user-status { font-size: 11px; color: var(--present); margin-top: 2px; }
.google-user-status i { margin-right: 4px; }

.btn-google-login {
  width: 100%;
  padding: 12px 20px;
  background: #4285f4;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(66,133,244,0.3);
}
.btn-google-login:hover { background: #3367d6; transform: translateY(-1px); }
.btn-google-login img { filter: brightness(0) invert(1); }

.btn-google-logout {
  width: 100%;
  padding: 10px 20px;
  background: transparent;
  color: var(--danger);
  border: 1.5px solid var(--danger);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.btn-google-logout:hover { background: #ffebee; }

/* ===== RESTORE MODAL ===== */
.restore-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1.5px solid transparent;
}
.restore-item:hover { border-color: var(--primary); transform: translateY(-1px); }
.restore-item:active { transform: scale(0.98); }
.restore-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.restore-item-info { flex: 1; }
.restore-item-label { font-weight: 700; font-size: 13px; }
.restore-item-date { font-size: 11px; color: var(--text2); margin-top: 2px; }

.backup-btns { display: flex; gap: 10px; margin-top: 12px; }
.btn-backup {
  background: var(--accent);
  color: white;
  flex: 1;
  justify-content: center;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-restore {
  background: var(--primary);
  color: white;
  flex: 1;
  justify-content: center;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.upload-label { text-decoration: none; }

.backup-status {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  display: none;
  font-weight: 500;
}
.backup-status.success { display: block; background: #e8f5e9; color: #2e7d32; }
.backup-status.error { display: block; background: #ffebee; color: #c62828; }
.backup-status.loading { display: block; background: #e3f2fd; color: #1565c0; }

.select-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}

.auto-backup-info {
  background: #e8f5e9;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}
.auto-backup-info.offline-mode { background: #fff3e0; color: #e65100; border-color: #ffe0b2; }
.auto-backup-info i { margin-right: 4px; }

/* ===== BULK IMPORT ===== */
.bulk-existing-list {
  margin-bottom: 16px;
}
.bulk-existing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #e8f5e9;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}
.bulk-existing-item .bulk-info { flex: 1; }
.bulk-existing-item .bulk-info .bulk-label { font-weight: 700; }
.bulk-existing-item .bulk-info .bulk-detail { font-size: 11px; color: var(--text2); }
.bulk-existing-item .bulk-del {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 6px;
}
.bulk-existing-item .bulk-del:hover { background: #ffcdd2; }
.bulk-preview {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  display: none;
}
.bulk-preview.show { display: block; }
.bulk-preview .big-pct { font-size: 32px; font-weight: 900; }

.danger-zone { border: 1.5px solid #ffcdd2; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #333;
  color: white;
  padding: 12px 28px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  z-index: 300;
  transition: transform 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text2);
}
.empty-state i { font-size: 56px; margin-bottom: 16px; opacity: 0.2; display: block; }
.empty-state p { font-size: 14px; line-height: 1.6; }
.empty-state .hint { font-size: 12px; margin-top: 8px; opacity: 0.6; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

@media (min-width: 481px) {
  #app { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}
