body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb;
    /* Light background */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: #1a202c;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 30px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    border: 1px solid #e2e8f0;
}

h1 {
    color: #8640A3;
    /* Purple */
    margin-bottom: 25px;
    font-size: 2.25rem;
    font-weight: 700;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    text-align: left;
}

.tile-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: center;
}

.tile-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tile-label {
    flex: 1;
    min-width: 120px;
    padding: 16px 20px;
    border: 2px solid #cbd5e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 1.1rem;
    font-weight: 500;
    color: #4a5568;
    background-color: #edf2f7;
    text-align: center;
}

.tile-input:checked+.tile-label {
    background-color: #80BC25;
    /* Primary Green */
    color: #ffffff;
    border-color: #80BC25;
    box-shadow: 0 4px 10px rgba(128, 188, 37, 0.3);
    transform: translateY(-2px);
}

.tile-label:hover {
    border-color: #39AC29;
    /* Secondary Green */
}

#whcp {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1.25rem;
    color: #2d3748;
    outline: none;
    transition: border-color 0.2s;
    height: 56px;
    text-align: center;
}

#whcp:focus {
    border-color: #80BC25;
    /* Primary Green */
    box-shadow: 0 0 0 3px rgba(128, 188, 37, 0.2);
}

.result-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: left;
}

.result-item {
    background-color: #f7fafc;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 500;
}

.result-item strong {
    color: #8640A3;
    /* Purple */
}

.recommendation {
    margin-top: 25px;
    padding: 20px;
    background-color: rgba(128, 188, 37, 0.1);
    /* Light Primary Green - Default */
    border: 1px solid #80BC25;
    border-radius: 10px;
    color: #39AC29;
    /* Secondary Green */
    font-size: 1.15rem;
    font-weight: 600;
}

.recommendation-orange {
    background-color: rgba(255, 116, 0, 0.1) !important;
    border-color: #FF7400 !important;
    color: #FF7400 !important;
}

.recommendation-red {
    background-color: rgba(213, 0, 0, 0.1) !important;
    border-color: #D50000 !important;
    color: #D50000 !important;
}

.recommendation-yellow {
    background-color: rgba(255, 253, 0, 0.1) !important;
    border-color: #FFFD00 !important;
    color: #b3b100 !important;
    /* Darker version for readability */
}

.error-message {
    color: #e53e3e;
    margin-top: 10px;
    font-weight: 500;
}

.logo-image {
    max-width: 200px;
    height: auto;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.keypad-button {
    background-color: #edf2f7;
    color: #2d3748;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.keypad-button:hover {
    background-color: #e2e8f0;
    transform: translateY(-1px);
}

.keypad-button:active {
    background-color: #cbd5e0;
    transform: translateY(0);
}

.keypad-button.delete-button {
    background-color: #fed7d7;
    /* Light Red */
    color: #c53030;
    /* Dark Red */
}

.keypad-button.delete-button:hover {
    background-color: #feb2b2;
}

.fullscreen-button {
    background-color: #80BC25;
    /* Primary Green */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    transition: background-color 0.2s ease-in-out;
    box-shadow: 0 4px 10px rgba(128, 188, 37, 0.3);
}

.fullscreen-button:hover {
    background-color: #39AC29;
    /* Secondary Green */
}

.hidden-fullscreen-button {
    display: none;
}

.disclaimer {
    margin-top: 30px;
    font-size: 0.75rem;
    color: #718096;
    text-align: center;
    font-style: italic;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

.hidden {
    display: none !important;
}

.span-3 {
    grid-column: span 3;
}

/* Footer */
.app-footer {
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
    color: #718096;
    font-size: 0.85rem;
}

.app-footer a {
    color: #80BC25;
    text-decoration: none;
    font-weight: 600;
}

.app-footer a:hover {
    text-decoration: underline;
}