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

:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --primary-color: #007bff;
    /* Neon Blue */
    --primary-hover: #0056b3;
    --success-color: #00ff88;
    --danger-color: #ff4444;
    --border-color: #333;
    --font-family: 'Poppins', sans-serif;
}

* {
    box-sizing: border_box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

h1,
h2,
h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}

.btn:active {
    transform: scale(0.98);
}

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

.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Forms */
input,
select,
textarea {
    width: 100%;
    padding: 12px;
    background-color: #2a2a2a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Workout Form */
.exercise-group {
    border-left: 2px solid var(--primary-color);
    padding-left: 15px;
    margin-bottom: 20px;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    font-size: 0.9rem;
    cursor: pointer;
    text-align: right;
    display: block;
    width: 100%;
    margin-top: -10px;
    margin-bottom: 10px;
}

/* Workout Execution Spreadsheet */
.execution-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.execution-table th {
    text-align: left;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding-bottom: 10px;
}

.execution-table td {
    padding: 8px 0;
    vertical-align: middle;
}

.set-row {
    background-color: #222;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
}

.set-row.completed {
    border-left: 4px solid var(--primary-color);
    background-color: #1e2a3a;
}

.input-sm {
    width: 60px;
    padding: 8px;
    text-align: center;
    margin-bottom: 0;
}

.check-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sticky Bottom Bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    z-index: 100;
}

.timer-display {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
    color: var(--primary-color);
    font-variant-numeric: tabular-nums;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.d-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flex-grow {
    flex-grow: 1;
}