:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
}

.controls {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-weight: 600;
}

input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

select { /* Added styles for select */
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white; /* Ensures consistent background */
    appearance: none; /* Remove default arrow in some browsers */
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
}

button {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.exercises-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.exercise-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.exercise-title {
    color: var(--secondary-color);
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.exercise-detail {
    margin: 10px 0;
}

.exercise-detail strong {
    color: var(--primary-color);
}

.tips-container {
    width: 100%; /* Corrected from 100%% to 100% */
    display: flex;
    /*padding-top: 20px;*/
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box; /* Ensures padding is included in the width */
}

.tip-card {
    background: white;
    max-width: 800px; /* Adjust as needed */
    width: 100%;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tip-title {
    color: var(--secondary-color);
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.tip-detail {
    margin: 10px 0;
}

.tip-detail strong {
    color: var(--primary-color);
}

.status {
    text-align: center;
    padding: 10px;
    margin: 20px 0;
    border-radius: 4px;
}

/* Contraindications Container */
.contraindications-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    margin-top: 1.5rem;
}

.safety-section {
    background: #fff5f5;
    max-width: 800px;
    width: 100%;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(255,107,107,0.1);
    border-left: 4px solid #ff6b6b;
}

.safety-header {
    color: #cc0000;
    margin-top: 0;
    border-bottom: 2px solid #ffe0e0;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contraindications-list {
    margin: 15px 0;
    padding-left: 20px;
}

.contraindications-list li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #d80000;
}

.safety-footer {
    color: #666;
    font-size: 0.9em;
    margin-top: 15px;
    font-style: italic;
}

.no-warnings {
    background: #f0fff4;
    border-left: 4px solid #48bb78;
    padding: 15px;
    color: #2f855a;
    max-width: 800px;
    width: 100%;
    border-radius: 8px;
}
