:root {
    --bg-color: #171923;
    /* Choachí Dark BG */
    --card-bg: #1f2231;
    /* Slightly lighter for card */
    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: #a0aec0;
    --accent-color: #d53f8c;
    /* Choachí Pink/Magenta Accent */
    --accent-hover: #b83280;
    --input-bg: #2d3748;
    --border-color: #4a5568;
    --urbano-color: #3182ce;
    /* Adjusted Blue */
    --rural-color: #d69e2e;
    /* Adjusted Amber */
    --ph-color: #805ad5;
    /* Adjusted Purple */
    --font-stack: 'Jost', system-ui, -apple-system, sans-serif;
    --font-code: 'Inter', monospace;
    --font-brand: 'Jost', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-stack);
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image: radial-gradient(circle at 50% 0%, #2d3748 0%, var(--bg-color) 70%);
}

.brand-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.container {
    background-color: rgba(31, 34, 49, 0.8);
    /* Glass-like effect */
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 600px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-family: var(--font-stack);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
    /* Removing gradient text for better match with brand or keep if fits */
    background: none;
    -webkit-text-fill-color: var(--text-primary);
}

header p {
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.input-group {
    position: relative;
    margin-bottom: 2rem;
}

input[type="text"] {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.5rem;
    /* Big font as requested */
    background-color: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 2px;
    font-family: var(--font-code);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
}

.char-count {
    position: absolute;
    right: 15px;
    bottom: -25px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.selector-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.selector-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.selector-option:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

input[type="radio"]:checked+.custom-radio {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

/* Specific highlighting for Urban/Rural when selected if we wanted */
/* For now, keeping it green accent for simplicity, or we can use specific colors */

#radioUrbano:checked+.custom-radio {
    border-color: var(--urbano-color);
    background-color: var(--urbano-color);
    box-shadow: 0 0 10px var(--urbano-color);
}

#radioRural:checked+.custom-radio {
    border-color: var(--rural-color);
    background-color: var(--rural-color);
    box-shadow: 0 0 10px var(--rural-color);
}

#radioPH:checked+.custom-radio {
    border-color: var(--ph-color);
    background-color: var(--ph-color);
    box-shadow: 0 0 10px var(--ph-color);
}

.result-container {
    background-color: #161616;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.result-container label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-box {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    font-family: monospace;
    letter-spacing: 1px;
    min-height: 2.4rem;
    word-break: break-all;
    margin-bottom: 1rem;
}

.copy-button {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-stack);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background-color: var(--accent-color);
    color: white;
}

.copy-button:active {
    transform: scale(0.98);
}

.copy-button svg {
    pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    input[type="text"] {
        font-size: 1.1rem;
        padding: 1rem;
    }

    .selector-container {
        gap: 1rem;
    }
}