/* 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;
}