body {
    font-family: sans-serif;
    background: #010409;
    color: #f0f6fc;
    padding: 20px;
    margin: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
}

.header-box {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px;
    border-bottom: 4px solid #58a6ff;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.target-qr {
    background: white;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    cursor: zoom-in;
    box-shadow: 0 0 15px rgba(88,166,255,0.2);
    transition: transform 0.2s;
}

.target-qr:hover {
    transform: scale(1.05);
}

input[type="text"], input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: #161b22;
    color: white;
    border: 1px solid #30363d;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    background: #238636;
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
}

button:hover {
    background: #2ea043;
}

button:disabled {
    background: #30363d;
    cursor: not-allowed;
    color: #8b949e;
}

.result-box {
    margin-top: 15px;
    background: #010409;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #30363d;
    text-align: center;
}

.result-box.success { border-color: #238636; }
.result-box.error { border-color: #f85149; }

.section-title {
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #30363d;
    padding-bottom: 10px;
    margin-top: 30px;
}

#finalQR {
    margin-top: 20px;
    background: white;
    padding: 10px;
    display: inline-block;
    border-radius: 10px;
    display: none;
}

#qrModal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.modal-content img {
    width: 300px;
    height: 300px;
}

.modal-text {
    color: black;
    font-weight: bold;
    margin-top: 10px;
    font-size: 18px;
    font-family: monospace;
}

@media (max-width: 600px) {
    .header-box {
        flex-direction: column;
        text-align: center;
    }
}
