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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, rgba(135, 206, 250, 0.85) 0%, rgba(64, 224, 208, 0.85) 100%),
                url('https://images.unsplash.com/photo-1490645935967-10de6ba17061?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    min-height: 100vh;
    padding: 20px;
    color: #333;
    background-attachment: fixed;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #4DD0E1 0%, #00BCD4 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.1em;
    opacity: 0.95;
}

form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    color: #0097A7;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
}

input[type="number"],
select {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #00BCD4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: auto;
    cursor: pointer;
    accent-color: #00BCD4;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-label:hover {
    background-color: #f0f9fa;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    accent-color: #00BCD4;
    width: 18px;
    height: 18px;
}


.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

button {
    flex: 1;
    min-width: 150px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #4DD0E1 0%, #00BCD4 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.results {
    margin: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    animation: slideIn 0.5s ease;
}

.results.hidden {
    display: none;
}

.hidden {
    display: none;
}

.height-ft-inputs {
    display: flex;
    gap: 15px;
    max-width: 400px;
}

.height-ft-inputs > div {
    flex: 1;
}

.height-ft-inputs input[type="number"] {
    max-width: 100%;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
}

.input-with-unit input[type="number"] {
    flex: 1;
    width: auto;
}

.unit-display {
    display: inline-block;
    font-weight: 600;
    color: #0097A7;
    font-size: 1em;
    min-width: 35px;
    text-align: left;
}

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

.results h2 {
    color: #0097A7;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.result-label {
    font-weight: 600;
    color: #555;
    font-size: 1em;
}

.result-value {
    font-weight: 700;
    color: #0097A7;
    font-size: 1.2em;
}

.nutrition-toggle {
    margin-top: 25px;
    text-align: center;
}

.btn-nutrition {
    background: #00BCD4;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: auto;
}

.btn-nutrition:hover {
    background: #0097A7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.nutrition-details {
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #00BCD4;
    animation: slideIn 0.5s ease;
}

.nutrition-details h3 {
    color: #0097A7;
    margin-bottom: 20px;
    font-size: 1.4em;
    text-align: center;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #00BCD4;
}

.nutrition-label {
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
}

.nutrition-value {
    font-weight: 700;
    color: #0097A7;
    font-size: 1em;
}

.chart-section {
    margin-top: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.1);
}

.chart-section h3 {
    color: #0097A7;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

.download-section {
    margin-top: 25px;
    text-align: center;
}

.btn-download {
    background: linear-gradient(135deg, #0097A7 0%, #00BCD4 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.btn-download:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }

    form {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .result-value {
        font-size: 1.4em;
    }

    .nutrition-grid {
        grid-template-columns: 1fr;
    }

    .nutrition-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .btn-nutrition {
        width: 100%;
    }
}

