/* --- Combined from mixMaker.style --- */
:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #64748b;
    --secondary-hover: #475569;
    --danger: #ef4444;
    --border: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 770px; /* Locked onto your updated 10% wider specification */
}

.header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

@media (min-width: 600px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.action-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--bg-color);
    color: var(--secondary-hover);
}

.playlist-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.playlist-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.playlist-info {
    flex-grow: 1;
    padding-right: 1rem;
}

.playlist-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.track-list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.track-list li {
    margin-bottom: 0.25rem;
}

.btn-delete {
    color: var(--danger);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    transition: all 0.2s;
    background: transparent;
    cursor: pointer;
}

.btn-delete:hover {
    background-color: #fef2f2;
    border-color: #fee2e2;
}

/* --- Drag and Drop Creation Layout Block Components --- */
.builder-columns {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 650px) {
    .builder-columns {
        flex-direction: row;
    }
}

.column-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.column-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.box {
    background: var(--card-bg);
    border: 2px dashed var(--border);
    min-height: 350px;
    max-height: 500px;
    overflow-y: auto;
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.02);
}

.box.drag-over {
    border-color: var(--primary);
    background-color: #f5f3ff;
}

.item {
    padding: 0.625rem 0.875rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 0.375rem;
    cursor: grab;
    user-select: none;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
}

.item:active {
    cursor: grabbing;
}

.item.dragging {
    opacity: 0.4;
}

.workout-meta {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.25rem; 
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.creator-meta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.375rem;
}

.form-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: #fff;
    color: var(--text-main);
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.workout-link {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    display: inline-block;
}
.workout-link:hover {
    color: var(--primary);
}

.form-input:focus {
    border-color: var(--primary);
}


/* --- Combined from style.css --- */
/* style.css */
:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #64748b;
    --secondary-hover: #475569;
    --danger: #ef4444;
    --border: #e2e8f0;
    --success-bg: #f0fdf4;
    --success-text: #16a34a;
    --success-border: #bbf7d0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}
.container {
    width: 100%;
    max-width: 770px;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}
h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}
.summary-card {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.summary-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
}
.workout-meta {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}
.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.375rem;
}
.form-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: #fff;
    color: var(--text-main);
    outline: none;
    width: 100%;
    box-sizing: border-box;
}
.form-input:focus {
    border-color: var(--primary);
}
.interval-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.form-row {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    position: relative;
}
@media (min-width: 550px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .row-actions {
        grid-column: span 2;
    }
}
.input-group {
    display: flex;
    flex-direction: column;
}
.row-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
}
.btn {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
}
.btn-secondary {
    background-color: white;
    color: var(--secondary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background-color: var(--bg-color);
    color: var(--secondary-hover);
}
.btn-block {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}
.btn-delete {
    color: var(--danger);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-delete:hover {
    background-color: #fef2f2;
    border-color: #fee2e2;
}
.footer-actions {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

/* --- Combined from workouts.style --- */
:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #64748b;
    --secondary-hover: #475569;
    --danger: #ef4444;
    --border: #e2e8f0;
    --success-bg: #f0fdf4;
    --success-text: #16a34a;
    --success-border: #bbf7d0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 770px; /* Locked onto your 10% wider frame standard */
}

.header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.action-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.2s;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--bg-color);
    color: var(--secondary-hover);
}

.btn-block {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.summary-card {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.summary-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.workout-meta {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.playlist-list, .interval-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.playlist-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    margin: 0;
}

.workout-card {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 500px) {
    .workout-card {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
}

/* --- Space Saving Single-Line Interval Configuration Grid --- */
.form-row {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.input-group:first-of-type {
    flex: 0 0 110px; /* Prevent interval duration field from stretching */
}

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.375rem;
}

.form-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: #fff;
    color: var(--text-main);
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--primary);
}

.playlist-info {
    flex-grow: 1;
    padding-right: 1rem;
}

.workout-link {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.workout-link:hover {
    color: var(--primary);
}

.select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.select-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-select {
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background-color: #fff;
    color: var(--text-main);
    outline: none;
    width: 100%;
    max-width: 220px;
}

.form-select:focus {
    border-color: var(--primary);
}

.workout-actions, .row-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.btn-delete {
    color: var(--danger);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-delete:hover {
    background-color: #fef2f2;
    border-color: #fee2e2;
}

.btn-disabled {
    color: #7a7979;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.footer-actions {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   CSS HOVER TOOLTIP INTERFACES
   ========================================================================== */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: help;
}

/* The label highlights subtly on hover to show it is interactive */
.tooltip-wrapper:hover .form-label {
    color: var(--primary);
}

.tooltip-bubble {
    visibility: hidden;
    position: absolute;
    bottom: 125%; /* Positions it directly above the voice header label */
    left: 50%;
    transform: translateX(-50%);
    background-color: #0f172a; /* Sophisticated slate-900 tooltip shade */
    color: #ffffff;
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 1.0rem;
    font-weight: 500;
    line-height: 1.4;
    width: 220px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Tiny structural indicator arrow resting on the label text link node edge */
.tooltip-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

/* Animate the tooltip smoothly into view on hover */
.tooltip-wrapper:hover .tooltip-bubble {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}


