body {
    margin: 0;
    padding: 0;
    background: white;
}

.content {
    padding: 20px;
}

/* Navigation */
.topnav {
    display: flex !important;
    align-items: center;
    background-color: #009688;
    min-height: 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.topnav a,
.topnav .dropbtn {
    display: block;
    color: white !important;
    padding: 12px 16px;
    text-decoration: none !important;
    font-size: 15px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    min-width: auto !important;
    font-weight: normal;
    line-height: 1;
    cursor: pointer;
}

.topnav a:hover,
.topnav .dropdown:hover .dropbtn {
    background-color: #00796b !important;
}

.topnav .dropdown {
    position: relative;
}

.topnav .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 1000;
}

.topnav .dropdown-content a {
    color: black !important;
    background: white !important;
    padding: 12px 16px;
    white-space: nowrap;
}

.topnav .dropdown-content a:hover {
    background-color: #f1f1f1 !important;
}

.topnav .dropdown:hover .dropdown-content {
    display: block;
}

/* Formulare */
input,
select,
button {
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 250px;
}

button {
    background-color: #2f6f4f;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #25583f;
}

.form-row {
    margin-bottom: 12px;
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

table th {
    background-color: #2f6f4f;
    color: white;
    padding: 12px;
    text-align: left;
}

table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

table tr:nth-child(even) {
    background-color: #f7faf7;
}

table tr:hover {
    background-color: #eef5ef;
}

table a {
    color: #2f6f4f;
    font-weight: bold;
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}

/* Meldungen */
.success {
    color: #1f7a1f;
    font-weight: bold;
}

.error {
    color: #b00020;
    font-weight: bold;
}

/* Seriennummern */
.serial-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.serial-row input {
    flex: 1;
    font-size: 16px;
}

.serial-card {
    display: block;
    padding: 14px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 18px;
    background: white;
    cursor: pointer;
}

.serial-card input {
    margin-right: 10px;
    min-width: auto;
    transform: scale(1.3);
}

.serial-actions {
    display: flex;
    gap: 6px;
}

.serial-actions button {
    min-width: 0;
    flex: 1;
}

#serialCount {
    margin-top: 0;
    margin-bottom: 15px;
}

#scannerVideo {
    width: 100%;
    max-width: 420px;
    margin-top: 10px;
    display: block;
}

#scannerVideo[hidden] {
    display: none !important;
}

/* Mobile */
@media (max-width: 600px) {
    input,
    select,
    button {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .topnav {
        flex-wrap: wrap;
    }

    .topnav a,
    .topnav .dropbtn {
        width: auto;
    }

    .serial-row {
        display: block;
    }

    .serial-card {
        font-size: 16px;
    }
}
.page-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.action-button,
.secondary-button {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.action-button {
    background-color: #2f6f4f;
    color: white;
}

.action-button:hover {
    background-color: #25583f;
    text-decoration: none;
}

.secondary-button {
    background-color: #eef5ef;
    color: #2f6f4f;
}

.secondary-button:hover {
    background-color: #dceade;
    text-decoration: none;
}
.small-button {
    min-width: auto;
    padding: 6px 10px;
    margin: 0;
    font-size: 14px;
}

.serial-details-row td {
    background-color: #f7faf7;
}

.serial-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.serial-chip {
    display: inline-block;
    padding: 6px 10px;
    background-color: #eef5ef;
    color: #2f6f4f;
    border: 1px solid #d2e3d5;
    border-radius: 999px;
    font-size: 14px;
}
.serial-chip.reserved,
.serial-card.reserved {
    background-color: #ffe8e8;
    border-color: #d93636;
    color: #9b111e;
}

.serial-reserved-note {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #9b111e;
    font-weight: bold;
}
.inline-form {
    display: inline;
}

.inline-form button {
    margin: 0;
}
.login-page {
    min-height: 100vh;
    background: #eef5ef;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.login-card h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.login-card input,
.login-card button {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.login-card button {
    margin-top: 10px;
}
