/* Кабинет гида — стиль GetYourGuide (светлая тема, оранжевый акцент).
   Имена переменных сохранены (их используют инлайн-стили в app.js), значения — светлые. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #f4f5f6;
  --panel: #ffffff;
  --panel-2: #f4f5f6;
  --border: #e6e8eb;
  --text: #05203c;
  --muted: #5a6872;
  --accent: #ff5533;
  --accent-2: #e8472b;
  --green: #12855b;
  --red: #da3633;
  --amber: #b26b00;
  --shadow-sm: 0 1px 3px rgba(10, 30, 60, .10);
  --shadow-md: 0 6px 20px rgba(10, 30, 60, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px; -webkit-tap-highlight-color: transparent;
}
h1, h2, .title, .found, .name { font-family: "Poppins", sans-serif; letter-spacing: -.01em; }

/* --- Auth --- */
.auth { max-width: 400px; margin: 0 auto; padding: 52px 20px; }
.auth h1 { font-size: 24px; text-align: center; margin-bottom: 2px; }
.auth .sub { color: var(--muted); text-align: center; margin-bottom: 26px; }
.auth form { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); }
.auth .switch { text-align: center; margin-top: 18px; color: var(--muted); }
.auth .switch a { color: var(--accent); cursor: pointer; font-weight: 600; }

/* --- Shell --- */
.shell { padding-bottom: 74px; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; background: var(--panel); border-bottom: 1px solid var(--border);
}
.topbar .title { font-weight: 700; font-size: 17px; }
.topbar .tenant { font-size: 12px; color: var(--muted); }
.topbar button { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }

.content { padding: 16px; max-width: 760px; margin: 0 auto; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; background: var(--panel); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 10px rgba(10, 30, 60, .05);
}
.tabbar button {
  flex: 1; background: none; border: none; color: var(--muted);
  padding: 8px 1px 10px; font-size: 9.5px; display: flex; flex-direction: column;
  align-items: center; gap: 2px; cursor: pointer; font-weight: 500; white-space: nowrap;
}
.tabbar button.active { color: var(--accent); }
.tabbar .ic { font-size: 18px; }

/* --- Common UI --- */
h2 { font-size: 19px; margin: 4px 0 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 15px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.card .name { font-weight: 600; font-size: 15.5px; }
.card .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }

.badge {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--border);
}
.badge.green { color: var(--green); background: #e7f6ee; border-color: #bfe6d0; }
.badge.amber { color: var(--amber); background: #fdf3e2; border-color: #f2ddb4; }
.badge.red { color: var(--red); background: #fdecea; border-color: #f5c6c2; }
.badge.blue { color: #1257a8; background: #e8f0fb; border-color: #c2d8f2; }

button.btn {
  background: var(--accent); color: #fff; border: none; border-radius: 11px;
  padding: 12px 16px; font-size: 15px; font-weight: 600; cursor: pointer; width: 100%;
  font-family: inherit; box-shadow: 0 2px 8px rgba(255, 85, 51, .26); transition: background .15s, box-shadow .15s;
}
button.btn:hover { background: var(--accent-2); box-shadow: 0 4px 14px rgba(255, 85, 51, .34); }
button.btn.secondary { background: var(--panel); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
button.btn.secondary:hover { background: var(--panel-2); }
button.btn.danger { background: var(--red); box-shadow: none; }
button.btn.small { width: auto; padding: 8px 13px; font-size: 13px; border-radius: 9px; }
.btn-row { display: flex; gap: 8px; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin: 13px 0 5px; }
input, select, textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px; color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 85, 51, .12); }
textarea { min-height: 70px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 16px; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
.addbar { margin-bottom: 14px; }

/* --- Modal (bottom sheet) --- */
.modal-bg { position: fixed; inset: 0; background: rgba(5, 32, 60, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal {
  background: var(--panel); border-radius: 18px 18px 0 0; width: 100%; max-width: 760px;
  max-height: 92vh; overflow-y: auto; padding: 20px 16px 28px; box-shadow: 0 -8px 40px rgba(5, 32, 60, .2);
}
.modal h3 { margin: 0 0 14px; font-family: "Poppins"; }
.modal .close { float: right; background: none; border: none; color: var(--muted); font-size: 24px; cursor: pointer; }

/* --- Календарь --- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head button { background: var(--panel); border: 1px solid var(--border); color: var(--text); border-radius: 50%; width: 34px; height: 34px; font-size: 17px; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.cal-cell {
  min-height: 56px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 4px; font-size: 11px; cursor: pointer;
}
.cal-cell.empty-cell { background: transparent; border-color: transparent; cursor: default; }
.cal-cell .d { color: var(--muted); font-weight: 600; }
.cal-cell.today { border-color: var(--accent); }
.cal-cell.today .d { color: var(--accent); font-weight: 700; }
.cal-dot { display: block; background: var(--accent); color: #fff; border-radius: 5px; padding: 1px 4px; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.cal-dot.cancelled { background: var(--red); }
