/* General Body Styling */
body {
    font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
    background-color: #1c1e22;
    color: #e4e6eb;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Main Container */
.container {
    background-color: #242526;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 700px;
    border: 1px solid #3a3b3c;
}

/* Header */
header h1 {
    color: #58a6ff;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2em;
}

header p {
    text-align: center;
    color: #b0b3b8;
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* Main Content Area */
main {
    margin-top: 20px;
}

/* Settings Section */
.settings {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #3a3b3c;
    border-radius: 8px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs {
    display: flex;
    gap: 20px;
}

.pheon-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    padding: 15px;
    background-color: #4a4a4a;
    border-radius: 6px;
    width: 80%;
}

.settings label {
    font-size: 1.1em;
    font-weight: 500;
}

.settings select, .settings input, .settings button {
    font-size: 1em;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #4d4d4d;
    background-color: #4a4a4a;
    color: #e4e6eb;
}

.settings input {
    width: 100px;
}

.settings button {
    cursor: pointer;
    background-color: #2374e1;
    border-color: #2374e1;
    font-weight: bold;
    transition: background-color 0.2s ease;
    width: 100%;
    margin-top: 10px;
}

.settings button:hover {
    background-color: #1b6ac9;
}

/* Results Section */
.results-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #2c2d2e;
    border-radius: 8px;
}

.results-container h2 {
    text-align: center;
    color: #58a6ff;
    margin-bottom: 20px;
}

#results-summary {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    text-align: center;
}

.result-item h3 {
    font-size: 1.1em;
    color: #b0b3b8;
    margin-bottom: 10px;
}

.result-item p {
    font-size: 2em;
    font-weight: bold;
    color: #e4e6eb;
    margin: 0;
}

.result-item span {
    font-size: 0.9em;
    color: #8a8d91;
}

.result-item.highlight p {
    color: #67d99a; /* A nice green for the main result */
}

.cost-breakdown {
    margin-top: 10px;
    font-size: 0.9em;
    color: #b0b3b8;
}

.cost-breakdown span {
    display: block;
    text-align: right;
    padding-right: 20px;
}

.point-distribution {
    margin-top: 10px;
    font-size: 0.9em;
    color: #b0b3b8;
}

.point-distribution span {
    display: block;
    text-align: right;
    padding-right: 20px;
}

/* Loading Spinner */
#loading {
    text-align: center;
    padding: 40px 0;
}

#loading p {
    margin-top: 20px;
    font-size: 1.1em;
    color: #b0b3b8;
}

.spinner {
    border: 6px solid #3a3b3c;
    border-top: 6px solid #58a6ff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    color: #8a8d91;
    font-size: 0.9em;
}
