/* --------- THEME --------- */
:root{
  --bg:#fdf8f3;
  --card:#ffffff;
  --primary:#e6a57e;
  --primary-dark:#d68a5f;
  --green:#7fbf9a;
  --text:#2e2e2e;
  --muted:#8a8a8a;
  --shadow:0 10px 24px rgba(0,0,0,.08);
  --radius:18px;
}

*{
  box-sizing:border-box;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
}

body{
  margin:0;
  background:linear-gradient(180deg,#fff 0%, var(--bg) 100%);
  color:var(--text);
  animation:fadeIn .35s ease;
}

@keyframes fadeIn{
  from{opacity:0; transform:translateY(6px)}
  to{opacity:1; transform:translateY(0)}
}

/* --------- LAYOUT --------- */
.container{
  max-width:720px;
  margin:auto;
  padding:16px;
  padding-bottom:24px;
}

/* --------- CARDS --------- */
.card{
  background:var(--card);
  padding:18px;
  border-radius:var(--radius);
  margin-bottom:16px;
  box-shadow:var(--shadow);
  transition:transform .15s ease, box-shadow .15s ease;
}

.card:active{
  transform:scale(.98);
  box-shadow:0 6px 16px rgba(0,0,0,.1);
}

.worker{
  border-left:6px solid var(--green);
}

/* --------- TEXT --------- */
h2,h3,h4{ margin:0 0 10px; }
p{ margin:6px 0; color:var(--muted); }

/* --------- INPUTS --------- */
label{ font-size:14px; color:var(--muted); }

input, select, textarea{
  width:100%;
  padding:14px;
  margin-top:6px;
  margin-bottom:12px;
  border-radius:14px;
  border:1px solid #e6e6e6;
  font-size:15px;
  outline:none;
}

input:focus, select:focus, textarea:focus{
  border-color:var(--primary);
}

/* --------- BUTTONS --------- */
button{
  width:100%;
  padding:15px;
  border:none;
  border-radius:16px;
  cursor:pointer;
  font-size:16px;
  font-weight:600;
  transition:transform .15s ease, box-shadow .15s ease, background .2s ease;
}

button:active{ transform:scale(.96); }

.save{
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  box-shadow:0 10px 22px rgba(230,165,126,.35);
}

.save:hover{
  box-shadow:0 12px 26px rgba(230,165,126,.45);
}

/* --------- SMALL ACTION BUTTONS --------- */
button.small{
  padding:10px 12px;
  font-size:14px;
  border-radius:12px;
}

/* --------- CHOICE (YES/NO) --------- */
.choice{
  display:flex;
  gap:12px;
  margin:8px 0 12px;
}

.choice button{
  flex:1;
  background:#f2f2f2;
  color:#444;
}

.choice button.active-yes{
  background:#e6f4ee;
  color:#1f6b4f;
  box-shadow:0 6px 14px rgba(127,191,154,.25);
}

.choice button.active-no{
  background:#f6dede;
  color:#7a2c2c;
  box-shadow:0 6px 14px rgba(224,122,122,.25);
}

/* --------- LINKS --------- */
a{ text-decoration:none; color:inherit; }

/* --------- UTIL --------- */
.spacer{ height:8px; }
.center{ text-align:center; }
.header h2 { margin-bottom: 4px; }
.header p { color:#777; font-size:14px }

.worker-card{
  background:#fff;
  border-radius:18px;
  padding:16px;
  margin-bottom:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.worker-card .row{
  display:flex;
  align-items:center;
  gap:12px;
}

.worker-card .icon{
  font-size:30px;
}

.worker-card .active{
  margin-left:auto;
  background:#f2d9c9;
  padding:6px 10px;
  border-radius:12px;
  font-size:12px;
}

.worker-card .salary{
  margin:12px 0;
}

.delete{
  background:#f6dede;
  color:#7a2c2c;
  border:none;
  width:100%;
  padding:10px;
  border-radius:12px;
}

.type-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:16px;
}

.type-card{
  background:#f4f4f4;
  border-radius:16px;
  padding:14px;
  text-align:center;
  cursor:pointer;
}

.type-card.active{
  background:#f2d9c9;
  border:2px solid #e6a57e;
}

.bottom-bar{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:#fff;
  padding:10px;
  box-shadow:0 -6px 18px rgba(0,0,0,.1);
}

.bottom-bar.two{
  display:flex;
  gap:10px;
}

.add-btn{
  background:#e6a57e;
  color:#fff;
  border:none;
  width:100%;
  padding:14px;
  border-radius:16px;
  font-size:16px;
}

.cancel-btn{
  background:#fff;
  border:2px solid #e6a57e;
  color:#e6a57e;
  width:100%;
  padding:14px;
  border-radius:16px;
}
.choice{
  display:flex;
  gap:10px;
  margin:8px 0 14px;
}

.choice button{
  flex:1;
  padding:12px;
  border:none;
  border-radius:12px;
  background:#eee;
}

.choice button.yes{
  background:#c8efd4;
  color:#145c2e;
}

.choice button.no{
  background:#f4c7c7;
  color:#7a1e1e;
}
.card h4 {
  margin-bottom: 8px;
}

.card p {
  margin: 6px 0;
}
.soft {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.soft-label {
  font-size: 14px;
  color: #777;
  margin-bottom: 6px;
  display: block;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  font-size: 15px;
}

.yes {
  background: #d7f3e3;
  color: #1b6b3a;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.no {
  background: #f7d6d6;
  color: #7b1d1d;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.neutral {
  background: #eee;
  color: #777;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
}
/* ---------- WORKER CARD ---------- */
.worker-card {
  padding: 16px;
}

.worker-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.muted {
  font-size: 13px;
  color: #777;
}

.salary {
  font-weight: bold;
  margin-top: 4px;
}

/* ---------- OPEN BUTTON ---------- */
.open-btn {
  margin-top: 14px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #eee;
  font-size: 15px;
}

/* ---------- TOGGLE SWITCH ---------- */
.switch {
  width: 46px;
  height: 26px;
  border-radius: 20px;
  background: #ccc;
  position: relative;
  transition: 0.3s;
}

.switch .knob {
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

.switch.on {
  background: #9adbb3;
}

.switch.on .knob {
  left: 22px;
}

.switch.off {
  background: #ddd;
}
textarea {
  width: 100%;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid #ddd;
  margin-top: 10px;
  font-family: inherit;
}

.muted {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
}
.row-btns{
  display:flex;
  gap:10px;
  margin-top:14px;
}

.row-btns button{
  flex:1;
  padding:10px;
  border:none;
  border-radius:10px;
}

.danger{
  background:#f7d6d6;
  color:#7b1d1d;
}
.bank-row{
  display:flex;
  justify-content:space-between;
  margin:8px 0;
}
.soft {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.muted {
  font-size: 13px;
  color: #777;
}

.yes {
  margin-top: 6px;
  padding: 4px 10px;
  background: #d7f3e3;
  color: #1b6b3a;
  border-radius: 12px;
  font-size: 13px;
}
.heart-card {
  padding: 40px 20px;
}

.heart {
  font-size: 48px;
  margin-bottom: 10px;
}
/* ---------- SECTIONS ---------- */
.section-title{
  font-size:16px;
  margin-bottom:12px;
  color:#333;
}

.section-gap{
  height:14px;
}

/* ---------- SOFT CARD ---------- */
.soft{
  background:#fff;
  border-radius:18px;
  box-shadow:0 10px 25px rgba(0,0,0,0.05);
}

/* ---------- BIG BUTTON ---------- */
.big-btn{
  padding:14px;
  font-size:16px;
  border-radius:14px;
}

/* ---------- WORKER CARD ---------- */
.worker-card{
  margin-top:14px;
}

.worker-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}

.worker-name{
  font-size:16px;
  font-weight:600;
}

.worker-meta{
  font-size:13px;
  color:#777;
  margin-top:2px;
}

.worker-salary{
  font-weight:600;
  margin-top:6px;
}

/* ---------- BUTTON ROW ---------- */
.row-btns{
  display:flex;
  gap:10px;
  margin-top:14px;
}

.row-btns button{
  flex:1;
  padding:10px;
  border-radius:12px;
  border:none;
  font-size:14px;
}

.row-btns .danger{
  background:#f6dada;
  color:#8a1f1f;
}
/* SPLASH */
.splash-body{
  margin:0;
  height:100vh;
  background:#fff6ef;
  display:flex;
  justify-content:center;
  align-items:center;
}

.splash{
  text-align:center;
}

.heart{
  font-size:120px;
  cursor:pointer;
  animation:pulse 1.2s infinite;
}

@keyframes pulse{
  0%{transform:scale(1)}
  50%{transform:scale(1.15)}
  100%{transform:scale(1)}
}

.explode{
  animation:boom 0.8s forwards;
}

@keyframes boom{
  to{transform:scale(8); opacity:0}
}

.love-text{
  font-size:26px;
  opacity:0;
  margin-top:20px;
  transition:0.6s;
}

.love-text.show{
  opacity:1;
}
/* HISTORY */
.history-card{
  margin-bottom:12px;
}

.history-date{
  font-weight:600;
  margin-bottom:6px;
}

.history-row{
  display:flex;
  gap:8px;
  margin-bottom:6px;
}

.history-pay{
  color:#1b7f3a;
  font-weight:600;
}

.pill{
  padding:4px 10px;
  border-radius:20px;
  font-size:13px;
  font-weight:500;
}

.pill.yes{
  background:#e6f6ec;
  color:#1b7f3a;
}

.pill.no{
  background:#fdeaea;
  color:#b42318;
}

.empty{
  text-align:center;
  color:#777;
  margin-top:20px;
}

/* NAV FIX */
.nav button{
  display:flex;
  flex-direction:column;
  align-items:center;
  font-size:12px;
}

.nav button span{
  font-size:10px;
}

.nav .active{
  background:#f3e1d3;
}
/* BOTTOM NAV */
.bottom-nav{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  height:56px;
  background:#fff;
  display:flex;
  box-shadow:0 -2px 8px rgba(0,0,0,0.1);
}

.bottom-nav button{
  flex:1;
  border:none;
  background:none;
  font-size:12px;
  color:#666;
}

.bottom-nav button.active{
  color:#d27c4a;
  font-weight:600;
}

.bottom-nav button:hover{
  background:#f5f5f5;
}
.bank-row{
  display:flex;
  justify-content:space-between;
  padding:6px 0;
  border-bottom:1px dashed #ddd;
}
textarea{
  width:100%;
  min-height:90px;
  padding:12px;
  border-radius:12px;
  border:1px solid #ddd;
  font-size:15px;
}

.note-bubble{
  background:#fff7f2;
  border-radius:14px;
  padding:12px;
  margin-top:10px;
}

.note-text{
  font-size:15px;
  margin-bottom:6px;
}

.note-meta{
  font-size:11px;
  color:#777;
}

.note-actions{
  display:flex;
  gap:10px;
}

.note-actions button{
  border:none;
  padding:5px 12px;
  border-radius:10px;
  font-size:12px;
}

.note-actions .danger{
  background:#fdeaea;
  color:#b42318;
}
.worker-card{
  padding:16px;
}

.worker-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* Clean toggle (NO LINE) */
.toggle{
  position:relative;
  width:46px;
  height:26px;
}

.toggle input{
  display:none;
}

.toggle span{
  position:absolute;
  inset:0;
  background:#ddd;
  border-radius:30px;
  cursor:pointer;
}

.toggle span::before{
  content:"";
  position:absolute;
  width:20px;
  height:20px;
  left:3px;
  top:3px;
  background:#fff;
  border-radius:50%;
  transition:0.3s;
}

.toggle input:checked + span{
  background:#7bcf9c;
}

.toggle input:checked + span::before{
  transform:translateX(20px);
}

.worker-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
}

.worker-actions .small{
  flex:1;
}
.month-header {
  display:flex;
  justify-content:space-between;
  cursor:pointer;
  font-weight:600;
}

.month-body {
  display:none;
  margin-top:10px;
}

.month-body.show {
  display:block;
}

.day-row {
  padding:10px;
  margin-top:8px;
  background:#f9f9f9;
  border-radius:8px;
  font-size:14px;
}
/* ---------- GENERAL ---------- */
* {
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(#fff7ef, #ffffff);
}

/* ---------- INTRO ---------- */
.intro {
  position: fixed;
  inset: 0;
  background: linear-gradient(#ffd8b8, #ffb88c);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.heart {
  font-size: 96px;
  animation: pulse 1.5s infinite;
  cursor: pointer;
}

.love-text {
  margin-top: 20px;
  font-size: 22px;
  opacity: 0.9;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.fade-out {
  animation: fadeOut 1.2s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(1.3);
  }
}

/* ---------- APP ---------- */
.hidden {
  display: none;
}

.container {
  padding: 20px;
  padding-bottom: 90px;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.center {
  text-align: center;
}

.soft {
  background: linear-gradient(#fff, #fff4ea);
}

/* ---------- HOME GRID ---------- */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.home-grid button {
  padding: 18px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  background: #e09b6b;
  color: white;
  cursor: pointer;
}

.home-grid button:hover {
  background: #d4885b;
}

/* ---------- BOTTOM NAV ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.bottom-nav button {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}
/* 🌈 HOME BACKGROUND */
.home-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(#fff7ef, #fff);
}

.home-bg span {
  position: absolute;
  width: 280px;
  height: 280px;
  background: rgba(255, 200, 160, 0.35);
  border-radius: 50%;
  animation: float 18s infinite ease-in-out;
}

.home-bg span:nth-child(1){
  top:-80px; left:-80px;
}
.home-bg span:nth-child(2){
  bottom:-100px; right:-60px;
  animation-delay:6s;
}
.home-bg span:nth-child(3){
  top:45%; left:60%;
  animation-delay:12s;
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-35px) scale(1.1); }
  100% { transform: translateY(0) scale(1); }
}

/* 🌸 HOME LAYOUT */
.home-screen {
  min-height: 100vh;
  padding: 80px 20px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* 🌼 GREETING */
.home-card {
  background: white;
  padding: 26px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  animation: fadeUp 1.2s ease;
}

.home-card h1 {
  margin: 0;
  font-size: 26px;
}

.home-card .sub {
  margin-top: 8px;
  font-size: 14px;
  color: #777;
}

/* 🕊️ QUOTE */
.quote-card {
  max-width: 340px;
  background: linear-gradient(135deg, #fff, #fff2e6);
  padding: 20px;
  border-radius: 18px;
  font-size: 15px;
  text-align: center;
  color: #555;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  animation: breathe 4s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity:0; transform: translateY(25px); }
  to { opacity:1; transform: translateY(0); }
}

@keyframes breathe {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
/* ---------- BASE ---------- */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #fffaf5;
  overflow-x: hidden;
}

/* ---------- INTRO ---------- */
.intro {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, #ffd1b3, #ffb88c);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.heart {
  font-size: 96px;
  animation: pulse 1.4s infinite;
  cursor: pointer;
  filter: drop-shadow(0 0 20px rgba(255,0,0,.4));
}

.love-text {
  margin-top: 16px;
  font-size: 22px;
  opacity: .9;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.fade-out {
  animation: fadeOut 1.2s forwards;
}

@keyframes fadeOut {
  to { opacity: 0; transform: scale(1.4); }
}

/* ---------- BACKGROUND ---------- */
.home-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.home-bg span {
  position: absolute;
  width: 260px;
  height: 260px;
  background: rgba(255, 190, 150, .35);
  border-radius: 50%;
  animation: float 18s infinite ease-in-out;
}

.home-bg span:nth-child(1){ top:-80px; left:-80px; }
.home-bg span:nth-child(2){ bottom:-100px; right:-80px; animation-delay:6s; }
.home-bg span:nth-child(3){ top:40%; left:60%; animation-delay:12s; }

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-40px) scale(1.1); }
  100% { transform: translateY(0) scale(1); }
}

/* ---------- HOME ---------- */
.hidden { display:none; }

.home-screen {
  min-height: 100vh;
  padding: 90px 20px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.home-card {
  background: white;
  padding: 26px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 12px 35px rgba(0,0,0,.08);
  animation: rise 1.1s ease;
}

@keyframes rise {
  from { opacity:0; transform: translateY(25px); }
  to { opacity:1; transform: translateY(0); }
}

.quote-card {
  background: linear-gradient(#fff, #fff2e6);
  padding: 20px;
  border-radius: 18px;
  text-align: center;
  max-width: 340px;
  color: #555;
  animation: breathe 4s infinite ease-in-out;
}

@keyframes breathe {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ---------- NIGHT MODE ---------- */
body.night {
  background: #0f172a;
  color: #e5e7eb;
}

body.night .home-card,
body.night .quote-card {
  background: #1e293b;
  color: #e5e7eb;
  box-shadow: 0 0 30px rgba(255,200,120,.15);
}

body.night .home-bg span {
  background: rgba(100,150,255,.25);
}

/* ---------- NIGHT TOGGLE ---------- */
.night-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  background: white;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  cursor: pointer;
  z-index: 100;
}

/* ---------- BOTTOM NAV ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  box-shadow: 0 -6px 25px rgba(0,0,0,.12);
}

.bottom-nav button {
  background: none;
  border: none;
  font-size: 22px;
  opacity: .6;
}

.bottom-nav button.active {
  opacity: 1;
}
/* ---------- NIGHT MODE GLOBAL ---------- */
/* ---------- NIGHT MODE (NO GLOW) ---------- */
body.night {
  background: #0f172a;
  color: #e5e7eb;
}

body.night .card,
body.night .home-card,
body.night .quote-card {
  background: #1e293b;
  color: #e5e7eb;
  box-shadow: none;   /* ❌ glow removed */
}

body.night input,
body.night select,
body.night textarea {
  background: #020617;
  color: #e5e7eb;
  border-color: #334155;
}

body.night .bottom-nav {
  background: #020617;
  box-shadow: none;   /* ❌ glow removed */
}

body.night .bottom-nav button {
  color: #e5e7eb;
}

/* ---------- EYE COMFORT MODE (NO GLOW) ---------- */
body.eye {
  filter: brightness(0.85) contrast(0.9);
  background: #020617;
  color: #d1d5db;
}

body.eye .card,
body.eye .home-card,
body.eye .quote-card {
  background: #1a2333;
  color: #d1d5db;
  box-shadow: none;   /* ❌ glow removed */
}

body.eye input,
body.eye textarea,
body.eye select {
  background: #020617;
  color: #d1d5db;
  border-color: #334155;
}

/* ---------- TOGGLE BUTTONS (CLEAN) ---------- */
.night-toggle,
.eye-toggle {
  background: #ffffff;
  color: #000;
  box-shadow: none;   /* ❌ glow removed */
}

body.night .night-toggle,
body.eye .eye-toggle {
  background: #1e293b;
  color: #e5e7eb;
  box-shadow: none;   /* ❌ glow removed */
}
/* ================== REMOVE ALL GLOW ================== */

/* Buttons */
button,
button:hover,
button:active,
button:focus {
  box-shadow: none !important;
  outline: none !important;
  filter: none !important;
}

/* Save / action buttons */
button.save,
button.small,
.feature-card,
.home-grid button {
  box-shadow: none !important;
}

/* Bottom navigation buttons */
.bottom-nav button,
.bottom-nav button:hover,
.bottom-nav button.active {
  box-shadow: none !important;
  filter: none !important;
}

/* Night mode buttons */
body.night button,
body.eye button {
  box-shadow: none !important;
  filter: none !important;
}

/* Toggle buttons (🌙 👁️) */
.night-toggle,
.eye-toggle {
  box-shadow: none !important;
  filter: none !important;
}

/* Remove hover lighting */
button:hover {
  background-image: none !important;
}

/* Remove focus ring (mobile safe) */
button:focus-visible {
  outline: none !important;
}

