/* ===== Export Dropdown ===== */

.export-dropdown-menu {
    display: none;
    position: fixed;
    background: #2a2d30;
    border: 1px solid #3d4144;
    border-radius: 6px;
    padding: 4px;
    list-style: none;
    margin: 0;
    z-index: 99999;
    min-width: 150px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.export-dropdown-menu.open {
    display: block;
}

.export-dropdown-menu li {
    display: block;
}

.export-dropdown-menu button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 7px 12px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #e8eaed;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.export-dropdown-menu button:hover {
    background: rgba(255,255,255,0.08);
}

/* ===== Open Panel ===== */
.open-panel {
    position: fixed;
    display: flex;
    gap: 8px;
    background: #2a2d30;
    border: 1px solid #3d4144;
    border-radius: 8px;
    padding: 8px;
    z-index: 9999;
    box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}

.open-panel-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px;
    width: 172px;
    background: #1e2124;
    border: 1px solid #3d4144;
    border-radius: 6px;
    color: #e8eaed;
    cursor: pointer;
    text-align: left;
    transition: background .15s, border-color .15s;
    font-family: inherit;
}

.open-panel-card:hover {
    background: #2d3135;
    border-color: #1a73e8;
}

.open-panel-card svg {
    color: #9aa0a6;
    flex-shrink: 0;
    transition: color .15s;
}

.open-panel-card:hover svg { color: #1a73e8; }

.open-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: #e8eaed;
}

.open-panel-sub {
    font-size: 11.5px;
    color: #9aa0a6;
    line-height: 1.4;
}

/* Additional ColorPicker & StrokeWidthPicker Styles */
.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.color-swatch.active {
    border-color: #8ab4f8;
    box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.3);
}

.stroke-width-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    background: #202124;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
}

/* Labels in stroke-width-item verstecken */
.stroke-width-item span {
    display: none;
}

.stroke-width-item:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
    background: #292b2e;
}

.stroke-width-item.active {
    border-color: #8ab4f8;
    box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.3);
    background: #292b2e;
}

.stroke-preview {
    background: #e8eaed;
    border-radius: 2px;
    transition: background 0.2s;
}

.stroke-width-item .stroke-preview {
    background: #fff;
}

.stroke-width-item:hover .stroke-preview {
    background: #fff;
}

/* ============================================
   FORMULARFELD-EDITOR STYLES
   ============================================ */

/* Formular-Modus Toggle Button */
#formModeBtn {
    position: relative;
}

#formModeBtn.active {
    background: #1a73e8 !important;
    color: white !important;
}

#formModeBtn.active svg {
    stroke: white;
}

/* Formular-Toolbar-Gruppe */
.form-toolbar-group {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Formular-Tool-Buttons */
.form-tool-btn {
    width: 32px !important;
    height: 32px !important;
    padding: 4px !important;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.form-tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.form-tool-btn.active {
    background: #1a73e8 !important;
    color: white !important;
}

.form-tool-btn.active svg {
    stroke: white;
}

/* Felder-Erkennungs-Button */
.detect-fields-btn {
    color: #8ab4f8 !important;
    position: relative;
}

.detect-fields-btn:hover {
    background: rgba(138, 180, 248, 0.15) !important;
}

.detect-fields-btn.detecting {
    opacity: 0.6;
    cursor: wait;
    animation: detect-pulse 1s ease-in-out infinite;
}

@keyframes detect-pulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1;   }
}

/* Body-Klasse für Formular-Modus */
body.form-mode-active .toolbar {
    border-bottom-color: #1a73e8;
}

body.form-mode-active #canvasContainer {
    /* Visueller Hinweis dass Formular-Modus aktiv ist */
}

/* Formular-Canvas Layer */
.form-field-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 15; /* Über PDF, unter Annotationen */
}

body.form-mode-active .form-field-canvas {
    pointer-events: auto;
}

/* Formular-Modus Indikator */
.form-mode-indicator {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a73e8;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(26, 115, 232, 0.3);
    z-index: 1000;
    display: none;
    align-items: center;
    gap: 8px;
}

body.form-mode-active .form-mode-indicator {
    display: flex;
}

.form-mode-indicator svg {
    width: 16px;
    height: 16px;
}

/* Feld-Eigenschaften Panel (Platzhalter für später) */
.field-properties-panel {
    position: fixed;
    right: 20px;
    top: 60px;
    width: 280px;
    background: #292b2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: none;
}

body.form-mode-active .field-properties-panel.visible {
    display: block;
}

.field-properties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.field-properties-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #e8eaed;
}

.field-properties-close {
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s;
}

.field-properties-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e8eaed;
}

.field-properties-content {
    padding: 16px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.field-property-group {
    margin-bottom: 16px;
}

.field-property-group label {
    display: block;
    font-size: 12px;
    color: #9aa0a6;
    margin-bottom: 6px;
}

.field-property-group input[type="text"],
.field-property-group input[type="number"],
.field-property-group select {
    width: 100%;
    padding: 8px 12px;
    background: #202124;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #e8eaed;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
}

.field-property-group input:focus,
.field-property-group select:focus {
    border-color: #1a73e8;
}

.field-property-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.field-property-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.field-property-checkbox input {
    margin-right: 8px;
}

.field-property-checkbox span {
    font-size: 13px;
    color: #e8eaed;
}

/* Eigenschafts-Panel Sektionen */
.field-property-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.field-property-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.field-property-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #8ab4f8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Zweispaltige Anordnung */
.field-property-row {
    display: flex;
    gap: 12px;
}

.field-property-half {
    flex: 1;
    margin-bottom: 12px;
}

.field-property-half:last-child {
    margin-bottom: 12px;
}

/* Color-Picker Styling */
.field-property-group input[type="color"] {
    width: 100%;
    height: 32px;
    padding: 2px;
    background: #202124;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
}

.field-property-group input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.field-property-group input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}

/* Number-Input */
.field-property-group input[type="number"] {
    -moz-appearance: textfield;
}

.field-property-group input[type="number"]::-webkit-outer-spin-button,
.field-property-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Positions-Info */
.field-property-info {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 12px !important;
    margin: 0 -8px;
}

.field-position-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9aa0a6;
    font-family: 'Courier New', monospace;
}

/* Checkbox-Gruppe Abstände */
.field-property-section .field-property-checkbox {
    margin-bottom: 10px;
}

.field-property-section .field-property-checkbox:last-child {
    margin-bottom: 0;
}

/* Scrollbar Styling für Panel */
.field-properties-content::-webkit-scrollbar {
    width: 6px;
}

.field-properties-content::-webkit-scrollbar-track {
    background: transparent;
}

.field-properties-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.field-properties-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Formular-Feld Auswahl-Highlight auf Canvas */
.form-field-selected {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

/* Tooltip für Formular-Buttons */
.form-tool-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

/* Mobile Anpassungen für Formular-Modus */
@media (max-width: 768px) {
    .form-toolbar-group {
        gap: 1px;
        padding-left: 4px;
        margin-left: 2px;
    }
    
    .form-tool-btn {
        width: 28px !important;
        height: 28px !important;
    }
    
    .form-mode-indicator {
        bottom: 80px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .field-properties-panel {
        right: 10px;
        left: 10px;
        width: auto;
        top: auto;
        bottom: 100px;
    }
}

/* ====================================================
   Seiten-Manager: Thumbnail-Actions & Drag
   ==================================================== */

.thumbnail-item {
    position: relative;
}


.thumbnail-actions {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 2;
}

.thumbnail-item:hover .thumbnail-actions {
    opacity: 1;
}

/* Auf Touch-Geräten immer sichtbar */
@media (hover: none) {
    .thumbnail-actions {
        opacity: 1;
    }
}

.thumb-btn {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.thumb-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

.thumb-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

.thumb-delete:hover {
    background: #c0392b;
}

/* Export-Button oben rechts im Thumbnail */
.thumb-export-wrap {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.15s;
}

.thumbnail-item:hover .thumb-export-wrap,
.thumb-export-wrap.menu-open {
    opacity: 1;
}

@media (hover: none) {
    .thumb-export-wrap { opacity: 1; }
}

.thumb-export-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 0;
}

.thumb-export-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

.thumb-export-menu {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background: #2a2d30;
    border: 1px solid #3d4144;
    border-radius: 6px;
    padding: 4px 0;
    min-width: 150px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.55);
    z-index: 100;
    white-space: nowrap;
}

.thumb-export-menu.open {
    display: block;
}

.thumb-export-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 12px;
    background: none;
    border: none;
    color: #e8eaed;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    white-space: nowrap;
}

.thumb-export-menu button:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* ====================================================
   Seiten-Manager: Add-Page-Modal
   ==================================================== */

.add-page-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-page-modal.hidden {
    display: none;
}

.add-page-modal.drag-over .dropzone-content {
    outline: 3px dashed var(--accent-color);
    outline-offset: -3px;
    background: color-mix(in srgb, var(--accent-color) 8%, var(--bg-secondary));
}

.add-page-modal.drag-over .dropzone-title::after {
    content: ' — Datei hier ablegen';
    color: var(--accent-color);
}


.add-page-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.add-page-modal .dropzone-content {
    position: relative;
    z-index: 1;
    width: 90%;
    background: #323639;
}

/* ::before SVG gap-rect Farbe auf opakes Hintergrundfarbe korrigieren */
.add-page-modal .dropzone-content::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" viewBox="0 0 600 400"><rect x="0.5" y="0.5" width="599" height="399" fill="none" stroke="%23676767" stroke-width="1" stroke-dasharray="3,3" rx="8" ry="8"/><rect x="282" y="397" width="36" height="4" fill="%23323639"/></svg>');
}

.add-page-modal .border-notch {
    border-top-color: #323639;
}


.add-page-cancel-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 13px;
    margin-top: 4px;
    padding: 8px 16px;
    -webkit-tap-highlight-color: transparent;
}

/* ===== Font Picker ===== */
.font-picker-wrapper {
    position: relative;
    display: inline-flex;
    pointer-events: auto;
}

.font-picker-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px 4px 10px;
    background: #2a2d30;
    border: 1px solid #5f6368;
    border-radius: 4px;
    color: #e8eaed;
    cursor: pointer;
    font-size: 14px;
    min-width: 120px;
    height: 28px;
    white-space: nowrap;
    text-align: left;
    transition: border-color .15s, background .15s;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

.font-picker-trigger:hover,
.font-picker-trigger.open {
    background: #3d4144;
    border-color: #8ab4f8;
}

.font-picker-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    font-size: 14px;
}

.font-picker-dropdown {
    display: none;
    flex-direction: column;
    position: fixed;
    background: #2a2d30;
    border: 1px solid #5f6368;
    border-radius: 6px;
    overflow: hidden;
    z-index: 999999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
    min-width: 160px;
}

.font-picker-dropdown.open {
    display: flex;
}

.font-picker-items-scroll {
    overflow-y: auto;
    flex: 1;
}

.font-picker-item {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 14px;
    color: #e8eaed;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background .1s;
}

.font-picker-item:hover {
    background: #3d4144;
}

.font-picker-item.active {
    background: rgba(138, 180, 248, 0.15);
    color: #8ab4f8;
}

.font-picker-section-label {
    padding: 6px 12px 2px;
    font-size: 11px;
    color: #9aa0a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid #3d4144;
}

.font-picker-search-wrap {
    border-top: 1px solid #3d4144;
    padding: 6px 8px;
    flex-shrink: 0;
}

.font-picker-search {
    width: 100%;
    box-sizing: border-box;
    padding: 5px 8px;
    background: #1e2124;
    border: 1px solid #5f6368;
    border-radius: 4px;
    color: #e8eaed;
    font-size: 13px;
    outline: none;
}

.font-picker-search:focus {
    border-color: #8ab4f8;
}

.font-picker-results {
    max-height: 160px;
    overflow-y: auto;
}

.font-picker-result-item {
    font-size: 13px;
}

.font-picker-remove {
    margin-left: auto;
    padding: 0 4px;
    opacity: 0.5;
    font-style: normal;
    font-family: sans-serif;
    line-height: 1;
}

.font-picker-remove:hover {
    opacity: 1;
    color: #f28b82;
}

/* ===== Serien-Export Modal ===== */

.batch-modal-content {
    position: relative;
    z-index: 10001;
    background: #2a2d30;
    border: 1px solid #3d4144;
    border-radius: 12px;
    padding: 28px 32px;
    width: 480px;
    max-width: 95vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}

.batch-modal-title {
    font-size: 17px;
    font-weight: 600;
    color: #e8eaed;
    margin: 0 0 8px 0;
}

.batch-modal-desc {
    font-size: 13px;
    color: #9aa0a6;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.batch-file-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #3d4144;
    border: 1px dashed #5f6368;
    border-radius: 8px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 14px;
    color: #e8eaed;
    transition: background 0.15s;
}

.batch-file-label:hover { background: #4a4d50; }

.batch-csv-name {
    font-size: 12px;
    color: #8ab4f8;
    margin: 8px 0 0 0;
    min-height: 16px;
}

.batch-mapping-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 11px;
    color: #9aa0a6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 4px 6px;
    border-bottom: 1px solid #3d4144;
    margin-bottom: 8px;
}

.batch-mapping-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
    padding: 5px 4px;
    border-radius: 6px;
}

.batch-mapping-row:hover { background: #313438; }

.batch-mapping-col-name {
    font-size: 13px;
    color: #e8eaed;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-mapping-select {
    background: #3d4144;
    border: 1px solid #5f6368;
    border-radius: 6px;
    color: #e8eaed;
    font-size: 12px;
    padding: 4px 8px;
    width: 100%;
    cursor: pointer;
}

.batch-mapping-select:focus { outline: none; border-color: #8ab4f8; }

.batch-filename-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #3d4144;
    font-size: 13px;
    color: #9aa0a6;
}

.batch-filename-row select {
    background: #3d4144;
    border: 1px solid #5f6368;
    border-radius: 6px;
    color: #e8eaed;
    font-size: 12px;
    padding: 4px 8px;
    cursor: pointer;
    flex: 1;
}

.batch-format-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0 0;
    font-size: 13px;
    color: #9aa0a6;
}

.batch-format-toggle {
    display: flex;
    border: 1px solid #5f6368;
    border-radius: 6px;
    overflow: hidden;
}

.batch-format-btn {
    background: #3d4144;
    border: none;
    color: #9aa0a6;
    font-size: 13px;
    font-family: inherit;
    padding: 5px 16px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.batch-format-btn + .batch-format-btn {
    border-left: 1px solid #5f6368;
}

.batch-format-btn.active {
    background: #1a73e8;
    color: #fff;
}

.batch-format-btn:not(.active):hover {
    background: #4a4d50;
    color: #e8eaed;
}

.batch-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

.batch-btn-primary {
    background: #8ab4f8;
    color: #1a1c1e;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.batch-btn-primary:hover { background: #aecbfa; }
.batch-btn-primary:disabled { background: #5f6368; color: #9aa0a6; cursor: not-allowed; }

.batch-btn-secondary {
    background: transparent;
    color: #9aa0a6;
    border: 1px solid #5f6368;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.batch-btn-secondary:hover { background: #3d4144; color: #e8eaed; }

.batch-progress-bar-wrap {
    background: #3d4144;
    border-radius: 4px;
    height: 6px;
    margin: 16px 0 10px;
    overflow: hidden;
}

.batch-progress-bar {
    height: 100%;
    background: #8ab4f8;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.batch-progress-text {
    font-size: 13px;
    color: #9aa0a6;
    text-align: center;
    margin: 0;
}

.batch-example-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.batch-example-csv-btn,
.batch-example-use-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #8ab4f8;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.15s;
}

.batch-example-csv-btn:hover,
.batch-example-use-btn:hover { color: #aecbfa; }

/* Touch-Aktionsmenü bei Long-Press auf Formularfeld — Icon-only, wie das Annotations-ContextMenu */
.field-action-menu {
    position: fixed;
    z-index: 100000;
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #323639;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.field-action-menu button {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e8eaed;
    width: 28px;
    height: 28px;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.field-action-menu button:active {
    background: rgba(255, 255, 255, 0.1);
}

.field-action-menu button[data-action="delete"] {
    color: #f28b82;
}

.field-action-menu button[data-action="delete"]:active {
    background: rgba(220, 53, 69, 0.25);
    border-color: rgba(220, 53, 69, 0.6);
}
