/* Material 3 base theme overrides and CSS reset-lite */
:root {
  --md-sys-color-primary: #2952E3; /* deeper material-like blue */
  --md-sys-color-secondary: #4E5BA6;
  --md-sys-color-background: #F8FAFF;
  --md-sys-color-surface: #FFFFFF;
  --md-sys-color-on-surface: #1C1B1F;
  --md-sys-typescale-body-font: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
}

html, body { background: var(--md-sys-color-background); color: var(--md-sys-color-on-surface); font-family: var(--md-sys-typescale-body-font); }

/* Basic container spacing matching Material paddings */
.main-content { padding: 16px; max-width: 1100px; margin: 0 auto; width: 100%; }

/* Panel to Surface with elevation feel */
.panel { background: var(--md-sys-color-surface); border-radius: 12px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.05); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Side menu minimal Material look */
.side-menu { width: 240px; border-right: 1px solid rgba(0,0,0,.08); padding: 12px; }
.side-menu ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.side-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; }
.side-menu a:hover { background: rgba(0,0,0,.04); }
.side-menu a.menu-active { background: rgba(103,80,164,.12); color: var(--md-sys-color-primary); font-weight: 600; }
.menu-toggle { display: none; margin: 8px 0 12px; }

@media (max-width: 900px) {
  .exercises-container { flex-direction: column; }
  .side-menu { width: 100%; border-right: none; border-bottom: 1px solid rgba(0,0,0,.08); }
  .menu-toggle { display: inline-flex; }
  .side-menu.open { display: block; }
}

/* Harmony page buttons quick mapping to Material styles if native buttons remain */
.primary { background: var(--md-sys-color-primary); color: white; border: none; border-radius: 20px; padding: 10px 16px; }
.primary.big { padding: 12px 18px; font-weight: 600; }

/* Keep metronome visuals intact — no overrides here */
.metro-viewport, .metronome, .metro-controls, .metro-actions { all: revert; }

/* Top app bar visual and responsive fixes */
header md-top-app-bar {
  --md-top-app-bar-container-color: color-mix(in srgb, var(--md-sys-color-primary) 12%, var(--md-sys-color-surface));
  --md-top-app-bar-on-surface-variant-color: #0B1020;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
header .topbar-row {
  display: flex; align-items: center; width: 100%; gap: 16px; flex-wrap: nowrap;
}
header .topbar-brand { display:flex; align-items:center; gap:8px; min-width: 0; }
header .brand-link { text-decoration:none; color:inherit; font-weight:600; }
header .topbar-nav { display:flex; gap:8px; align-items:center; flex-wrap: nowrap; overflow:auto hidden; }
header .topbar-spacer { margin-left:auto; display:flex; align-items:center; gap:8px; }
header .nav-select { display:none; }

@media (max-width: 720px) {
  header .topbar-nav { display:none; }
  header .nav-select { display:inline-flex; padding:8px 10px; border-radius:8px; }
}
