.qr-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.qr-input-panel, .qr-output-panel {
    flex: 1;
    min-width: 250px;
    z-index: 1;
}

.qr-input-panel textarea {
    width: 100%;
    height: 300px !important;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #111;
    color: #f0f0f0;
    resize: none;
}

.qr-input-panel textarea:focus {
    outline: none;
    border-color: #888;
    background-color: #0e0e0e;
}

.options {
    display: flex;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.options label {
    font-size: 0.9rem;
    color: #ccc;
}

.options select {
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #111;
    color: #f0f0f0;
}

.buttons {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.buttons button {
    padding: 10px 15px;
    font-size: 0.95rem;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.buttons button:hover {
    background-color: #222;
    border-color: #888;
}

.qr-output-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    max-height: 300px;
    aspect-ratio: 1/1; /* zawsze kwadrat */
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #111;
    overflow: hidden;
    animation: qrGlow 2s ease-in-out infinite;
    z-index: 0;
    margin: 0 auto;
}

@keyframes qrGlow {
    0% {
        filter: drop-shadow(0 0 100px rgba(255, 255, 255, 0.1));
    }
    50% {
        filter: drop-shadow(0 0 100px rgba(255, 255, 255, 0.2));
    }
    100% {
        filter: drop-shadow(0 0 100px rgba(255, 255, 255, 0.1));
    }
}

.qr-output-panel canvas {
    max-width: 100%;
    height: auto;
}

.qr-output-panel img {
    max-width: 300px;
    max-height: 300px;
    width: 270px;
    height: 270px;
}

@media (max-width: 768px) {
    .qr-container {
        flex-direction: column;
    }
    .qr-output-panel {
        margin-top: 20px;
    }
}

.qr-info {
    margin-top: 60px;
    color: #f0f0f0;
}

.qr-info h3 {
    margin-bottom: 10px;
}

.qr-info ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

.qr-info ul ul {
    list-style-type: circle;
    padding-left: 20px;
}

.qr-info pre {
    background-color: #111;
    color: #f0f0f0;
    padding: 8px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.9rem;
}

.qr-info code {
    background-color: #1a1a1a;
    border-radius: 4px;
    padding: 2px 6px;
}

/* Responsywność */
@media (max-width: 768px) {
    .qr-generator-container {
        flex-direction: column;
        gap: 15px;
    }

    .qr-output-panel {
        width: 100%;
        min-width: unset;
        min-height: auto;
    }
}

.qr-output-panel img, #qrSize, #qrFormat, #generateBtn, #downloadBtn {
    user-select: none;
}