@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

h1 {
    text-align: center;
    color: #00ffff;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.qr-maker, .qr-reader {
    background-color: #333;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

h2 {
    color: #00ffff;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 0.5rem;
}

textarea, button, .file-label {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: 1px solid #00ffff;
    background-color: #222;
    color: #e0e0e0;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

textarea {
    height: 100px;
    resize: vertical;
}

button:hover, .file-label:hover {
    background-color: #00ffff;
    color: #1a1a1a;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

#qr-code {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #222;
    padding: 1rem;
    border-radius: 5px;
    min-height: 256px;
}

.reader-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#file-input {
    display: none;
}

.file-label {
    text-align: center;
}

.camera-container {
    position: relative;
    display: none;
    width: 100%;
    background-color: #222;
    border-radius: 5px;
    overflow: hidden;
}

#camera-feed {
    width: 100%;
    height: auto;
    display: block;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: scan 2s infinite linear;
    display: none;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

#decoded-text {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #222;
    border-radius: 5px;
    border: 1px solid #00ffff;
    min-height: 50px;
    word-wrap: break-word;
}

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