body, div, input, li, p, span, td, textarea {
    font-family: arial, helvetica, sans-serif;
    font-size: 16px;
}

.calculator-container {
    background-color: white;
    width: 90%;
    max-width: 480px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 5px #ccc;
}

.calculator-container h1 {
    text-align: center;
    color: #084288;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.input-container label {
    width: 150px;
    text-align: right;
    font-weight: bold;
}

.input-container input {
    width: 100px;
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #cfd1d8;
    border-radius: 5px;
    outline: none;
}

.input-container select {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #cfd1d8;
    border-radius: 5px;
    outline: none;
    background-color: white;
}

.unit-display {
    color: #666;
    font-size: 0.9rem;
    min-width: 50px;
}

.input-container input:focus,
.input-container select:focus {
    border-color: #084288;
    box-shadow: 0 0 3px rgba(8, 66, 136, 0.3);
}

#button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

#button-container button {
    padding: 12px 20px;
    border: 0;
    color: #fff;
    font-size: 16px;
    background: #084288;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#button-container button:hover {
    background-color: #0a5ab8;
}

#result {
    margin-top: 20px;
    padding: 15px;
    min-height: 60px;
}

#result.success {
    background-color: #f5f5f5;
    border-radius: 10px;
}

#result.error {
    background-color: #ffebee;
    border-radius: 10px;
    border: 1px solid #f44336;
    color: #c62828;
    text-align: center;
}

.result-header {
    font-size: 1.1rem;
    font-weight: bold;
    color: #084288;
    text-align: center;
    margin-bottom: 15px;
}

.whr-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #084288 0%, #0a5ab8 100%);
    border-radius: 15px;
    color: white;
    margin-bottom: 15px;
}

.whr-value {
    font-size: 3rem;
    font-weight: bold;
}

.whr-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.risk-indicator {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

.risk-low {
    background-color: #c8e6c9;
    color: #1b5e20;
}

.risk-moderate {
    background-color: #fff3e0;
    color: #e65100;
}

.risk-high {
    background-color: #ffcdd2;
    color: #c62828;
}

.body-shape {
    text-align: center;
    padding: 15px;
    background-color: #e3f2fd;
    border-radius: 10px;
}

.body-shape i {
    font-size: 2rem;
    color: #1565c0;
    margin-bottom: 10px;
}

.body-shape h4 {
    color: #1565c0;
    margin: 5px 0;
}

.measurement-details {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.measurement-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #e0e0e0;
}

.measurement-row:last-child {
    border-bottom: none;
}

.measurement-guide {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 10px;
}

.measurement-guide h3 {
    color: #084288;
    margin-top: 0;
    margin-bottom: 15px;
}

.guide-item {
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #084288;
}

.content-section {
    padding: 20px;
    line-height: 1.7;
}

.content-section h2 {
    color: #084288;
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-section h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 8px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.info-table th,
.info-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.info-table th {
    background-color: #084288;
    color: white;
}

.info-table .low-risk td:first-child {
    color: #1b5e20;
    font-weight: bold;
}

.info-table .moderate-risk td:first-child {
    color: #e65100;
    font-weight: bold;
}

.info-table .high-risk td:first-child {
    color: #c62828;
    font-weight: bold;
}

.disclaimer {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.disclaimer h3 {
    color: #e65100;
    margin-top: 0;
}

.disclaimer p {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .calculator-container {
        width: 95%;
        padding: 15px;
    }

    .input-container {
        flex-direction: column;
        align-items: stretch;
    }

    .input-container label {
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }

    .input-container input,
    .input-container select {
        width: 100%;
        box-sizing: border-box;
    }

    #button-container {
        flex-direction: column;
    }

    #button-container button {
        width: 100%;
    }

    .measurement-row {
        flex-direction: column;
        text-align: center;
    }

    .whr-value {
        font-size: 2.5rem;
    }
}
