:root{
  --bg: #ffffff;
  --surface: #f7fbff;
  --surface-2: #eef7ff;
  --text: #0b1220;
  --muted: #516179;
  --border: rgba(18, 62, 96, 0.16);
  --shadow: 0 10px 30px rgba(10, 35, 60, 0.10);

  --green: #16a34a;
  --green-2: #22c55e;
  --blue: #38bdf8;
  --blue-2: #0ea5e9;
  --accent: linear-gradient(135deg, var(--green) 0%, var(--blue-2) 100%);
  --focus: rgba(56, 189, 248, 0.35);

  --radius: 16px;
  --radius-sm: 12px;
  --pad: 18px;
  --btn-h: 44px;
  --btn-pad-x: 16px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(56,189,248,0.20), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(34,197,94,0.18), transparent 55%),
    var(--bg);
}

.container{
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.app-shell{ min-height: 100%; display:flex; flex-direction:column; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid var(--border);
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 16px;
}
.topbar__brand{ display:flex; align-items:center; }
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand__dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 6px 18px rgba(14,165,233,0.25);
}
.topbar__actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn{
  height: var(--btn-h);
  padding: 0 var(--btn-pad-x);
  border-radius: 12px;
  border: 1px solid transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  text-decoration:none;
  font-weight: 700;
  line-height: 1;
  cursor:pointer;
  user-select:none;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }
.btn:focus{ outline: none; box-shadow: 0 0 0 4px var(--focus); }
.btn--primary{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(22,163,74,0.18);
}
.btn--primary:hover{ box-shadow: 0 14px 28px rgba(14,165,233,0.22); }
.btn--ghost{
  background: rgba(255,255,255,0.55);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover{ background: rgba(238,247,255,0.9); }
.btn--danger{
  background: rgba(239,68,68,0.10);
  border-color: rgba(239,68,68,0.28);
  color: #b91c1c;
}
.btn--full{ width: 100%; }

.grid{
  display:grid;
  gap: 16px;
}
.grid--2{ grid-template-columns: 1fr 1fr; }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){
  .grid--2, .grid--3{ grid-template-columns: 1fr; }
  .topbar{ position: static; }
}

.card{
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card__inner{ padding: var(--pad); }
.card__title{ margin:0; font-size: 18px; letter-spacing: 0.2px; }
.card__subtitle{ margin: 6px 0 0; color: var(--muted); }

.section-title{
  margin: 18px 0 10px;
  font-size: 22px;
  letter-spacing: 0.2px;
}
.muted{ color: var(--muted); }

.field{ display:flex; flex-direction:column; gap: 7px; }
.label{ font-weight: 700; font-size: 13px; color: rgba(11,18,32,0.86); }
.input, .select, .textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  padding: 12px 12px;
  color: var(--text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.textarea{ min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus{
  border-color: rgba(14,165,233,0.55);
  box-shadow: 0 0 0 4px var(--focus);
}
.help{ font-size: 12px; color: var(--muted); }

/* Calendar picker (minimal style like screenshot) */
.fixed-picker{
  border: 0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(10, 35, 60, 0.10);
  width: 100%;
}
.fixed-picker__head{
  position: relative;
  background: #d9d9d9;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.10);
}
.fixed-picker__spiral{
  display:none;
}
.fixed-picker__headRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.fixed-picker__title{
  font-weight: 900;
  text-align:center;
  flex: 1;
  letter-spacing: 0.2px;
}
.fixed-picker__nav{
  width: 54px;
  height: 42px;
  border-radius: 0;
  border: 0;
  background: transparent;
  cursor:pointer;
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: rgba(0,0,0,0.70);
}
.fixed-picker__nav:disabled{ opacity: 0.35; cursor: not-allowed; }
.fixed-picker__grid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.fixed-picker__dow{
  font-size: 11px;
  font-weight: 900;
  background: #efefef;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-align:center;
  padding: 8px 0;
  color: rgba(0,0,0,0.55);
}
.fixed-picker__dow--sun{ color: #d11a2a; }
.fixed-picker__day{
  height: 52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 0;
  cursor: default;
  user-select:none;
  font-weight: 900;
  background: #fff;
  color: rgba(0,0,0,0.25);
  pointer-events: none; /* default: not clickable */
}
.fixed-picker__day--sun{ color: #d11a2a; }
.fixed-picker__day--outside{
  color: rgba(0,0,0,0.16);
  background: #fff;
}
.fixed-picker__day--disabled{
  cursor: not-allowed;
  pointer-events: none;
}
.fixed-picker__day--enabled{
  cursor: pointer;
  pointer-events: auto; /* only enabled days clickable */
  color: rgba(0,0,0,0.92);
}
.fixed-picker__day--enabled:hover{
  background: rgba(0,0,0,0.04);
}
.fixed-picker__num{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.fixed-picker__day--selected{
  /* thin highlight box like screenshot */
  box-shadow: inset 0 0 0 2px rgba(201,176,138,0.85);
}
.fixed-picker__day--selected .fixed-picker__num{
  background: #2f80ed;
  color: #fff;
}

.flash{
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(238,247,255,0.7);
}
.flash--success{ background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.25); }
.flash--error{ background: rgba(239,68,68,0.10); border-color: rgba(239,68,68,0.25); }
.flash--info{ background: rgba(56,189,248,0.10); border-color: rgba(56,189,248,0.22); }

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.78);
}
.table th,.table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(18, 62, 96, 0.10);
  text-align:left;
  vertical-align: top;
  font-size: 14px;
}
.table th{ font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(11,18,32,0.70); }
.table tr:last-child td{ border-bottom:none; }

.footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  padding: 18px 0;
  color: rgba(11,18,32,0.62);
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}
.footer__muted{ color: rgba(11,18,32,0.50); }

/* Reserve space for fixed footer */
main.container{
  padding-bottom: 92px;
}

