/* =======================================
   Basislayout (global)
   ======================================= */

body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid #ddd;
}

h1 {
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 10px;
}

h2 {
    font-size: 18px;
    margin-top: 20px;
}

p {
    margin: 5px 0;
}

ul {
    padding-left: 20px;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    margin-top: 5px;
}

input[type="submit"],
button,
input[type="button"] {
    padding: 10px 20px;
    margin-top: 5px;
    cursor: pointer;
}

.message {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #cccccc;
    background-color: #f5f5f5;
}

/* =======================================
   Login / generische Formulare
   ======================================= */

/* (login.php etc. benutzen die Basis-Styles + message) */

/* =======================================
   Admin-Übersicht (admin.php)
   ======================================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    border: 1px solid #ccc;
    padding: 5px;
    vertical-align: top;
}

th {
    background-color: #f0f0f0;
}

td.nowrap {
    white-space: nowrap;
}

.zip-download {
    font-weight: bold;
    text-decoration: none;
}

.zip-download:hover {
    text-decoration: underline;
}

/* Status-Auswahl im Adminpanel */

.status-select {
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    padding: 4px;
}

.status-select option {
    white-space: normal;
}

/* farbliche Hervorhebung der Statuswerte */

.status-bereit {
    color: blue;
    font-weight: bold;
}

.status-heruntergeladen {
    color: #aa6600;
    font-weight: bold;
}

.status-gedruckt {
    color: green;
    font-weight: bold;
}

.status-form-wrapper {
    margin-top: 4px;
}

.status-label-row {
    margin-top: 4px;
    margin-bottom: 2px;
}

.status-submit-row input[type="submit"] {
    margin-top: 2px;
}

/* =======================================
   Upload-Formular / Upload-Status
   (upload_form.php)
   ======================================= */

#pdf_files {
    display: none;
}

.honeypot {
    display: none;
}

/* Preisübersicht */

.price-list {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fafafa;
}

.price-list h2 {
    margin-top: 0;
}

.binding-label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.binding-label input[type="checkbox"] {
    margin-right: 5px;
}

/* Upload-Status-Panel */

.upload-status-panel {
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fafafa;
    padding: 10px;
}

.upload-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.upload-status-header-text {
    font-weight: bold;
    font-size: 0.95em;
}

.upload-status-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.upload-btn-primary {
    padding: 6px 12px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid #2c7be5;
    background-color: #2c7be5;
    color: #fff;
}

.upload-btn-primary:hover {
    background-color: #1a5bb8;
}

.upload-status-toggle-btn {
    font-size: 0.8em;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #777;
    background-color: #f0f0f0;
}

.upload-progress-bar-wrapper {
    margin-top: 10px;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.upload-progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #4caf50;
    transition: width 0.2s linear;
}

.upload-status-log {
    margin-top: 10px;
    font-size: 0.85em;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.upload-status-log p {
    margin: 2px 0;
}

.upload-status-log-info {
    color: #888;
    font-style: italic;
}

/* Block mit Captcha + "Auftrag abschließen" */

.finalize-block {
    margin-top: 15px;
}

.captcha-wrapper {
    margin-bottom: 10px;
}

#btn-finalize {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid orange;
    background-color: orange;
    color: #000;
    cursor: pointer;
}

#btn-finalize[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Erfolgsanzeige nach Finalisieren */

.upload-result-panel {
    margin-top: 20px;
    display: none;
}

.upload-result-box {
    border: 1px solid #4caf50;
    border-radius: 4px;
    background-color: #e8f8ec;
    padding: 15px;
}

.upload-result-box h2 {
    margin-top: 0;
}

.upload-result-box button {
    margin-top: 10px;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #2c7be5;
    background-color: #2c7be5;
    color: #fff;
    cursor: pointer;
}

.upload-result-box button:hover {
    background-color: #1a5bb8;
}
