/* =========================================================
   TM3 — Admin UI  |  Modern & Elegant Design v2
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary:        #4f46e5;
  --primary-dark:   #3730a3;
  --primary-light:  #ede9fe;
  --primary-glow:   rgba(79,70,229,.18);
  --success:        #059669;
  --success-light:  #d1fae5;
  --warning:        #d97706;
  --warning-light:  #fef3c7;
  --danger:         #dc2626;
  --danger-light:   #fee2e2;
  --info:           #0284c7;
  --info-light:     #e0f2fe;
  --secondary:      #6b7280;
  --secondary-light:#f3f4f6;
  --sidebar-bg:     #0f0e1a;
  --sidebar-width:  248px;
  --surface:        #ffffff;
  --bg:             #f4f3fb;
  --border:         #e5e7eb;
  --text:           #111827;
  --text-light:     #6b7280;
  --text-xlight:    #9ca3af;
  --shadow-sm:      0 1px 3px rgba(0,0,0,.07);
  --shadow:         0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:      0 16px 40px rgba(0,0,0,.12);
  --radius:         12px;
  --radius-sm:      8px;
  --topbar-h:       64px;
  --transition:     .2s cubic-bezier(.4,0,.2,1);
  --transition-slow:.35s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}
/* ════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════ */
body.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0e1a 0%, #1e1b4b 60%, #312e81 100%);
  margin: 0;
}
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--sidebar-bg);
  position: fixed;
  left: 0; top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow: hidden;
  transition: transform var(--transition);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.brand > span { font-size: 1.7rem; flex-shrink: 0; }
.brand > div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  overflow: hidden;
}
.brand > div > :first-child {
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand > div > span {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  font-weight: 400;
}

.sidebar nav { flex: 1; padding: 14px 12px; }
.nav-section {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  padding: 18px 8px 8px;
}
.nav-section:first-child { padding-top: 6px; }
.nav-link, .sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.62);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}
.nav-link:hover, .sidebar nav a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.nav-link.active {
  background: linear-gradient(90deg, rgba(79,70,229,.85), rgba(79,70,229,.5));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(79,70,229,.4);
}
.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: #fff;
  border-radius: 0 3px 3px 0;
}

.logout-btn {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.logout-btn a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  font-size: .83rem;
  font-weight: 500;
  transition: all var(--transition);
}
.logout-btn a:hover {
  background: rgba(220,38,38,.15);
  color: #fca5a5;
}

/* ════════════════════════════════════════
   MAIN CONTENT
   ════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ── */
.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.88);
}
.topbar h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 14px 6px 10px;
  border-radius: 100px;
  font-size: .83rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: default;
  transition: all var(--transition);
}
.user-info:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
  border-radius: 6px;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg); }

/* ── Page content ── */
.page-content {
  padding: 28px;
  flex: 1;
  animation: fadeInUp .3s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════
   CARDS
   ════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.01em;
}

/* ════════════════════════════════════════
   STATS GRID
   ════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: .05;
  transform: translate(20%, -30%);
  pointer-events: none;
}
.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
a.stat-card,
a.stat-card:visited,
a.stat-card:hover,
a.stat-card:focus {
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
  outline: none;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.stat-card:hover .stat-icon { transform: scale(1.1); }
.stat-icon.blue   { background: #eff6ff; }
.stat-icon.green  { background: var(--success-light); }
.stat-icon.orange { background: var(--warning-light); }
.stat-icon.red    { background: var(--danger-light); }
.stat-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.1;
  overflow-wrap: break-word;
}
.stat-card > div:last-child {
  min-width: 0;
}
.stat-label {
  font-size: .77rem;
  font-weight: 600;
  color: var(--text-xlight);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 3px;
}

/* ════════════════════════════════════════
   TABLE
   ════════════════════════════════════════ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
thead tr {
  background: linear-gradient(90deg, #f8f7ff, #ede9fe);
  border-bottom: 2px solid #c4b5fd;
}
thead th {
  padding: 12px 14px;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--primary-dark);
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), transform var(--transition);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #fafafe; }
tbody tr:active { background: #f0f0ff; }
tbody td {
  padding: 13px 14px;
  color: var(--text);
  vertical-align: middle;
}
tbody td strong {
  font-weight: 600;
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge-success   { background: var(--success-light);   color: #065f46; }
.badge-warning   { background: var(--warning-light);   color: #92400e; }
.badge-danger    { background: var(--danger-light);    color: #991b1b; }
.badge-info      { background: var(--info-light);      color: #075985; }
.badge-secondary { background: var(--secondary-light); color: var(--secondary); }

/* ════════════════════════════════════════
   FORMS
   ════════════════════════════════════════ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .01em;
}
.form-control {
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .88rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.form-control::placeholder { color: var(--text-xlight); }
textarea.form-control { resize: vertical; min-height: 90px; line-height: 1.6; }
select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .01em;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 6px 12px; font-size: .8rem; border-radius: 6px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 2px 8px rgba(79,70,229,.3);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-dark), #312e81);
  box-shadow: 0 4px 14px rgba(79,70,229,.4);
  transform: translateY(-1px);
}
.btn-success {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  box-shadow: 0 2px 8px rgba(5,150,105,.25);
}
.btn-success:hover:not(:disabled) { background: linear-gradient(135deg, #047857, #065f46); transform: translateY(-1px); }
.btn-warning {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
  box-shadow: 0 2px 8px rgba(217,119,6,.25);
}
.btn-warning:hover:not(:disabled) { background: linear-gradient(135deg, #b45309, #92400e); transform: translateY(-1px); }
.btn-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220,38,38,.25);
}
.btn-danger:hover:not(:disabled) { background: linear-gradient(135deg, #b91c1c, #991b1b); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 13px 24px; font-size: .95rem; border-radius: 10px; }

/* ── Spinner ── */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════
   ALERTS
   ════════════════════════════════════════ */
.alert {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: .86rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  line-height: 1.5;
  animation: slideDown .25s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.alert-success { background: var(--success-light); color: #065f46; border: 1px solid #6ee7b7; }
.alert-error   { background: var(--danger-light);  color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: var(--warning-light); color: #92400e; border: 1px solid #fcd34d; }
.alert-info    { background: var(--info-light);    color: #075985; border: 1px solid #7dd3fc; }
.alert code {
  background: rgba(0,0,0,.08);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: .82rem;
}

/* ════════════════════════════════════════
   TOAST NOTIFICATIONS
   ════════════════════════════════════════ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  font-size: .88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 420px;
  pointer-events: auto;
  animation: toastIn .3s ease;
  transition: all var(--transition);
}
.toast.removing { animation: toastOut .25s ease forwards; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}
.toast-success { border-left: 4px solid var(--success); }
.toast-error   { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info    { border-left: 4px solid var(--info); }

/* ════════════════════════════════════════
   MODAL
   ════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 500;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s ease;
}
.modal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════ */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0e1a 0%, #1e1b4b 60%, #312e81 100%);
}
body.login-page .login-wrap {
  flex: 1;
  background: transparent;
}
.login-wrap {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0e1a 0%, #1e1b4b 60%, #312e81 100%);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login-wrap::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79,70,229,.25) 0%, transparent 70%);
  pointer-events: none;
}
.login-wrap::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,.2) 0%, transparent 70%);
  pointer-events: none;
}
.login-card {
  background: rgba(255,255,255,.97);
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  position: relative;
  z-index: 1;
  animation: modalIn .4s ease;
}
.logo-area {
  text-align: center;
  margin-bottom: 32px;
}
.logo-area > div { font-size: 3rem; margin-bottom: 12px; }
.logo-area h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.logo-area p {
  font-size: .83rem;
  color: var(--text-xlight);
}
.login-card .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: .95rem;
  border-radius: 10px;
  margin-top: 4px;
}

/* ════════════════════════════════════════
   SCHEDULE / SLOTS
   ════════════════════════════════════════ */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.day-card {
  background: #fafafa;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-light);
}
.day-card:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); transform: translateY(-1px); }
.day-card.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* ════════════════════════════════════════
   DAY CHECKBOXES (Schedule)
   ════════════════════════════════════════ */
.day-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: var(--bg);
  padding: 7px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  user-select: none;
}
.day-checkbox:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.day-checkbox:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}
.day-checkbox input[type="checkbox"] {
  accent-color: var(--primary);
}

/* ════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-light);
}
.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: .5;
}
.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: .88rem;
  color: var(--text-xlight);
  max-width: 320px;
  margin: 0 auto;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .page-content { padding: 20px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row, .form-row.cols-3 { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; }
  .hamburger { display: block; }
  .topbar h1 { font-size: 1rem; }
    /* ── Sidebar restructured for mobile ── */
  .sidebar {
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .sidebar .brand {
    flex-shrink: 0;
  }
  .sidebar nav {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 4px;
  }
  .sidebar .logout-btn {
    flex-shrink: 0;
  }
  /* Overlay backdrop outside sidebar */
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    pointer-events: none;
  }
  .sidebar-backdrop.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 32px 24px; }
  .card { padding: 20px 16px; }
  .topbar { padding: 0 12px; height: 56px; }
  .page-content { padding: 16px 12px; }
}
