body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.config-link {
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.config-link a {
    color: #007bff;
    text-decoration: none;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
}

input {
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input:focus {
    border-color: #007bff;
    outline: none;
}

button {
    padding: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#qrcodeResult {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px dashed #eee;
}

#qrcodeImage {
    max-width: 200px;
    margin: 15px 0;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
}

textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    font-family: monospace;
    font-size: 12px;
    resize: none;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.error {
    margin-top: 20px;
    padding: 12px;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    font-size: 14px;
    text-align: center;
}

.hidden {
    display: none;
}

#copyButton {
    width: 100%;
    background-color: #6c757d;
}

#copyButton:hover {
    background-color: #5a6268;
}
