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

:root {
    --background-color: #f5f5f5;
    --text-color: #333;
    --text-secondary: #666;
    --input-border: #e0e0e0;
    --input-border-focus: #25D366;
    --button-color: #666;
    --button-hover: #333;
    --whatsapp-color: #25D366;
    --whatsapp-hover: #128C7E;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #fff;
        --text-secondary: #aaa;
        --input-border: #333;
        --input-border-focus: #25D366;
        --button-color: #aaa;
        --button-hover: #fff;
        --whatsapp-color: #25D366;
        --whatsapp-hover: #128C7E;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
    color: var(--text-color);
    position: relative;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.help-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--whatsapp-color);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-button:hover {
    background-color: var(--whatsapp-hover);
    transform: scale(1.1);
}

header {
    margin: 24px 0;
}

.header-text {
    font-size: 16px;
    line-height: 135%;
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 2px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (prefers-color-scheme: dark) {
    .language-switcher {
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.lang-button {
    padding: 6px 14px;
    border: none;
    background-color: transparent;
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.lang-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
    .lang-button:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

.lang-button.active {
    background-color: var(--background-color);
    color: var(--text-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
    .lang-button.active {
        background-color: rgba(255, 255, 255, 0.9);
        color: #000;
    }
}

img {
    width: 60px;
    height: auto;
    display: block;
    margin: 0 0 8px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

#textInput {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: transparent;
    color: var(--text-color);
}

#textInput::placeholder {
    color: var(--text-secondary);
}

#textInput:focus {
    border-color: var(--input-border-focus);
}

.clear-button {
    position: absolute;
    right: 15px;
    top: 46%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: var(--button-color);
    cursor: pointer;
    padding: 0 5px;
    background-color: var(--background-color);
}

.clear-button:hover {
    color: var(--button-hover);
}

.hidden {
    display: none !important;
}

.link-container {
    margin-top: 20px;
    text-align: center;
}

#whatsappLink {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 24px;
    background-color: var(--whatsapp-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    gap: 4px;
    width: 100%;
}

#whatsappLink:hover {
    background-color: var(--whatsapp-hover);
}

.link-text {
    font-size: 16px;
}

.link-url {
    font-size: 14px;
    opacity: 0.9;
    max-width: 360px;
    overflow: hidden;
}

.questions {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20px;
    margin: 0;
    max-width: none;
}

.questions-content {
    background-color: var(--background-color);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.questions-item {
    margin-bottom: 20px;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.question {
    font-weight: bold;
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 4px;
}

.answer {
    color: var(--text-color);
    font-size: 16px;
    line-height: 130%;
    opacity: 0.7;
}

.answer a {
    color: var(--whatsapp-color);
    text-decoration: none;
}

.answer a:hover {
    text-decoration: underline;
}

.footer {
    padding: 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-content a {
    color: inherit;
}
