body {
    font-family: sans-serif;
    background-color: #1a1a1a;
    color: #d4d4d4;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    width: 100%;
    background-color: #252526;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 30px;
    box-sizing: border-box;
}

h1 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

[hidden] {
    display: none !important;
}

#loading {
    text-align: center;
    color: #888;
    padding: 20px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 15px;
}

label.title {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ccc;
}

textarea, input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #1e1e1e;
    color: #d4d4d4;
    box-sizing: border-box;
    font-family: inherit;
}

textarea:focus, input[type="number"]:focus {
    outline: none;
    border-color: #007acc;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-group label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

input[type="color"] {
    width: 100%;
    height: 36px;
    padding: 2px;
    border: 1px solid #444;
    background: #1e1e1e;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
}

/* Right column */
.preview-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.qr-container {
    background-color: #fff;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 4px;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.qr-container canvas, .qr-container svg {
    max-width: 100%;
    max-height: 100%;
}

#download {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #007acc;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

#download:hover {
    background-color: #0098ff;
}

.stats-box {
    width: 100%;
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 15px;
    box-sizing: border-box;
}

.stats-box p {
    margin: 0 0 10px 0;
    font-weight: bold;
    font-size: 0.9rem;
    color: #aaa;
}

pre#statistics-output {
    margin: 0;
    font-size: 0.8rem;
    white-space: pre-wrap;
    color: #dfdfdf;
}
