/* ============================================================
   QR Code Generator — Styles riêng cho tool này
   ============================================================ */

/* === File Input === */
.file-input {
    padding: 0.5rem;
    font-size: 0.85rem;
}
.file-input::file-selector-button {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    margin-right: 0.8rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all var(--transition);
}
.file-input::file-selector-button:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
}

/* === Color Section === */
.color-section {
    margin-top: 1.2rem;
    padding: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.color-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.color-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.color-item input[type="color"] {
    width: 40px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-input);
    cursor: pointer;
    padding: 2px;
}
.color-item input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}
.color-item input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}

/* === Output Section === */
.output-section {
    margin-top: 1.5rem;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === QR Display === */
.qr-display {
    display: inline-block;
    position: relative;
    background: #ffffff;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

/* Logo overlay giữa QR */
.logo-overlay {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 30%;
    max-height: 30%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
}

/* === URL display === */
.url-display {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    word-break: break-all;
}
.url-display a {
    color: var(--accent-orange);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}
.url-display a:hover {
    text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 480px) {
    .color-row {
        flex-direction: column;
        gap: 0.8rem;
    }
}
