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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.app-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

/* Error Message */
.error-message {
    max-width: 600px;
    margin: 0 auto 20px auto;
    padding: 12px 20px;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    color: #c62828;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.error-message .error-text {
    flex: 1;
}

.error-message .error-close {
    background: none;
    border: none;
    color: #c62828;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0 0 12px;
}

.error-message .error-close:hover {
    color: #b71c1c;
}

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

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group input::placeholder {
    color: #999;
}

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    width: 100%;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

/* Result Display */
.result-container {
    text-align: center;
}

.result-bmi {
    margin-bottom: 16px;
}

.result-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.result-value {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: #333;
}

.result-category {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.result-category.underweight {
    background-color: #E3F2FD;
    color: #1565C0;
}

.result-category.normal {
    background-color: #E8F5E9;
    color: #2E7D32;
}

.result-category.overweight {
    background-color: #FFF3E0;
    color: #E65100;
}

.result-category.obese1 {
    background-color: #FFEBEE;
    color: #C62828;
}

.result-category.obese2 {
    background-color: #FCE4EC;
    color: #AD1457;
}

.result-category.obese3 {
    background-color: #F3E5F5;
    color: #6A1B9A;
}

.result-advice {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    padding: 12px 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #4CAF50;
}

.result-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.detail-item {
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}
