:root {
    --background-color: white;
    --text-color: black;
}

[data-theme="dark"] {
    --background-color: #1e1e1e;
    --text-color: #f0f0f0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
}

textarea,
button,
div,
label,
input,
select {
    display: block;
    margin-bottom: 20px;
}

a {
    color: inherit;
}

.page h2 a {
    text-decoration: none;
}

.skip-link {
    position: absolute;
    left: 20px;
    top: -48px;
    background-color: var(--background-color);
    padding: 8px 12px;
}

.skip-link:focus {
    top: 20px;
}

.page {
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
}

#qr-code-container,
#wifi-qr-code-container {
    display: none;
    margin-top: 20px;
}

#qr-code-container svg,
#wifi-qr-code-container svg {
    width: 200px;
    height: 200px;
}

footer {
    margin-top: 40px;
    text-align: left;
    font-size: 14px;
    color: #666;
}

.collapsible-section button {
    margin-bottom: 20px;
}

.collapsible-section div {
    margin-top: 20px;
}

.password-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-field input {
    flex: 1;
    margin-bottom: 0;
}

.password-toggle {
    margin-bottom: 0;
    min-width: 44px;
}

.message {
    display: none;
    margin-bottom: 20px;
    font-size: 16px;
}

.message[data-visible="true"] {
    display: block;
}

.message--success {
    color: #4ec9b0;
}

.message--error {
    color: #c0392b;
}

@media (max-width: 768px) {
    input,
    textarea,
    select {
        font-size: 18px;
    }
}
