/* Extra styles for the studio site (on top of /css/style.css). */

/* Anything marked hidden stays hidden, even buttons styled with display: flex. */
[hidden] { display: none !important; }

.studio-tag {
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--navy);
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 4px;
}
.nav a[aria-current="page"] { color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 6px; }
.header-inner .nav + #sign-out { margin-left: 20px; }

.studio-dash { max-width: 980px; }
.section-note { margin: -8px 0 16px; }

/* Form fields the main stylesheet doesn't cover */
input[type="number"], input[type="url"], input[type="time"], input[type="date"],
input[type="datetime-local"], input[type="month"], select, textarea {
  width: 100%;
  font: inherit;
  padding: 10px 14px;
  border: 1px solid var(--sand);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 96px; resize: vertical; }
select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; color: var(--text); margin: 8px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--clay); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.price-field { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--navy); }
.price-field input { width: 130px; }
#settings-fields { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.btn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.hint { font-size: 14px; color: var(--text-soft); margin: 6px 0 0; }

/* Admin tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; border-bottom: 1px solid var(--sand); padding-bottom: 12px; }
.tabs button {
  font: inherit; font-size: 16px; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 999px;
  padding: 8px 18px; color: var(--text);
}
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.tabs button:hover:not([aria-selected="true"]) { background: var(--sand); }
.tab-panel { margin-top: 32px; }
.tab-panel h2 { font-size: 1.5rem; margin-bottom: 16px; }
.tab-panel h3 { font-family: var(--font-heading); font-weight: 500; color: var(--navy); font-size: 1.2rem; margin: 0; }

/* Lists of things (teachers, session types, packs) */
.stack { display: grid; gap: 12px; }
.item-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.item-head .grow { flex: 1; min-width: 180px; }
.item-head .muted { font-size: 15px; display: block; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--sand); flex: none; }
.badge-off { background: #EEE7DE; color: var(--text-soft); }
.badge-cancelled_by_client, .badge-cancelled_by_teacher { background: #EEE7DE; color: var(--text-soft); }

/* Tables (report) */
.table-wrap { overflow-x: auto; }
table.report { width: 100%; border-collapse: collapse; background: #FFFCF7; border: 1px solid var(--sand); border-radius: 16px; overflow: hidden; }
table.report th, table.report td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--sand); white-space: nowrap; }
table.report th:first-child, table.report td:first-child { text-align: left; }
table.report th { font-weight: 500; color: var(--navy); font-size: 15px; background: var(--cream); }
table.report tfoot td { font-weight: 500; color: var(--navy); }
table.report tr:last-child td { border-bottom: 0; }

/* Teacher portal: weekly hours */
.week { display: grid; gap: 8px; }
.day-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; padding: 14px 20px; }
.day-name { font-weight: 500; color: var(--navy); padding-top: 10px; }
.ranges { display: grid; gap: 8px; }
.range { display: flex; gap: 8px; align-items: center; }
.range input { max-width: 150px; }
.range .to { color: var(--text-soft); }
.off-row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.off-row .grow { flex: 1; }
.session-action { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 760px) {
  .day-row { grid-template-columns: 1fr; }
  .day-name { padding-top: 0; }
}
