/* ===========================================================
   1) RESET & BASE
=========================================================== */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg: #0d0d0f;
    --bg-soft: #141416;
    --bg-card: #1c1d21;

    --text: #f4f4f5;
    --text-muted: #9ca3af;

    --accent: #3b82f6;
    --accent-hover: #5690ff;

    --radius: 14px;
    --border: #2a2a2e;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.45);

    --transition: 0.25s ease;

    /* workout types */
    /* --color-push: rgba(251, 113, 134, 0.7);
    --color-pull: rgb(96, 165, 250, 0.7);
    --color-legs: rgb(250, 204, 21, 0.7); */
}

body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}


/* ===========================================================
   2) LAYOUT: HEADER / MAIN / FOOTER / CARDS
=========================================================== */
header {
    background: var(--bg);
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #1a1a1d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

header h1 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: -0.3px;
}

main {
    max-width: 820px;
    margin: .8rem auto;
    padding: 0.5rem 1rem 80px;
    /* Platz für Bottom-Nav */
}

footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Cards */
.card {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: var(--bg-card);
    border: 1px solid #202024;
    box-shadow: var(--shadow);
}

.card:hover {
    background: #202127;
    /* subtil, keine Bewegung */
}


/* ===========================================================
   3) PAGE TITLES
=========================================================== */
.page h2 {
    margin: 0 0 .6rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: var(--text);
}


/* ===========================================================
   4) BUTTONS
=========================================================== */
button {
    font-size: 1rem;
    border: none;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    /* width: 100%; */
    font-weight: 500;
}

button:active {
    transform: scale(0.97);
}

.primary-btn {
    background: var(--accent);
    color: #fff;
    margin: 0.5rem 0.1rem;
    box-shadow: 0 5px 14px rgba(59, 130, 246, 0.35);
}

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

.secondary-btn {
    background: var(--bg-soft);
    border: 1px solid #27272a;
    margin: 0.5rem 0.1rem;
    color: var(--text);
}

.secondary-btn:hover {
    background: #2a2a2e;
}

.danger-btn {
    background: #dc2626;
    color: white;
    margin: 0.5rem 0.1rem;
}

.danger-btn:hover {
    background: #b91c1c;
}

.button-row {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1.4rem;
}

@media (min-width: 600px) {
    .button-row {
        flex-direction: row;
        justify-content: flex-start;
    }
}


/* ===========================================================
   5) MODAL
=========================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: grid;
    place-items: center;
    z-index: 999;
}

.modal {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    width: 90%;
    max-width: 420px;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.4rem;
}

/* Modal Inputs */
.input,
.textarea {
    width: 100%;
    background: #141416;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.7rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.textarea {
    min-height: 80px;
}

/* Remove number spinners - modern UI */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    appearance: textField;
    -moz-appearance: textfield;
}


/* ===========================================================
   6) UTILITIES
=========================================================== */
.hidden {
    display: none !important;
}

.running-text {
    color: var(--accent);
}


/* ===========================================================
   7) TABS / BOTTOM NAV
=========================================================== */
.page.hidden {
    display: none;
}

.page.active {
    display: block;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: .6rem 0;
    background: #111214;
    border-top: 1px solid #2a2a2e;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    padding: .3rem;
    color: var(--text-muted);
}

.nav-btn .icon {
    stroke: var(--text-muted);
}

.nav-btn.active .icon {
    stroke: var(--accent);
}

.icon {
    width: 26px;
    height: 26px;
    transition: .25s ease;
    display: inline-block;
    flex-shrink: 0;
}

.row {
    display: flex;
    flex-direction: row;
}