* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8f9fa;
    color: #1f2937;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 25px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
}

header p {
    margin: 5px 0 0;
    color: #6b7280;
}

header a {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 30px;
}

.intro {
    max-width: 700px;
    margin-bottom: 35px;
}

.intro h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.intro p {
    color: #6b7280;
    line-height: 1.7;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 25px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
}

.stat-card strong {
    display: block;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 2rem;
}

.stat-card span {
    color: #6b7280;
}

.card {
    margin-bottom: 25px;
    padding: 30px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.card h2 {
    margin-top: 0;
}

.from-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.from-grid div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: bold;
    font-size: 0.9rem;
}

imput,
select {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

button {
    padding: 12px 20px;
    background-color: #2563eb;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #1d4ed8;
}

.secondary-button {
    background-color: white;
    color: #6b7280;

    border: 1px solid #d1d5db;
}

.secondary-button:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.generator {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
}

.generated-plan {
    margin-top: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #2563eb;
}

.generated-plan li {
    margin-bottom: 10px;
}

.hidden {
    display: none;
}

.select-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workout {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 20px;

    align-items: center;
    padding: 20px 0;

    border-bottom: 1px solid #e5e7eb;
}

.workout-date {
    color: #2563eb;
    font-weight: bold;
}

.workout h3 {
    margin: 0 0 7px;
}

.workout p {
    margin: 0;
    color: #6b7280;
}

.delete-button {
    padding: 8px 12px;
    background-color: transparent;
    color: #dc2626;
    border: 1px solid #dc2626;
}

.delete-button:hover {
    background-color: #dc2626;
    color: white;
}


.empty-message {
    padding: 25px;
    text-align: center;
    color: #6b7280;
}

footer {
    padding: 30px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    main {
        padding: 35px 20px;
    }

    .stat,
    .from-grid,
    .generator {
        grid-template-columns: 1fr;
    }

    .workout {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }
}