:root {
  --bg: #f6eadb;
  --card: rgba(255,255,255,.88);
  --card-2: #fffaf3;
  --text: #3d2e20;
  --muted: #6e5c4d;
  --accent: #9a5c2f;
  --accent-dark: #73411f;
  --line: #ead8c4;
  --green: #e8f7e9;
  --red: #fdecec;
  --shadow: 0 16px 40px rgba(82,55,28,.12);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #fff7ee 0%, #f2e0ca 42%, #e5c9a5 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(255,248,240,.75), rgba(245,232,214,.86)), url('https://images.unsplash.com/photo-1556910103-1c02745aae4d?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  z-index: -1;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}
.header, .card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.header {
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.hero h1 { margin: 0 0 8px; font-size: 34px; }
.hero p { margin: 0; color: var(--muted); }
.chips { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
}
.date-box {
  background: linear-gradient(135deg, #fff1db, #fff9f0);
  padding: 18px 20px;
  border-radius: 22px;
  min-width: 260px;
}
.date-box .small { color: var(--muted); font-size: 13px; }
.date-box .big { font-size: 22px; font-weight: 700; margin: 6px 0; }
.grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; }
.card { padding: 24px; }
.card h2 { margin-top: 0; font-size: 28px; }
.card p.sub { margin-top: -8px; color: var(--muted); }
label { display: block; margin-bottom: 8px; font-weight: 700; }
input[type="text"], input[type="password"], textarea, select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
  color: var(--text);
}
textarea { min-height: 90px; resize: vertical; }
.form-group { margin-bottom: 18px; }
.shift-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shift-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 14px 20px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
}
.btn:hover { background: var(--accent-dark); }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--line); }
.notice {
  padding: 14px 16px;
  border-radius: 16px;
  margin-top: 14px;
  font-size: 15px;
}
.success { background: var(--green); }
.error { background: var(--red); }
.info-box {
  margin-top: 14px;
  border: 1px dashed var(--line);
  background: #fcf6ef;
  border-radius: 18px;
  padding: 16px;
  color: var(--muted);
}
.menus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.menu-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 24px;
  padding: 18px;
}
.menu-card.selected { background: #fff2dc; border-color: var(--accent); }
.menu-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px;
}
.badge {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; font-size: 13px;
}
.menu-items {
  background: #faf6f0;
  border-radius: 16px;
  padding: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.tabs { display: flex; gap: 12px; margin-bottom: 20px; }
.tab-link {
  text-decoration: none; color: var(--text); background: var(--card); border: 1px solid rgba(255,255,255,.55); box-shadow: var(--shadow); padding: 14px 18px; border-radius: 18px; font-weight: 700;
}
.admin-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px;
}
.week-block { border: 1px solid var(--line); background: #fcf7f0; border-radius: 24px; padding: 16px; margin-bottom: 18px; }
.option-row { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 14px; margin-top: 12px; }
.option-grid { display: grid; grid-template-columns: 220px 1fr auto; gap: 12px; }
.filters, .stats-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats-card { background: #fff7ec; border-radius: 18px; padding: 16px; border: 1px solid var(--line); }
.stats-card .value { font-size: 30px; font-weight: 800; margin-top: 8px; }
.vote-item { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: #fcf8f2; margin-bottom: 12px; }
.vote-top { display: flex; justify-content: space-between; gap: 12px; }
.vote-sub { color: var(--muted); margin-top: 4px; }
.sep { height: 1px; background: var(--line); margin: 12px 0; }
.table-scroll { max-height: 550px; overflow: auto; }
.small-muted { color: var(--muted); font-size: 14px; }
.center-box { max-width: 480px; margin: 60px auto; }
.footer-note { margin-top: 18px; color: var(--muted); font-size: 14px; }
@media (max-width: 920px) {
  .header, .grid, .option-grid, .filters, .stats-cards, .menus { grid-template-columns: 1fr; display: grid; }
  .header { align-items: flex-start; }
  .date-box { min-width: auto; width: 100%; }
}

html, body {
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body {
  display: block !important;
}

.container {
  max-width: 1200px;
  margin: 30px auto !important;
  padding: 0 20px 40px !important;
  position: relative;
  z-index: 2;
}

.tabs {
  margin: 20px 0 !important;
}

.grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 24px !important;
  margin-top: 20px !important;
}

.card {
  display: block !important;
  background: rgba(255,255,255,0.92) !important;
  border-radius: 24px !important;
  padding: 24px !important;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr !important;
  }
}


.week-days-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.week-day-card {
  background: linear-gradient(180deg, #fff7ec 0%, #fff2df 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(82,55,28,.08);
}

.week-day-card .day-name {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 700;
}

.week-day-card .day-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1;
}

.week-day-card .day-sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .week-days-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .week-days-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .week-days-grid {
    grid-template-columns: 1fr;
  }
}

.big-btn {
  width: 100%;
  font-size: 22px;
  padding: 18px;
  border-radius: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #4CAF50, #2e7d32);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(76,175,80,0.3);
  transition: 0.2s;
}

.big-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(76,175,80,0.4);
}

.navbar {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-left {
  font-weight: 800;
  font-size: 18px;
}

.nav-right a {
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
  color: #333;
  transition: 0.2s;
}

.nav-right a:hover {
  color: #4CAF50;
}

.navbar {
  width: 100%;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #eee;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.nav-left {
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  text-decoration: none;
  font-weight: 700;
  color: #333;
  padding: 10px 14px;
  border-radius: 12px;
  transition: 0.2s;
}

.nav-link:hover {
  background: #f6efe6;
  color: var(--accent-dark);
}

.nav-link.active {
  background: linear-gradient(135deg, #fff1db, #ffe7c7);
  color: var(--accent-dark);
  box-shadow: 0 6px 16px rgba(82,55,28,.08);
}

.nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: #fff6ea;
  border: 1px solid var(--line);
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

@media (max-width: 920px) {
  .navbar {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .nav-burger {
    display: flex;
  }

  .nav-right {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
  }

  .nav-right .nav-link {
    width: 100%;
    text-align: center;
  }

  .nav-toggle:checked ~ .nav-right {
    display: flex;
  }

  .container {
    padding: 18px 14px 32px !important;
  }

  .header {
    padding: 18px !important;
    border-radius: 22px !important;
  }

  .hero h1 {
    font-size: 28px;
  }

  .card {
    padding: 18px !important;
    border-radius: 20px !important;
  }

  .card h2 {
    font-size: 24px;
  }

  .menu-card {
    border-radius: 18px;
  }

  .menu-items {
    font-size: 15px;
  }

  .big-btn {
    font-size: 20px;
    padding: 16px;
  }

  .shift-box {
    grid-template-columns: 1fr !important;
  }

  input[type="text"], input[type="password"], textarea, select {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 24px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 14px;
  }

  .date-box {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .date-box .big {
    font-size: 20px;
  }

  .big-btn {
    font-size: 18px;
    padding: 15px;
    border-radius: 14px;
  }
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.logo-text {
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}

@media (max-width: 600px) {
  .logo {
    height: 30px;
  }

  .logo-text {
    font-size: 16px;
  }
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  height: 72px;
  width: 72px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(82,55,28,.14);
  background: #fff;
}

.logo-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}

.logo-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.brand-link:hover .logo-title {
  color: var(--accent-dark);
}

.brand-link:hover .logo {
  transform: translateY(-1px);
  transition: 0.2s;
}

@media (max-width: 920px) {
  .logo {
    height: 56px;
    width: 56px;
    border-radius: 14px;
  }

  .logo-title {
    font-size: 17px;
  }

  .logo-subtitle {
    font-size: 12px;
  }

  .nav-left {
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .logo {
    height: 48px;
    width: 48px;
    border-radius: 12px;
  }

  .logo-title {
    font-size: 15px;
  }

  .logo-subtitle {
    font-size: 11px;
    margin-top: 2px;
  }
}