/* static/css/qr_code_generator.css */

.qr-tool-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 2rem;
    background-color: #1e1e1e; /* Card-like background for the tool area */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-left: 5px solid #c0392b; /* Dark Red Accent */
    max-width: 700px; /* Control max width of the tool container */
}

.tool-title-page { 
    color: #e0e0e0;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.qr-input-section {
    width: 100%;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #aaaaaa;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group textarea,
.form-group input[type="number"],
.form-group input[type="color"] {
    width: 100%;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #333333;
    background-color: #2a2a2a;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}
.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input[type="number"]:focus,
.form-group input[type="color"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c0392b; /* Dark Red Accent */
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.5);
}

.qr-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    align-items: end; /* Align items to the bottom for better label/input alignment */
}
.qr-options .form-group {
    margin-bottom: 0; /* Remove bottom margin for items in grid */
}


.generate-btn, .download-btn {
    display: inline-block; /* Changed from block to inline-block */
    padding: 0.75rem 1.5rem;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}
.generate-btn {
    background-color: #c0392b; /* Dark Red Accent */
    width: 100%; /* Make generate button full width of its container */
    margin-top: 0.5rem;
}
.generate-btn:hover {
    background-color: #e74c3c; /* Lighter Dark Red */
}

.download-btn {
    background-color: #DAA520; /* Gold Accent */
    color: #0d0d0d;
}
.download-btn:hover {
    background-color: #f0c040; /* Lighter Gold */
}


.qrcode-display-area {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #fff; /* White background for QR code visibility */
    border-radius: 8px;
    display: inline-block; /* Shrink to content */
    min-width: 128px; /* Minimum size */
    min-height: 128px; /* Minimum size */
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}
.qrcode-display-area img, 
.qrcode-display-area canvas {
    display: block; /* Remove extra space below image/canvas */
    margin: auto; /* Center if parent is wider */
}

.qr-download-section {
    margin-top: 1rem;
    text-align: center;
}

.status-message {
    margin-top: 1rem;
    min-height: 1.5em; 
    font-size: 0.9rem;
    text-align: center;
}
.status-message.success {
    color: #2ecc71; 
}
.status-message.error {
    color: #e74c3c; 
}

/* Ensure the main content area on this page uses flex to center the tool container */
main.site-main.container { 
    display: flex;
    flex-direction: column;
    align-items: center;
}
