body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #1a1a2e;
    color: #e0e0e0;
}

h1 {
    color: #4fc3f7;
}

textarea {
    width: 100%;
    height: 600px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #444;
    border-radius: 4px;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
    background-color: #16213e;
    color: #e0e0e0;
}

.invalid {
    background-color: #4a1c1c;
}

#qrBtn {
    padding: 6px;
    background-color: #fff;
    margin-bottom: 15px;
    display: inline-block;
}

#qrThumb {
    width: 80px;
    height: 80px;
    display: block;
}

#qrOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
}

#qrOverlay.active {
    display: flex;
}

#qrOverlay img {
    max-width: 90vmin;
    max-height: 90vmin;
    border-radius: 8px;
    background-color: #fff;
    padding: 16px;
}

button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4fc3f7;
    color: #1a1a2e;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

#nextBtn {
    position: relative;
}

#nextBtn {
    background-color: #1a1a2e;
}

#nextLabel {
    position: relative;
    z-index: 1;
}

#nextProgress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #4fc3f7;
    pointer-events: none;
    transition: none;
}

button:hover {
    background-color: #81d4fa;
}

p {
    color: #ccc;
}

#jsonDisplay {
    background-color: #16213e;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    white-space: pre-wrap;
    color: #e0e0e0;
}
