/* QRBuilder_css.css */

.qr-builder-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #000000;
    min-height: 80vh;
}

.qr-builder-container {
    background-color: #111111;
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 95%; /* Expanded to utilize screen space effectively */
    color: #ffffff;
    font-family: Arial, sans-serif;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
}

.qr-builder-container h1 {
    color: #00ffff;
    text-align: center;
    margin-top: 0;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.qr-builder-container .subtitle {
    text-align: center;
    color: #aaaaaa;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.controls-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.controls-section label {
    font-weight: bold;
    color: #ffffff;
}

.controls-section input[type="number"] {
    background-color: #222222;
    border: 1px solid #00ffff;
    color: #ffffff;
    padding: 8px;
    border-radius: 4px;
    width: 80px;
    text-align: center;
}

.controls-section input[type="number"]:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

button {
    background-color: #000000;
    color: #00ffff;
    border: 1px solid #00ffff;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
}

button:hover {
    background-color: #00ffff;
    color: #000000;
}

.grid-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    flex-grow: 1;
}

#qr-grid {
    display: grid;
    gap: 1px;
    background-color: #333333;
    border: 2px solid #00ffff;
    padding: 1px;
    width: 100%;
    max-width: 65vh;
    aspect-ratio: 1 / 1;
}

.qr-cell {
    width: 100%;
    height: 100%;
    cursor: pointer;
    user-select: none;
}

.cell-x {
    background-color: #ff3333;
}

.cell-0 {
    background-color: #000000;
}

.cell-1 {
    background-color: #ffffff;
}

.data-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-section label {
    font-weight: bold;
    color: #00ffff;
}

#json-data {
    width: 100%;
    height: 150px;
    background-color: #0a0a0a;
    border: 1px solid #333333;
    color: #00ffff;
    padding: 15px;
    font-family: monospace;
    font-size: 14px;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
}

#json-data:focus {
    outline: none;
    border-color: #00ffff;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}