* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    padding: 20px;
    max-width: 900px;
    margin: auto;
}

h2 {
    font-size: 22px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
}

h1{
    text-align: center;
    font-weight: bold;
}
label {
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

input,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    margin-bottom: 15px;
    background: white;
    font-size: 15px;
}

.error {
    background: #ffb3b3 !important;
}

.row {
    display: flex;
    gap: 15px;
}

.row > div {
    flex: 1;
    min-width: 0;
}

.child-box {
    background: white;
    border: 1px solid #dcdcdc;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

button {
    padding: 10px 18px;
    background: #4a8df6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
}

button:hover {
    background: #3c7de0;
}

.delete-btn {
    background: #d9534f;
    margin-top: 5px;
}

.delete-btn:hover {
    background: #c64541;
}

.delete-btn.disabled {
    background: #aaa;
    cursor: not-allowed;
}

#qrViewer {
    margin-top: 30px;
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-align: center;
}

#qrViewer img {
    width: 250px;
    height: 250px;
}

#navButtons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

#counter {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
}