:root {
    --bg: #0b0f15;
    --bg1: #151b24;
    --bg2: #1f2937;
    --primary: #4dabff;
    --btn1: #156ebb;
    --btn2: #2c960c;
    --card: #151b24;
    --muted: #8b95a6;
    --text: #e5e7eb;
    --mxpw: 700px;
    --headerHeight: 120px;
    --consoleHeight: 45px;
    --consolePadding: 10px;
    --btnsHeight: 40px;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    position: relative;
}

header.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--headerHeight);
    vertical-align: top;
    background: var(--bg1);
    /* display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center; */
    font-size: 14px;
    z-index: 1000;
    border-bottom: 1px solid #1f2937;
}

.field {
    margin: 0 3px 7px 0;
    padding: 5px 9px;
    background: var(--bg2);
    border-radius: 8px;
    display: inline-block;
}

header .field span {
    font-weight: bold;
}

.padder {
    padding: 10px;
}
.padder-mini {
    padding-top: 7px;
    padding-left: 10px;
}

.full-page,
.full-page-center {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--headerHeight) + 1px);
    height: calc(100% - (var(--headerHeight) + var(--btnsHeight) + var(--consoleHeight) + (var(--consolePadding) * 2)));
    background: #121212;
    overflow: auto;
}

.full-page-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.console {
    padding: var(--consolePadding);
    height: var(--consoleHeight);
    background: #000;
    border-top: 1px solid #333;
    border-bottom: 1px solid #222222;
    font-size: 12px;
    overflow-y: auto;
}
.btns {
    height: var(--btnsHeight);
    font-size: 14px;
}
.btns div {
    display: inline-block;
}



header select {
    background: var(--bg);
    color: var(--text);
    border: none;
    padding: 0px 5px;
    border-radius: 4px;
}

.small-btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    background: var(--btn1);
    border: none;
    cursor: pointer;
    color: #fff;
}

.small-btn.red {
    background: #d31717;
}

/* Tabs */
nav.tabs {
  display: flex;
  background: var(--card);
  border-bottom: 1px solid #1f2937;
}
.tab-button {
    flex: 1;
    padding: 10px;
    border: 0;
    border-bottom-width: 0px;
    border-bottom-style: none;
    border-bottom-color: currentcolor;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    color: var(--muted);
}
.tab-button.active {
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    text-align: center;
}

.wizard-step.active {
    display: block;
}

/* Buttons */
.btn {
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
}

.btn2 {
    padding: 15px 20px;
    color: #fff;
    border: none;
    border-radius: 11px;
    font-size: 14px;
}

.inp2 {
    padding: 15px 20px;
    color: #fff;
    border: none;
    border-radius: 11px;
    text-align: center;
    width: 120px;
}

.tempo-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #374151;
    border-radius: 11px;
    padding: 0 10px 0 6px;
    height: 47px;
    background: #111827;
}
.tempo-input-wrap input {
    width: 70px;
    border: none;
    outline: none;
    font-size: 1.2em;
    font-family: ui-monospace, Menlo, monospace;
    background: transparent;
    color: #fff;
    text-align: center;
}
.tempo-label {
    margin-left: 6px;
    font-size: 0.9em;
    color: var(--muted);
}

.btn-ghost {
    background: transparent;
    border: 1px solid #374151;
    color: var(--text);
}

.flex-start {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.content {
    background: var(--bg2);
    margin: 10px;
    padding: 10px;
    border-radius: 11px;
}

/* Blinking Circle */
.circle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.blinker.outer {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blinker.inner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgb(199, 2, 173);
    opacity: 0;
    transition: opacity 0.1s ease;
}

/* Pill Buttons */
.pill-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pill-buttons button {
    border-radius: 20px;
    border: none;
    padding: 10px 14px;
    background: var(--bg1);
    color: var(--text);
}







.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0094e9;
    transition: .3s;
    border-radius: 26px;
}

.slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #4CAF50;
}

input:checked+.slider:before {
    transform: translateX(24px);
}




/* Clocks */
.clock-column {
    margin-top: 5px;
    margin-bottom: 15px;
}

.clock-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.clock-label {
    font-size: 14px;
    color: var(--muted);
}

.clock-display {
    font-family: ui-monospace, Menlo, monospace;
    font-variant-numeric: tabular-nums;
    padding: 4px 6px;
    border-radius: 4px;
    min-width: 140px;
    text-align: right;
}

.checkbox-lbl {
    vertical-align: top;
}

input[type="checkbox"] {
    padding: 0;
    margin: 0 4px 0 0;
}

/* Metronome */
#metronome-circles {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #555;
    /* inactive circle color */
    transition: background-color 0.2s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.circle.active {
    background-color: #4ade80;
    /* bright green for active beat */
    box-shadow: 0 0 12px #4ade80;
    transform: scale(1.2);
}

.circle.downbeat {
    background-color: #facc15;
    /* bright yellow for downbeat */
    box-shadow: 0 0 15px #facc15;
}

.mt-bpm {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}