* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --text: #1b2b3a;
  --muted: #4a6075;
  --income: #0a5bd3;
  --expense: #c62828;
  --glass-border: rgba(255, 255, 255, 0.75);
  --outer-border: rgba(0, 35, 70, 0.55);
}

body {
  font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  /* 바탕화면: 하늘색 + 초록빛 윈도우 7 느낌 */
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255, 255, 255, 0.55), transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(120, 220, 200, 0.55), transparent 50%),
    linear-gradient(160deg, #4aa8e8 0%, #2a78c8 40%, #1c5a9c 70%, #1b8a8a 100%);
  background-attachment: fixed;
}

.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* ---------- 헤더 ---------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-shadow:
    0 0 10px rgba(0, 40, 90, 0.8),
    0 1px 2px rgba(0, 30, 70, 0.9);
}

.subtitle {
  color: #eaf6ff;
  font-size: 0.9rem;
  text-shadow: 0 1px 3px rgba(0, 30, 70, 0.8);
}

#month-picker {
  padding: 7px 10px;
  border: 1px solid #5f84a3;
  border-radius: 4px;
  background: linear-gradient(#ffffff, #eef5fb);
  font-size: 0.95rem;
  font-family: inherit;
  box-shadow: inset 0 1px 2px rgba(0, 40, 80, 0.25);
}

/* ---------- 합계 카드 (유리 + 광택) ---------- */
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px var(--outer-border),
    0 6px 16px rgba(0, 30, 60, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* 윗부분 반짝이는 광택 */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48%;
  background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.card .label {
  position: relative;
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.card strong {
  position: relative;
  font-size: 1.05rem;
  word-break: keep-all;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card.income strong { color: var(--income); }
.card.expense strong { color: var(--expense); }
.card.balance strong.negative { color: var(--expense); }

/* ---------- 패널 (창 모양) ---------- */
.panel {
  border-radius: 8px;
  padding: 18px 16px;
  margin-bottom: 16px;
  background: linear-gradient(rgba(255, 255, 255, 0.62), rgba(235, 247, 255, 0.45));
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px var(--outer-border),
    0 10px 26px rgba(0, 30, 60, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* 창 제목 표시줄 */
.panel h2 {
  margin: -18px -16px 14px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(0, 30, 70, 0.9);
  border-radius: 7px 7px 0 0;
  background: linear-gradient(
    rgba(120, 190, 245, 0.85) 0%,
    rgba(70, 150, 225, 0.8) 48%,
    rgba(40, 115, 200, 0.85) 52%,
    rgba(70, 150, 225, 0.8) 100%
  );
  border-bottom: 1px solid rgba(0, 50, 100, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ---------- 폼 ---------- */
.type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.type-option input {
  display: none;
}

.type-option span {
  display: block;
  text-align: center;
  padding: 9px 0;
  border: 1px solid #6b8aa5;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  background: linear-gradient(
    #fdfeff 0%,
    #e6f0f8 48%,
    #cfdfec 52%,
    #dbe8f3 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.type-option span:hover {
  border-color: #3c8fd8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 6px rgba(90, 175, 245, 0.8);
}

.type-option input:checked + span {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 지출: 붉은 유리 버튼 */
.type-option:nth-child(1) input:checked + span {
  border-color: #7a1414;
  background: linear-gradient(#f59a9a 0%, #e05555 48%, #c42b2b 52%, #e04a4a 100%);
}

/* 수입: 푸른 유리 버튼 */
.type-option:nth-child(2) input:checked + span {
  border-color: #1b4f86;
  background: linear-gradient(#8ccaf8 0%, #4a9ae0 48%, #2b78c8 52%, #4a9ae0 100%);
}

.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #6f8ea8;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: linear-gradient(#ffffff, #f2f8fd);
  box-shadow: inset 0 1px 3px rgba(0, 40, 80, 0.25);
}

.form-row input:focus,
.form-row select:focus,
#month-picker:focus {
  outline: none;
  border-color: #3c8fd8;
  box-shadow:
    inset 0 1px 3px rgba(0, 40, 80, 0.2),
    0 0 8px rgba(80, 170, 245, 0.9);
}

/* 추가하기 버튼: 윈도우 7 파란 광택 버튼 */
.submit-btn {
  width: 100%;
  padding: 11px;
  border: 1px solid #1b4f86;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 30, 70, 0.7);
  background: linear-gradient(
    #9bd3fa 0%,
    #55a6e8 48%,
    #2b78c8 52%,
    #4a9ae0 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 2px 5px rgba(0, 30, 70, 0.35);
}

.submit-btn:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 10px rgba(110, 200, 255, 0.95),
    0 2px 5px rgba(0, 30, 70, 0.35);
  filter: brightness(1.08);
}

.submit-btn:active {
  filter: brightness(0.92);
  box-shadow: inset 0 2px 4px rgba(0, 30, 70, 0.5);
}

/* ---------- 카테고리별 지출 ---------- */
.breakdown-list {
  list-style: none;
}

.breakdown-item {
  margin-bottom: 12px;
}

.breakdown-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.breakdown-top .percent {
  color: var(--muted);
  margin-left: 6px;
}

/* 윈도우 진행률 표시줄 느낌 */
.bar-bg {
  height: 12px;
  background: linear-gradient(#d9e3ec, #f3f8fc);
  border: 1px solid #7893ab;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 40, 80, 0.3);
}

.bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(
    #f7a0a0 0%,
    #e65a5a 48%,
    #c92f2f 52%,
    #e25252 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ---------- 내역 목록 ---------- */
.entry-list {
  list-style: none;
}

.entry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 0 rgba(0, 50, 100, 0.12);
  border-radius: 4px;
}

.entry-item:hover {
  background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(190, 225, 250, 0.45));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(90, 160, 220, 0.5);
}

.entry-item:last-child {
  border-bottom: none;
  box-shadow: none;
}

.entry-info {
  min-width: 0;
}

.entry-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.entry-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.entry-amount {
  font-weight: 700;
}

.entry-amount.income { color: var(--income); }
.entry-amount.expense { color: var(--expense); }

/* 삭제 버튼: 창의 닫기(X) 버튼 느낌 */
.delete-btn {
  border: 1px solid #6b8aa5;
  background: linear-gradient(#fdfeff 0%, #dfeaf4 48%, #c6d8e8 52%, #d6e5f1 100%);
  color: #35506a;
  width: 28px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.delete-btn:hover {
  color: #fff;
  border-color: #6e1010;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  background: linear-gradient(#f7a3a3 0%, #e35a5a 48%, #c42b2b 52%, #e04c4c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 6px rgba(255, 110, 110, 0.9);
}

.empty-text {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 12px 0;
}

.hidden {
  display: none;
}

/* ---------- 수입 대비 지출 원그래프 ---------- */
.ratio-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.ratio-chart {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #d5dfe8;
  border: 1px solid #5f84a3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.6),
    0 4px 10px rgba(0, 30, 60, 0.35),
    inset 0 0 8px rgba(0, 40, 80, 0.35);
}

/* 유리구슬처럼 윗부분이 반짝이는 광택 */
.ratio-chart::before {
  content: "";
  position: absolute;
  top: 5%;
  left: 12%;
  width: 76%;
  height: 40%;
  border-radius: 50%;
  background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  pointer-events: none;
}

/* 도넛의 가운데 구멍 */
.ratio-center {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(#ffffff, #e6f1fa);
  border: 1px solid #7893ab;
  box-shadow:
    inset 0 2px 4px rgba(0, 40, 80, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ratio-center strong {
  font-size: 1.3rem;
  color: var(--expense);
}

.ratio-center span {
  font-size: 0.75rem;
  color: var(--muted);
}

.ratio-legend {
  list-style: none;
  min-width: 160px;
}

.ratio-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.9rem;
}

.ratio-legend li strong {
  margin-left: auto;
  padding-left: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 30, 70, 0.5);
  flex-shrink: 0;
}

.expense-dot { background: linear-gradient(#f7a0a0, #c92f2f); }
.left-dot { background: linear-gradient(#8ccaf8, #2b78c8); }
.left-dot.short { background: #d5dfe8; }

.ratio-message {
  margin-top: 14px;
  text-align: center;
  font-size: 0.9rem;
}

/* ---------- 더 보기 버튼 ---------- */
.more-btn {
  width: 100%;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid #6b8aa5;
  border-radius: 4px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(#fdfeff 0%, #e6f0f8 48%, #cfdfec 52%, #dbe8f3 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.more-btn:hover {
  border-color: #3c8fd8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 8px rgba(90, 175, 245, 0.9);
}

.more-btn:active {
  filter: brightness(0.94);
}

/* ---------- 월별 남은 돈 / 초과 지출 막대그래프 ---------- */
.monthly-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.monthly-chart {
  display: flex;
  gap: 6px;
}

.month-col {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 4px 2px;
  border-radius: 6px;
}

/* 지금 선택한 달 강조 */
.month-col.current {
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(190, 225, 250, 0.5));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 0 1px rgba(90, 160, 220, 0.6);
}

/* 막대가 자라나는 영역 (가운데 선 = 0원) */
.bar-area {
  position: relative;
  height: 180px;
}

.bar-area::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 40, 80, 0.5);
}

.month-bar {
  position: absolute;
  left: 20%;
  width: 60%;
  min-height: 3px;
  border: 1px solid rgba(0, 30, 70, 0.5);
}

/* 남은 돈: 가운데 선에서 위로 */
.month-bar.plus {
  bottom: 50%;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, #8ccaf8, #2b78c8 60%, #4a9ae0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* 초과 지출: 가운데 선에서 아래로 */
.month-bar.minus {
  top: 50%;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #f7a0a0, #c92f2f 60%, #e25252);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.4);
}

.month-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.month-value {
  font-size: 0.75rem;
  font-weight: 700;
  word-break: keep-all;
}

.month-value.plus { color: var(--income); }
.month-value.minus { color: var(--expense); }
.month-value.zero { color: var(--muted); }

.monthly-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.85rem;
}

.monthly-legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- 큰 화면(컴퓨터)용 배치 ---------- */
/* 화면 폭이 900px 이상일 때만 적용돼요.
   핸드폰처럼 작은 화면은 위에 있는 기본 배치(한 줄로 쭉)가 그대로예요. */
@media (min-width: 900px) {
  .container {
    max-width: 1080px;
  }

  /* 위쪽: 왼쪽(내역 추가) | 오른쪽(어디에 썼을까 + 내역) */
  .layout-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    align-items: start;
  }

  /* 아래쪽: 왼쪽(원그래프) | 오른쪽(월별 막대그래프) */
  .layout-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    align-items: stretch; /* 두 패널의 높이를 똑같이 맞춰요 */
  }

  /* 원그래프 패널은 높이가 남으면 내용을 가운데에 놓기 */
  .layout-bottom > .panel:first-child {
    display: flex;
    flex-direction: column;
  }

  .layout-bottom > .panel:first-child .ratio-wrap {
    flex: 1;
  }
}

/* ---------- 화면 스타일 바꾸기 버튼 (Aero / Luna) ---------- */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.theme-switch {
  display: flex;
}

.theme-btn {
  padding: 7px 12px;
  border: 1px solid #5f84a3;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(#fdfeff 0%, #e6f0f8 48%, #cfdfec 52%, #dbe8f3 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.theme-btn:first-child {
  border-radius: 4px 0 0 4px;
}

.theme-btn:last-child {
  border-radius: 0 4px 4px 0;
  border-left: none;
}

.theme-btn:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 6px rgba(90, 175, 245, 0.8);
}

/* 지금 선택된 스타일 */
.theme-btn.active {
  color: #fff;
  border-color: #1b4f86;
  text-shadow: 0 1px 2px rgba(0, 30, 70, 0.7);
  background: linear-gradient(#8ccaf8 0%, #4a9ae0 48%, #2b78c8 52%, #4a9ae0 100%);
}

/* =====================================================
   Windows Luna (XP) 모드
   <html data-theme="luna"> 일 때만 적용돼요.
   위쪽의 Aero 스타일을 덮어쓰는 방식이라, Aero 코드는 그대로예요.
   ===================================================== */
html[data-theme="luna"] {
  --text: #1a1a1a;
  --muted: #5f5b4d;
  --income: #0a3fb8;
  --expense: #c0280e;
}

/* 바탕화면: 파란 하늘 + 구름 + 초록 언덕 */
html[data-theme="luna"] body {
  font-family: Tahoma, "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background:
    radial-gradient(ellipse 22% 7% at 18% 22%, rgba(255, 255, 255, 0.85), transparent 70%),
    radial-gradient(ellipse 26% 8% at 70% 14%, rgba(255, 255, 255, 0.75), transparent 70%),
    radial-gradient(ellipse 85% 38% at 22% 108%, #62b83c 0%, #3f9422 68%, transparent 69%),
    radial-gradient(ellipse 80% 32% at 88% 112%, #4fa52c 0%, #347c1a 68%, transparent 69%),
    linear-gradient(#1c5fd0 0%, #4f98ea 40%, #a8d3f6 72%, #dff0fc 100%);
  background-attachment: fixed;
}

html[data-theme="luna"] .header h1 {
  text-shadow: 1px 2px 3px rgba(0, 0, 40, 0.7);
}

html[data-theme="luna"] .subtitle {
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 40, 0.8);
}

/* 합계 카드: 베이지색 창 */
html[data-theme="luna"] .card {
  background: #ece9d8;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 2px solid #0054e3;
  border-radius: 6px;
  box-shadow: 2px 3px 6px rgba(0, 0, 40, 0.45);
}

html[data-theme="luna"] .card::before {
  display: none; /* Aero의 유리 광택 끄기 */
}

html[data-theme="luna"] .card strong {
  text-shadow: none;
}

/* 패널: 파란 테두리 + 파란 제목 표시줄 */
html[data-theme="luna"] .panel {
  background: #ece9d8;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 3px solid #0054e3;
  border-radius: 8px 8px 0 0;
  box-shadow: 3px 4px 8px rgba(0, 0, 40, 0.5);
}

html[data-theme="luna"] .panel h2 {
  padding: 7px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 0 #0f1089;
  border-radius: 5px 5px 0 0;
  border-bottom: none;
  box-shadow: none;
  background: linear-gradient(#3d95ff 0%, #0b5bea 14%, #0054e3 50%, #0a5cf0 86%, #0242c4 100%);
}

/* 지출/수입 선택 버튼 */
html[data-theme="luna"] .type-option span {
  border: 1px solid #003c74;
  border-radius: 3px;
  color: #000;
  background: linear-gradient(#ffffff 0%, #ece9d8 85%, #d6d0c5 100%);
  box-shadow: none;
}

html[data-theme="luna"] .type-option span:hover {
  box-shadow: inset 0 0 0 2px #f8b330; /* XP 특유의 주황색 테두리 */
}

html[data-theme="luna"] .type-option input:checked + span {
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
}

html[data-theme="luna"] .type-option:nth-child(1) input:checked + span {
  border-color: #8a1e0c;
  background: linear-gradient(#ff9d8a 0%, #e0442a 50%, #c3321a 100%);
  box-shadow: none;
}

html[data-theme="luna"] .type-option:nth-child(2) input:checked + span {
  border-color: #003c74;
  background: linear-gradient(#8ec0ff 0%, #2f74d8 50%, #1f5fc4 100%);
  box-shadow: none;
}

/* 입력칸: 평평한 흰색 칸 */
html[data-theme="luna"] #month-picker,
html[data-theme="luna"] .form-row input,
html[data-theme="luna"] .form-row select {
  border: 1px solid #7f9db9;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

html[data-theme="luna"] #month-picker:focus,
html[data-theme="luna"] .form-row input:focus,
html[data-theme="luna"] .form-row select:focus {
  outline: none;
  border-color: #316ac5;
  box-shadow: 0 0 0 1px #316ac5;
}

/* 추가하기 버튼: XP 시작 버튼 같은 초록색 */
html[data-theme="luna"] .submit-btn {
  border: 1px solid #145214;
  border-radius: 4px;
  text-shadow: 1px 1px 1px rgba(0, 60, 0, 0.8);
  background: linear-gradient(#6fdc6f 0%, #2fa82f 50%, #228c22 100%);
  box-shadow: none;
}

html[data-theme="luna"] .submit-btn:hover {
  filter: brightness(1.1);
  box-shadow: inset 0 0 0 2px #f8b330;
}

html[data-theme="luna"] .submit-btn:active {
  filter: brightness(0.92);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.4);
}

/* 카테고리별 지출 막대: XP 진행 표시줄(네모 칸) */
html[data-theme="luna"] .bar-bg {
  height: 14px;
  padding: 1px;
  background: #fff;
  border: 1px solid #686868;
  border-radius: 3px;
  box-shadow: none;
}

html[data-theme="luna"] .bar-fill {
  border-radius: 0;
  box-shadow: none;
  background: repeating-linear-gradient(
    90deg,
    #e0442a 0px,
    #e0442a 8px,
    transparent 8px,
    transparent 10px
  );
}

/* 내역 목록: 마우스를 올리면 XP 파란 선택 색 */
html[data-theme="luna"] .entry-item {
  border-bottom: 1px solid #cdc8b1;
  border-radius: 0;
  box-shadow: none;
}

html[data-theme="luna"] .entry-item:last-child {
  border-bottom: none;
}

html[data-theme="luna"] .entry-item:hover {
  background: #316ac5;
  color: #fff;
  box-shadow: none;
}

html[data-theme="luna"] .entry-item:hover .entry-date,
html[data-theme="luna"] .entry-item:hover .entry-amount {
  color: #fff;
}

/* 삭제 버튼, 더 보기 버튼, 스타일 전환 버튼: XP 기본 버튼 모양 */
html[data-theme="luna"] .delete-btn,
html[data-theme="luna"] .more-btn,
html[data-theme="luna"] .theme-btn {
  border-color: #003c74;
  color: #000;
  text-shadow: none;
  background: linear-gradient(#ffffff 0%, #ece9d8 85%, #d6d0c5 100%);
  box-shadow: none;
}

html[data-theme="luna"] .delete-btn {
  border-radius: 3px;
}

html[data-theme="luna"] .more-btn {
  border-radius: 3px;
}

html[data-theme="luna"] .delete-btn:hover,
html[data-theme="luna"] .more-btn:hover,
html[data-theme="luna"] .theme-btn:hover {
  box-shadow: inset 0 0 0 2px #f8b330;
}

html[data-theme="luna"] .delete-btn:hover {
  color: #fff;
  border-color: #8a1e0c;
  background: linear-gradient(#ff9d8a 0%, #e0442a 50%, #c3321a 100%);
}

html[data-theme="luna"] .theme-btn.active {
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 60, 0.6);
  background: linear-gradient(#4d8cf0 0%, #0a5ae0 100%);
  box-shadow: none;
}

/* 수입 대비 지출 원그래프 */
html[data-theme="luna"] .ratio-chart {
  border: 1px solid #003c74;
  box-shadow:
    0 0 0 3px #ece9d8,
    0 0 0 4px #7f9db9,
    2px 3px 6px rgba(0, 0, 40, 0.4);
}

html[data-theme="luna"] .ratio-chart::before {
  display: none; /* 유리구슬 광택 끄기 */
}

html[data-theme="luna"] .ratio-center {
  background: #ece9d8;
  border: 1px solid #7f9db9;
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.25);
}

/* 월별 막대그래프 */
html[data-theme="luna"] .month-col.current {
  background: #d3e1fa;
  box-shadow: 0 0 0 1px #316ac5;
}

html[data-theme="luna"] .bar-area::before {
  background: #808080;
}

html[data-theme="luna"] .month-bar {
  box-shadow: none;
}

html[data-theme="luna"] .month-bar.plus {
  border-color: #003c74;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #7db0ff, #2f6fd8 55%, #4d8cf0);
}

html[data-theme="luna"] .month-bar.minus {
  border-color: #8a1e0c;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, #ff9d8a, #d73a1f 55%, #f0583e);
}