:root {
  --bg: #020617;
  --bg-elevated: #020617;
  --bg-card: rgba(15, 23, 42, 0.92);
  --bg-card-soft: rgba(15, 23, 42, 0.8);
  --border-subtle: rgba(148, 163, 184, 0.3);
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --text: #e5e7eb;
  --text-soft: #94a3b8;
  --text-strong: #f9fafb;
  --danger: #f97373;
  --radius-xl: 1.25rem;
  --radius-lg: 1rem;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.9);
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Myanmar Text", "Noto Sans Myanmar", sans-serif;
}

body[data-theme="light"] {
  --bg: #f1f5f9;
  --bg-elevated: #e5e7eb;
  --bg-card: #ffffff;
  --bg-card-soft: #f9fafb;
  --border-subtle: rgba(148, 163, 184, 0.5);
  --text: #0f172a;
  --text-soft: #64748b;
  --text-strong: #020617;
  --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.12);
}

/* Global */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-base);
  background: radial-gradient(circle at top, #0f172a 0%, var(--bg) 55%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  min-height: 100vh;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto;
  padding: 0.5rem 0.6rem 3.4rem;
  display: flex;
  flex-direction: column;
}

/* Header */

.app-header {
  min-height: 110px !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0.75rem;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.92));
  border-bottom: 1px solid rgba(244, 203, 17, 0.45);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0.04rem;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-logo {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: radial-gradient(circle at 30% 20%, #facc15, #f97316, #22d3ee);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9), 0 10px 32px rgba(248, 250, 252, 0.4);
}

.brand-text h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.brand-text p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

/* Mobile: stack vertically */
.welcome-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: 10px;
  margin: 10px 0 20px 0;
  font-size: 0.95rem;
}

.welcome-box strong {
  color: var(--primary);
}

.header-auth-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Sign in button */
.header-auth-btn {
  background: var(--primary);
  /* color: white; */
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  white-space: nowrap;
}

.header-auth-btn:hover {
  opacity: 0.9;
}

/* User info when logged in */
.header-user-info {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.user-name-short {
  color: rgb(15, 137, 219);
  font-size: 1.1rem;
  max-width: 110px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
}

.header-signout-btn {
  background: #e5e7eb;
  border: none;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 1.2rem;
  cursor: pointer;
}

body[data-theme="dark"] .header-signout-btn {
  background: #1f2937;
  color: #e5e7eb;
}

.header-signout-btn:hover {
  opacity: 0.9;
  background: #d3d3d3;
}

.header-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;

  min-width: 110px;
  padding: 0.25rem 0.7rem;
  margin-right: 12px;

  border-radius: 0.9rem;
  background: radial-gradient(circle at 10% 0%, #bbf7d0, #7dd3fc 55%, #38bdf8);
  box-shadow:
    0 4px 16px rgba(15, 23, 42, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  color: #0f172a;
}

body[data-theme="dark"] .header-clock {
  background: radial-gradient(circle at 10% 0%, #0f172a, #020617 50%, #0f172a);
  box-shadow:
    0 4px 16px rgba(15, 23, 42, 0.9),
    inset 0 0 0 1px rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.clock-time {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.clock-date {
  font-size: 0.72rem;
  margin-top: 0.05rem;
  opacity: 0.85;
}

/* Buttons */

.btn {
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.1s ease, background 0.12s ease,
    color 0.12s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent-strong), #22c55e);
  color: #0f172a;
  box-shadow: 0 12px 24px rgba(56, 189, 248, 0.45);
}

.ghost-btn {
  background: rgba(96, 91, 45, 0.421);
  color: var(--text-soft);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.danger-btn {
  background: #b91c1c;
  color: #fee2e2;
  box-shadow: 0 12px 24px rgba(248, 113, 113, 0.4);
}

.small-btn {
  padding-inline: 0.6rem;
  font-size: 0.78rem;
}

/* Main */

.app-main {
  flex: 1;
  margin-top: 0.5rem;
}

/* Views */

.view {
  display: none;
  padding: 0.75rem 0.1rem 0.75rem;
}

.view.active {
  display: block;
}

.section-header {
  margin-bottom: 0.7rem;
}

.section-header h2 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.section-header p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
}

.card,
.sub-card {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.link-card {
  cursor: pointer;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.98));
}

.link-card:hover {
  border-color: var(--accent-strong);
  box-shadow: 0 18px 34px rgba(56, 189, 248, 0.35);
}

.card h3,
.sub-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
}

.card p,
.sub-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* Chips & Pills */

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: var(--bg-card-soft);
  font-size: 0.74rem;
  color: var(--text-soft);
}

.chip.small {
  font-size: 0.7rem;
  margin-top: 0.4rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.pill {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.4);
  font-size: 0.76rem;
}

/* Forms */

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
  align-items: flex-end;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
}

.field span {
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea {
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  background: var(--bg-card-soft);
  color: var(--text);
  outline: none;
}

.field textarea {
  resize: vertical;
}

.field.full {
  grid-column: 1 / -1;
}

.helper-text {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* Info boxes & lists */

.info-box {
  margin-top: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.9rem;
  background: var(--bg-card-soft);
  border: 1px dashed rgba(148, 163, 184, 0.7);
}

.info-box.small p {
  margin: 0.1rem 0;
  font-size: 0.78rem;
}

.simple-list,
.link-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0 0.2rem;
}

.simple-list li,
.link-list li {
  padding: 0.4rem 0.5rem;
  border-radius: 0.8rem;
  background: var(--bg-card-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.link-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.link-list small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-soft);
}

/* Immigration view ရဲ့ card တွေ သာမန်ထက် နည်းနည်း ထွက်ထွက်ဖြစ်အောင် */
.view[data-view="immigration"] .imm-card {
  margin-bottom: 1.2rem;              /* sub-cards တွေ နီးကပ်နေတယ် → ကြားထပ်ပေး */
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  background: rgba(15, 23, 42, 0.92); /* Dark card on both themes */
  color: #f9fafb;
  backdrop-filter: blur(10px);
}

/* Light theme မှာ card ပိုဖတ်လွယ်အောင် */
body[data-theme="light"] .view[data-view="immigration"] .imm-card {
  background: #f9fafb;
  color: #020617;
}

/* Quiz card ကို အထူး highlight */
.imm-quiz-card {
  border: 1px solid rgba(56, 189, 248, 0.5);
}

/* Quiz box layout */
.quiz-box {
  margin-top: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95),
    rgba(30, 64, 175, 0.95)
  );
  color: #f9fafb;
}

/* Light theme မှာ quiz box color ပြန်ရောမနေအောင် */
body[data-theme="light"] .quiz-box {
  background: linear-gradient(
    135deg,
    #e0f2fe,
    #dbeafe
  );
  color: #0f172a;
}

.quiz-question-text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.quiz-option {
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: var(--bg-card-soft);
  color: #e5e7eb;
  cursor: pointer;
  margin-bottom: 0.75rem;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s;
}

/* Light theme option */
body[data-theme="light"] .quiz-option {
  background: #ffffff;
  color: #0f172a;
}

/* Hover / focus */
.quiz-option:hover:not(:disabled),
.quiz-option:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.9);
  outline: none;
}

/* JS ထဲက renderQuizQuestion() မှာ .quiz-question-text ကို div နဲ့ ထည့်ထား already */
.quiz-question .quiz-question-text {
  display: block;
}

.quiz-option.correct {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  color: #ecfdf5;
}

.quiz-option.wrong {
  border-color: #f97373;
  background: rgba(248, 113, 113, 0.15);
  color: #fef2f2;
}

/* Light theme correct/wrong */
body[data-theme="light"] .quiz-option.correct {
  background: #22c55e;
  color: #052e16;
}

body[data-theme="light"] .quiz-option.wrong {
  background: #fca5a5;
  color: #450a0a;
}

.quiz-option:disabled {
  cursor: default;
  opacity: 0.95;
}

/* Footer: Next + status line */
.quiz-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.quiz-status {
  margin: 0;
  font-size: 0.8rem;
}

/* Bottom nav */

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0.6rem;
  transform: translate(-50%, 0); /* X,Y တို့လုံးဝ ထိန်းချုပ် */

  width: calc(100% - 1.2rem);
  max-width: 1200px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  /* horizontal scroll (drag by finger) */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);

  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 1.8rem;
  padding: 0.35rem 0.40rem;
  scrollbar-width: none;

  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.08);

  /* auto hide animation */
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Dark theme nav background */
body[data-theme="dark"] .bottom-nav {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.35);
}

/* auto-hide class (JS ကသတ်သတ်မှတ်မယ်) */
.bottom-nav.bottom-nav--hidden {
  transform: translate(-50%, 130%);
  opacity: 0;
  pointer-events: none;
}

/* mobile chrome safari scrollbar မမြင်စေချင်လို့ */
.bottom-nav::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  flex: 0 0 auto;               /* shrink မသွားအောင်, scroll အလွယ်တကူ */
  min-width: 70px;
  border: none;
  background: transparent;
  padding: 0.55rem 0.35rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;

  border-radius: 1.2rem;
  font-size: 0.80rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* icon font size */
.nav-btn .nav-icon {
  font-size: 2.2rem !important;   /* default 1.6 → 2.2 */
  line-height: 1;
  margin-bottom: 0.10rem;
}

/* label */
.nav-btn span {
  font-size: 0.82rem;
  font-weight: 600;
}

/* active icon highlight */
.nav-btn.active .nav-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 2px 4px rgba(56, 189, 248, 0.45));
}

.nav-btn:hover {
  background: rgba(148, 163, 184, 0.15);
}

.nav-btn.active {
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.28),
    rgba(34, 197, 94, 0.28)
  );
  color: var(--accent-strong);
  box-shadow: 0 6px 14px rgba(56, 189, 248, 0.35);
}

/* Emoji/icon sizing */
.nav-btn::first-letter,
.nav-btn > i,
.nav-btn > svg {
  font-size: 1.65rem !important;
}

.nav-btn.active::first-letter {
  transform: scale(1.15);
}

/* Misc */

.sub-section {
  margin-top: 0.8rem;
}

.sub-card.danger {
  border-color: rgba(248, 113, 113, 0.7);
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

.hidden {
  display: none !important;
}

/* Responsive */

@media (min-width: 720px) {
  .app-shell {
    padding: 0.7rem 1rem 3.4rem;
  }

  .form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view {
    padding-inline: 0.2rem;
  }
}

/* ==== HOME PAGE SPECIAL STYLES (bigger icons + easier background) ==== */

/* Home view background ကို အသက်ကြီးသူတွေလည်း မီးလင်းလင်း ဖတ်လွယ်အောင် */
.view[data-view="home"] {
  background: radial-gradient(circle at top, #e0f2fe 0%, #f8fafc 45%, #e2e8f0 100%);
  border-radius: 1.5rem;
  padding: 1rem 0.6rem 1.3rem;
}

/* Dark theme မှာလည်း အပြာနုနုနဲ့ မည့်မဲနေလို့ရအောင် */
body[data-theme="dark"] .view[data-view="home"] {
  background: radial-gradient(circle at top, #0f172a 0%, #020617 45%, #1f2937 100%);
}

/* Home page ထဲက main cards */
.home-card {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.7);
}

body[data-theme="dark"] .home-card {
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
}

/* Card အပေါ် title + icon layout */
.home-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

/* 75px icon box */
.home-card-icon {
  flex: 0 0 auto;
  width: 75px;
  height: 75px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem; /* emoji 자체သည် အလွန်ကြီးမြင်ရအောင် */
  background: radial-gradient(circle at 20% 20%, #fef9c3, #facc15, #fb923c);
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.55);
}

/* Title text ကို line-break ကောင်းကောင်း ဖြစ်အောင် */
.home-card-title-text {
  display: block;
}

/* Home card ထဲက ရှင်းပြစာတွေကို အနည်းငယ် ပိုကြီးစေ */
.view[data-view="home"] .card p {
  font-size: 0.86rem;
  line-height: 1.4;
}

/* Mobile ပိုင်းမှာ card-grid spacing နည်းနည်း ချော */
.view[data-view="home"] .card-grid {
  gap: 0.7rem;
}

/* Light theme အတွက် header ကို ပိုလင်းအောင် override */
body[data-theme="light"] .app-header {
  background: linear-gradient(
    90deg,
    rgba(248, 250, 252, 0.96),
    rgba(241, 245, 249, 0.96)
  );
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow:
    0 12px 26px rgba(148, 163, 184, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.8);
}

body[data-theme="light"] .brand-text h1 {
  color: #020617;
}

body[data-theme="light"] .brand-text p {
  color: #64748b;
}

/* ==== HOME ADMIN POSTS ==== */

.home-posts {
  margin-top: 0.9rem;
}

.home-posts-header h3 {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
}

.home-posts-header p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.home-posts-list {
  margin-top: 0.6rem;
}

.home-post-item {
  padding: 0.55rem 0.65rem;
  border-radius: 0.9rem;
  background: var(--bg-card-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
}

.home-post-item-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.home-post-item-body {
  margin: 0;
  font-size: 0.78rem;
}

.home-post-item-meta {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--text-soft);
}

/* ==== SENIOR-FRIENDLY THEMES ==== */

/* Soft Senior: ကြည်လင်နူးညံ့၊ မျက်စိမတင်းအောင် */
body[data-theme-variant="senior-soft"] {
  --bg: #f0fdf4;
  --bg-elevated: #ecfdf5;
  --bg-card: #ffffff;
  --bg-card-soft: #dcfce7;
  --border-subtle: rgba(22, 163, 74, 0.6);
  --text: #022c22;
  --text-soft: #166534;
  --text-strong: #021b16;
}

body[data-theme-variant="senior-soft"] .card,
body[data-theme-variant="senior-soft"] .sub-card {
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.25);
}

/* High Contrast: နက်-အဝါကြီး contrast (မျက်နုနဲ့ အဆင်ပြေတဲ့အတွက်သာသုံး) */
body[data-theme-variant="senior-contrast"] {
  --bg: #000000;
  --bg-elevated: #000000;
  --bg-card: #000000;
  --bg-card-soft: #020617;
  --border-subtle: #facc15;
  --text: #fefce8;
  --text-soft: #fef08a;
  --text-strong: #ffffff;
}

body[data-theme-variant="senior-contrast"] .card,
body[data-theme-variant="senior-contrast"] .sub-card {
  border-width: 2px;
}

body[data-theme-variant="senior-contrast"] .bottom-nav {
  background: #000000;
  border-color: #facc15;
}

/* ==== GLOBAL FONT SIZE OPTIONS ==== */
html[data-font-size="normal"] {
  font-size: 1rem;
}

html[data-font-size="large"] {
  font-size: 1.2rem;   /* ကြီးလို့ရင် 1.2rem / 1.3rem လို့နည်းနည်းလျော့ချနိုင် */
}

html[data-font-size="xlarge"] {
  font-size: 1.4rem;     /* အလွန်ကြီးရင် 1.4rem 정도 ထားလို့ရ */
}

/* ==== MONEY PAGE LAYOUT ==== */

/* Money view ထဲက sub-card တွေကို အနည်းငယ် ခြားပေးမယ် */
.view[data-view="money"] .sub-card + .sub-card {
  margin-top: 0.9rem;
}

/* Money-specific visual accents */
.money-card {
  position: relative;
}

/* left border color မတူအောင် */
.money-summary-card {
  border-left: 4px solid #22c55e;
}
.money-fx-card {
  border-left: 4px solid #38bdf8;
}
.money-income-card {
  border-left: 4px solid #f97316;
}
.money-budget-card {
  border-left: 4px solid #a855f7;
}
.money-savings-card {
  border-left: 4px solid #16a34a;
}
.money-bills-card {
  border-left: 4px solid #0ea5e9;
}
.money-support-card {
  border-left: 4px solid #f97316;
}
.money-rule-card {
  border-left: 4px solid #eab308;
}
.money-notes-card {
  border-left: 4px solid #64748b;
}

/* Overview grid */
.money-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.6rem;
}
@media (max-width: 640px) {
  .app-header {
    min-height: 100px !important;
    /* padding: 1.8rem 1.2rem !important; */
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .header-right {
    order: 1;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* clock တစ်ဖက်, install တစ်ဖက် */
    align-items: center;
    gap: 0.3rem;
  }

  #header-clock {
    order: 1;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  #btn-install {
    order: 2;
  }

  /* row 2: auth ကို အောက်ကြောင်း သွားစေမယ် */
  .header-auth-box {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 0.2rem;
  }

  .view[data-view="immigration"] .imm-card {
    padding: 0.9rem 0.85rem;
    border-radius: 12px;
  }

  .quiz-box {
    padding: 0.85rem;
  }

  .quiz-option {
    font-size: 0.9rem;
    padding: 0.5rem 0.65rem;
  }

  .money-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.summary-item {
  background: var(--bg-card-soft);
  border-radius: 0.9rem;
  padding: 0.5rem 0.65rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}
.summary-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-bottom: 0.15rem;
}
.summary-value {
  font-size: 0.95rem;
  font-weight: 700;
}
.summary-value.positive {
  color: #16a34a;
}
.summary-value.negative {
  color: #dc2626;
}
.summary-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--text-soft);
}

/* FX grid သွေးနွေးနိူနိူ */
.fx-grid {
  margin-top: 0.6rem;
}

/* Category summary chips */
.expense-category-summary {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.expense-category-chip {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

body[data-theme="dark"] .expense-category-chip {
  background: rgba(15, 23, 42, 0.85);
}

/* Savings */
.savings-progress {
  margin-top: 0.5rem;
  border-radius: 0.9rem;
  padding: 0.45rem 0.6rem;
  background: rgba(22, 163, 74, 0.06);
}
.savings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding: 0.2rem 0;
}
.savings-value {
  font-weight: 600;
}

/* Bills list */
#bills-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bill-meta {
  font-size: 0.75rem;
  color: var(--text-soft);
}
.bill-remove {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
}
.bill-remove:hover {
  text-decoration: underline;
}

.auth-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.auth-user-info.hidden {
  display: none;
}

.auth-user-info {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

/* 3-column form (Title / Date / Note) */
.form-grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
  margin-top: 0.45rem;
}

@media (min-width: 768px) {
  .form-grid-3 {
    grid-template-columns:
      minmax(0, 1.1fr)
      minmax(0, 0.9fr)
      minmax(0, 1.3fr);
  }
}

/* Form footer (button + status) */
.form-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

/* Timeline list for important dates */
.timeline-list {
  list-style: none;
  padding-left: 0;
  margin: 0.6rem 0 0;
}

.timeline-list li {
  padding: 0.5rem 0.6rem;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.9);
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

body[data-theme="light"] .timeline-list li {
  background: #eff6ff;
}

.timeline-pill {
  font-weight: 600;
  font-size: 0.84rem;
}

.timeline-date {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.timeline-note {
  font-size: 0.78rem;
}

/* Checklist grid for documents */
.checklist-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .checklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.check-item input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

.check-item span.checked {
  text-decoration: line-through;
  opacity: 0.75;
}

/* ==== IMMIGRATION PAGE LAYOUT ==== */

/* Money page လိုပဲ sub-card တွေတွေ့ရင် အနည်းငယ် ခြားပေးမယ် */
.view[data-view="immigration"] .sub-card + .sub-card {
  margin-top: 0.9rem;
}

/* Immigration-specific visual accents (Money page style နမူနာလို) */
.imm-card {
  position: relative;
  border-left: 4px solid #38bdf8; /* default blue */
}

/* section တစ်ခုချင်းစီ left border color မတူအောင် */
.imm-dates-card {
  border-left-color: #22c55e;   /* green – dates / appointments */
}

.imm-docs-card {
  border-left-color: #eab308;   /* amber – documents */
}

.imm-notes-card {
  border-left-color: #a855f7;   /* purple – notes */
}

.imm-quiz-card {
  border-left-color: #0ea5e9;   /* sky – quiz */
}

.imm-links-card {
  border-left-color: #f97316;   /* orange – useful links */
}

.imm-dl-card {
  border-left-color: #64748b;   /* slate – driver license */
}

/* ==== HOUSE / CAR GUIDE VIEW ==== */

.view[data-view="housecar"] .section-header h2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.housecar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.hc-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 1rem 1rem 1.1rem;
  background: radial-gradient(
    circle at 0% 0%,
    rgba(56, 189, 248, 0.22),
    rgba(15, 23, 42, 0.96)
  );
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
}

body[data-theme="light"] .hc-card {
  background: radial-gradient(circle at 0% 0%, #e0f2fe, #eff6ff);
  border-color: rgba(148, 163, 184, 0.5);
}

.hc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.hc-title {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.hc-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: radial-gradient(circle at 30% 20%, #facc15, #fb923c, #22d3ee);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9),
    0 10px 24px rgba(15, 23, 42, 0.75);
}

.hc-title h3 {
  margin: 0 0 0.1rem;
  font-size: 0.98rem;
}

.hc-title p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.hc-chip {
  align-self: flex-start;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid rgba(248, 250, 252, 0.8);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
}

.hc-chip-house {
  border-color: #22c55e;
}

.hc-chip-car {
  border-color: #fb923c;
}

body[data-theme="light"] .hc-chip {
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
}

/* Steps list */

.hc-steps {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hc-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: flex-start;
}

.hc-step-badge {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: radial-gradient(circle at 30% 20%, #22c55e, #16a34a);
  color: #ecfdf5;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.6);
  margin-top: 0.2rem;
}

.hc-step-body h4 {
  margin: 0 0 0.1rem;
  font-size: 0.88rem;
}

.hc-step-body p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ===== JOBS VIEW ===== */

.jobs-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

/* left border color တစ်လုံးခြင်း မတူအောင် */
.jobs-card--search {
  border-left: 4px solid #38bdf8; /* sky blue */
  background: linear-gradient(135deg, rgba(56,189,248,0.14), var(--bg-card));
}

.jobs-card--resume {
  border-left: 4px solid #22c55e; /* green */
  background: linear-gradient(135deg, rgba(34,197,94,0.16), var(--bg-card));
}

.jobs-card--interview {
  border-left: 4px solid #f97316; /* orange */
  background: linear-gradient(135deg, rgba(249,115,22,0.16), var(--bg-card));
}

.jobs-card--status {
  border-left: 4px solid #0ea5e9; /* cyan */
}

.jobs-card--types {
  border-left: 4px solid #a855f7; /* purple */
}

.jobs-card--sushi {
  border-left: 4px solid #ef4444; /* red */
}

.jobs-card--franchise {
  border-left: 4px solid #facc15; /* yellow */
}

.jobs-card--example {
  border-left: 4px solid #64748b; /* slate */
}

.jobs-card--tax {
  border-left: 4px solid #22c55e;
}

/* Text + list style */
.jobs-title {
  margin: 0 0 0.4rem 0;
}

.jobs-note {
  margin: 0 0 0.5rem 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.jobs-list {
  margin: 0.25rem 0 0.5rem 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.jobs-list--two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.3rem 1rem;
}

/* Buttons */
.job-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  background: var(--accent-soft);
  color: var(--text-strong);
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.job-btn:hover {
  background: var(--accent-strong);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(15,23,42,0.45);
  transform: translateY(-1px);
}

.job-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.job-btn-row .job-btn {
  flex: 1;
}

.job-btn-column {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.job-btn.full-width {
  width: 100%;
  margin-top: 0.5rem;
}

/* Sample box */
.jobs-sample-box {
  /* background: rgba(207, 235, 235, 0.8); */
  border-radius: 0.75rem;
  padding: 0.6rem 0.7rem;
  font-size: 0.82rem;
  white-space: pre-wrap;
  border: 1px dashed rgba(148,163,184,0.6);
}

/* Responsive multi-row buttons */
.job-btn-row-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.job-btn-row-wrap .job-btn {
  flex: 0 1 auto;              /* ✔ auto width */
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  cursor: pointer;

  background: var(--primary);
  color: #947f07;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.475);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.job-btn-row-wrap .job-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.job-btn-row-wrap .job-btn:active {
  transform: scale(0.97);
}

/* ===== COMMUNITY & BURMESE PLACES ===== */

.view[data-view="community"] .section-header p {
  max-width: 40rem;
}

.view[data-view="community"] #community-filter-form {
  margin-bottom: 0.6rem;
}

.view[data-view="community"] #community-filter-form .field span {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.view[data-view="community"] #community-state,
.view[data-view="community"] #community-type {
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-subtle);
}

/* main list container */
.view[data-view="community"] #community-list {
  margin-top: 0.3rem;
}

/* each place card */
.view[data-view="community"] #community-list .place-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  box-shadow: var(--shadow-soft);
  border-left-width: 4px;
  border-left-style: solid;
}

/* left border by type */
.view[data-view="community"] #community-list .place-item[data-place-type="monastery"] {
  border-left-color: #22c55e; /* green */
}

.view[data-view="community"] #community-list .place-item[data-place-type="church"] {
  border-left-color: #6366f1; /* indigo */
}

.view[data-view="community"] #community-list .place-item[data-place-type="store"] {
  border-left-color: #f59e0b; /* amber */
}

.view[data-view="community"] #community-list .place-item[data-place-type="restaurant"] {
  border-left-color: #ef4444; /* red */
}

/* title row */
.place-title-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.place-name {
  font-weight: 600;
  font-size: 0.88rem;
}

.place-type-pill {
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-soft);
}

/* meta + note */
.place-meta {
  font-size: 0.74rem;
  color: var(--text-soft);
}

.place-note {
  font-size: 0.8rem;
}

.back-row {
  display: flex;
  justify-content: flex-end; /* 👈 Right align */
}

/* Back-to-Home button upgrade */
.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;

  background: linear-gradient(135deg, #3b82f6, #22c55e);
  color: #ffffff;

  padding: 0.55rem 1rem;
  border-radius: 999px;

  /* font-size: 0.9rem;
  font-weight: 600; */
  /* letter-spacing: 0.3px; */

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);

  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover */
.back-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Active */
.back-home-btn:active {
  transform: scale(0.97);
}

/* Light theme override */
body[data-theme="light"] .back-home-btn {
  background: linear-gradient(135deg, #0ea5e9, #34d399);
  color: #042f2e;
}

/* Senior-friendly (font large) support */
body[data-font="large"] .back-home-btn,
body[data-font="xlarge"] .back-home-btn {
  font-size: 1.05rem;
  padding: 0.65rem 1.2rem;
}

/* ==== SHOPPING VIEW (🛒 Shopping & Coupons) ==== */

.view[data-view="shopping"] .section-header p {
  max-width: 38rem;
}

.view[data-view="shopping"] .sub-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

/* Card title row – icon + text ကို နည်းနည်း ကြီးအောင် */
.view[data-view="shopping"] .sub-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.96rem;
  margin-bottom: 0.35rem;
}

/* US General Stores card */
.view[data-view="shopping"] .sub-card:nth-of-type(1) {
  border-left: 4px solid #38bdf8;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.14),
    var(--bg-card)
  );
}

/* Asian & Myanmar Stores card */
.view[data-view="shopping"] .sub-card:nth-of-type(2) {
  border-left: 4px solid #22c55e;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15),
    var(--bg-card)
  );
}

/* link-list / simple-list ကို ဒီ page မှာ နည်းနည်း ကြီးသလိုမြင်အောင် */
.view[data-view="shopping"] .link-list li,
.view[data-view="shopping"] .simple-list li {
  font-size: 0.85rem;
  padding: 0.5rem 0.6rem;
}

/* ==== TOOLS VIEW (🧰 Daily Tools) ==== */

.view[data-view="tools"] .section-header p {
  max-width: 36rem;
}

.view[data-view="tools"] .sub-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

/* Title row */
.view[data-view="tools"] .sub-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.96rem;
  margin-bottom: 0.35rem;
}

/* Weather card */
.view[data-view="tools"] .sub-card:nth-of-type(1) {
  border-left: 4px solid #38bdf8;
  background: radial-gradient(circle at 10% 0%, #0ea5e9 0, transparent 55%),
    var(--bg-card);
}

/* Unit converter card */
.view[data-view="tools"] .sub-card:nth-of-type(2) {
  border-left: 4px solid #facc15;
  background: linear-gradient(
    135deg,
    rgba(250, 204, 21, 0.16),
    var(--bg-card)
  );
}

/* Quick Notes card */
.view[data-view="tools"] .sub-card:nth-of-type(3) {
  border-left: 4px solid #a855f7;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.18),
    var(--bg-card)
  );
}

/* textarea နဲ့ info-box ကို နည်းနည်း ထင်ရှားအောင် */
.view[data-view="tools"] textarea {
  width: 100%;
  height: auto;
  border: none;
  font-size: 0.9rem;
}

.view[data-view="tools"] .info-box.small {
  margin-top: 0.45rem;
}

/* ==== SETTINGS VIEW (⚙ Settings) ==== */

.view[data-view="settings"] .section-header p {
  max-width: 34rem;
}

.view[data-view="settings"] .sub-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

/* Title */
.view[data-view="settings"] .sub-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.96rem;
  margin-bottom: 0.35rem;
}

/* Theme card */
.view[data-view="settings"] .sub-card:nth-of-type(1) {
  border-left: 4px solid #38bdf8;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.16),
    var(--bg-card)
  );
}

/* Font size card */
.view[data-view="settings"] .sub-card:nth-of-type(2) {
  border-left: 4px solid #22c55e;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15),
    var(--bg-card)
  );
}

/* Reset card (danger) */
.view[data-view="settings"] .sub-card.danger,
.view[data-view="settings"] .sub-card:nth-of-type(3) {
  border-left: 4px solid var(--danger);
  background: radial-gradient(circle at 0 0, rgba(248, 113, 113, 0.35), transparent 55%),
    var(--bg-card);
}

/* radio-row ကို ဒီ page ထဲမှာ ဖတ်ရလွယ်အောင် နည်းနည်း ကြီး */
.view[data-view="settings"] .radio-row {
  font-size: 0.9rem;
  gap: 0.6rem;
}

.view[data-view="settings"] .radio-row label {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: rgb(6, 6, 51);
  background: rgba(237, 238, 240, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

/* ==== Quick Notes UI ==== */

#notes-area {
  width: 100%;
  min-height: 3.5rem;
  resize: vertical;

  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.6rem 0.75rem;

  font-size: 0.9rem;
  line-height: 1.4;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  background: rgba(15, 23, 42, 0.96);
  color: #e5e7eb;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.7);
}

body[data-theme="light"] #notes-area {
  background: #f9fafb;
  color: #020617;
}

#notes-area::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

#notes-area:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow:
    0 0 0 1px #38bdf8,
    0 0 0 4px rgba(56, 189, 248, 0.28);
}

/* Save button row */
.notes-actions-row {
  margin-top: 0.4rem;
  display: flex;
  justify-content: flex-end;
}

/* Notes list container */
.notes-list {
  margin-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Single note item */
.note-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;

  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;

  background: var(--bg-card-soft);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

body[data-theme="dark"] .note-item {
  background: rgba(15, 23, 42, 0.9);
}

.note-item-main {
  flex: 1;
}

.note-text {
  margin: 0;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.note-meta {
  margin-top: 0.18rem;
  font-size: 0.72rem;
  color: var(--text-soft);
}

/* Edit / Delete icons */
.note-actions {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.icon-btn {
  border: none;
  background: transparent;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
}

.icon-btn:hover {
  background: rgba(148, 163, 184, 0.2);
}

body[data-theme="dark"] .icon-btn:hover {
  background: rgba(51, 65, 85, 0.9);
}

.icon-btn.danger:hover {
  background: rgba(248, 113, 113, 0.25);
}

/* Senior font sizes ကိုလည်း support လုပ်ပေးရအောင် */
body[data-font="large"] #notes-area,
body[data-font="xlarge"] #notes-area {
  font-size: 1.02rem;
}

body[data-font="large"] .note-text,
body[data-font="xlarge"] .note-text {
  font-size: 0.95rem;
}

/* Simple Weather Note – display row + icons */
.weather-note-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.weather-note-main {
  flex: 1 1 auto;
}

.weather-note-location {
  margin: 0;
  font-size: 0.82rem;
}

.weather-note-text {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.weather-note-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Shared small icon button style (edit / delete) */
.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.12s ease, transform 0.08s ease;
}

.icon-btn:hover {
  background: rgba(148, 163, 184, 0.25);
  transform: translateY(-1px);
}

body[data-theme="dark"] .icon-btn:hover {
  background: rgba(148, 163, 184, 0.3);
}