/* BBS App Styles - Ueberarbeitet */
:root {
    --primary-color: #ED701E;
    --primary-dark: #d5601a;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --text-primary: #333;
    --text-secondary: #666;
    --bg-primary: #f5f5f5;
    --bg-secondary: #fff;
    --border-color: #ddd;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}
#loginScreen{
	background: #000;
}
#loginScreen.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header */
.app-header {
    background: #000;
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.app-header h1 {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 8px;
}

.header-buttons, .header-buttons-left {
    display: flex;
    gap: 4px;
}

.btn-icon {
    background: transparent;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
    position: relative;
}

.btn-icon:hover, .btn-icon:active {
    background: rgba(255,255,255,0.2);
}

/* Sync Badge */
.sync-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.nav-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.nav-tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.nav-tab i {
    font-size: 18px;
}

/* Content */
.app-content {
    padding: 16px;
    padding-bottom: 80px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.search-box {
    position: relative;
    margin-bottom: 16px;
}

.search-box:before {
    font-family: FontAwesome;
    content: "\f002"; /* fa-search */
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
}

/* Date Header */
.date-header {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    margin: 0 -16px 12px;
    font-weight: 600;
}

.date-header h3 {
    font-size: 14px;
    font-weight: 600;
}

/* Job Cards - NEUES LAYOUT */
.job-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
    align-items: stretch;
}

.job-main {
    flex: 1;
    padding: 10px 12px;
    cursor: pointer;
    min-width: 0;
}

.job-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-firma {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-ort {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.job-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.info-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.info-tag i {
    font-size: 10px;
}

.info-tag.tag-team {
    color: white;
}

.info-tag.tag-users {
    background: #e0e0e0;
    color: #333;
}

.info-tag.tag-k {
    background: #e3f2fd;
    color: #1565c0;
}

.info-tag.tag-w {
    background: #fff3e0;
    color: #e65100;
}

.info-tag.tag-f {
    background: #f3e5f5;
    color: #7b1fa2;
}

.info-tag.tag-s {
    background: #e8f5e9;
    color: #2e7d32;
}

.job-right-icons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
    background: var(--bg-primary);
    min-width: 50px;
    gap: 2px;
}

.job-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    margin: 0;
}

.job-icon-btn i {
    font-size: 20px;
}

.job-icon-btn:hover {
    opacity: 0.7;
}

.icon-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #f44336;
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Alte Klassen fuer Kompatibilitaet */
.job-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    background: var(--bg-primary);
    min-width: 50px;
}

.job-team {
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
}

.job-icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 4px 0;
}

.job-icon,
button.job-icon,
a.job-icon,
span.job-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0;
    margin: 0;
}

.job-icon i {
    font-size: 22px;
}

.job-icon:hover {
    opacity: 0.7;
}

.job-icon:focus,
button.job-icon:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.job-action-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    text-decoration: none;
}

/* Report Cards */
.report-group-header {
    background: #e9ecef;
    padding: 8px 16px;
    margin: 16px -16px 12px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
}

.report-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
    cursor: pointer;
    border-left: 4px solid var(--warning-color);
}

.report-card.signed {
    border-left-color: var(--danger-color);
}

.report-card.unsigned {
    border-left-color: var(--warning-color);
}

.report-main {
    flex: 1;
    padding: 12px;
}

.report-nr {
    font-weight: 600;
    font-size: 14px;
}

.report-firma {
    font-size: 13px;
    color: var(--text-secondary);
}

.report-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.report-job {
    font-size: 12px;
    color: var(--primary-color);
    margin-top: 4px;
}

.report-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    background: var(--bg-primary);
    min-width: 50px;
}

.report-team {
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.report-status {
    font-size: 20px;
}

/* Detail Sections */
.detail-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.detail-section h2 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--primary-color);
    margin: -16px -16px 12px -16px;
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Count Bubble fuer Anzahl (schwarzer Hintergrund) */
.count-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    padding: 0 6px;
    margin-left: auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    margin: -16px -16px 12px -16px;
    padding: 8px 12px 8px 16px;
    border-radius: 12px 12px 0 0;
}

.section-header h2 {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.section-header .btn {
    background: #000;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.section-header .btn:hover {
    background: #333;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.detail-value {
    font-size: 13px;
    text-align: right;
    flex: 1;
    margin-left: 16px;
}

/* Work Items */
.work-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.work-item {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 12px;
}

.work-item-header {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

/* Entray Items */
.entray-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.entray-item {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.entray-content {
    flex: 1;
    cursor: pointer;
}

.entray-index {
    font-weight: 600;
    color: var(--primary-color);
}

.entray-details {
    font-size: 13px;
    color: var(--text-primary);
}

.entray-disc {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

.btn-delete {
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
}

.btn-delete:hover {
    opacity: 0.7;
}

/* Information/Beschreibung Display */
.disc-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    min-height: 60px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.disc-display:hover {
    background: #e9ecef;
}

.disc-text {
    flex: 1;
    white-space: pre-wrap;
    word-break: break-word;
}

.disc-text .text-muted {
    color: #999;
    font-style: italic;
}

.disc-edit-icon {
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
}

/* Fragen */
.frage-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.frage-item:last-child {
    border-bottom: none;
}

.frage-question {
    font-size: 13px;
    color: var(--text-secondary);
    flex: 1;
}

.frage-answer {
    font-size: 14px;
    text-align: right;
    flex-shrink: 0;
}

/* Team Members */
.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.team-member {
    background: var(--bg-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* Files Grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.file-item {
    text-align: center;
}

.file-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
}

.file-desc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.file-link {
    display: block;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    color: var(--text-primary);
}

/* Messages */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-item {
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 12px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.message-user {
    font-weight: 600;
    font-size: 13px;
}

.message-date {
    font-size: 11px;
    color: var(--text-secondary);
}

.message-text {
    font-size: 13px;
    line-height: 1.4;
}

.message-img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    cursor: pointer;
}

.message-video, .message-audio {
    width: 100%;
    margin-top: 8px;
}

/* Signature Section */
.signature-section.signed {
    background: #d4edda;
    border: 2px solid var(--success-color);
}

.signature-img {
    max-width: 100%;
    max-height: 100px;
    margin-top: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.signature-canvas {
    max-width: 100%;
    height: auto;
    margin-top: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
}

.info-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
    padding: 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover, .btn-primary:active {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #e9ecef;
    color: var(--text-primary);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 12px;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.link-btn {
    color: var(--primary-color);
    text-decoration: none;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
#loginForm .form-group label {
	color:#fff;
}
.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    background: var(--bg-secondary);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.modal-dialog {
    background: var(--bg-secondary);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 16px;
    font-weight: 600;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    padding: 16px;
}

/* Signature Canvas */
#signatureCanvas {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    width: 100%;
    height: 150px;
    touch-action: none;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast */
.toast-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    animation: fadeIn 0.3s;
    box-shadow: var(--shadow);
}

.toast.success { background: var(--success-color); }
.toast.error { background: var(--danger-color); }
.toast.warning { background: var(--warning-color); color: #333; }

.toast-icon {
    font-size: 16px;
}

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

/* Login */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px 20px;
    text-align: center;
}

.login-header {
    margin-bottom: 40px;
}

.login-logo {
    max-width: 100%;
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 24px;
    color: var(--primary-color);
}

.login-form {
    text-align: left;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state h3 {
    margin-bottom: 8px;
}

/* Description Text */
.description-text {
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Detail Tables */
.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.detail-table tr:last-child td {
    border-bottom: none;
}

.detail-table td.label {
    color: var(--text-secondary);
    width: 40%;
}

/* Work Tables */
.table-responsive {
    overflow-x: auto;
    margin: 0 -8px;
    padding: 0 8px;
}

.work-table, .entray-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.work-table th, .entray-table th {
    background: var(--bg-primary);
    padding: 8px 6px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.work-table td, .entray-table td {
    padding: 10px 6px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.work-table tr:last-child td, .entray-table tr:last-child td {
    border-bottom: none;
}

.entray-table tr {
    cursor: pointer;
    transition: background 0.2s;
}

.entray-table tr:hover {
    background: var(--bg-primary);
}

/* Form Rows */
.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

/* Sync Status */
.syncing .btn-sync:before {
    animation: spin 1s linear infinite;
}

/* Icon Buttons via CSS */
.btn-back:before {
    font-family: FontAwesome;
    content: "\f060"; /* fa-arrow-left */
}

.btn-home:before {
    font-family: FontAwesome;
    content: "\f015"; /* fa-home */
}

.btn-sync:before {
    font-family: FontAwesome;
    content: "\f021"; /* fa-refresh */
}

.btn-logout:before {
    font-family: FontAwesome;
    content: "\f08b"; /* fa-sign-out */
}

/* Search Box Icon */
.search-box {
    position: relative;
}

.search-box:before {
    font-family: FontAwesome;
    content: "\f002"; /* fa-search */
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.search-box input {
    padding-left: 40px;
}

/* Job Action Icons */
.job-action-btn:before {
    font-family: FontAwesome;
}

.job-action-btn:first-of-type:before {
    content: "\f041"; /* fa-map-marker */
}

.job-action-btn:last-of-type:before {
    content: "\f15c"; /* fa-file-text-o */
}

/* Toast Icons */
.toast:before {
    font-family: FontAwesome;
    margin-right: 8px;
}

.toast.success:before {
    content: "\f00c"; /* fa-check */
}

.toast.error:before {
    content: "\f00d"; /* fa-times */
}

.toast.warning:before {
    content: "\f071"; /* fa-exclamation-triangle */
}

.toast.info:before {
    content: "\f05a"; /* fa-info-circle */
}

/* ============================================
   DOCUMENTATION STYLES
   ============================================ */

.documentation-page {
    padding: 0;
}

.doc-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.doc-buttons .btn {
    flex: 1;
    padding: 12px;
}

.doc-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-image-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.3s;
}

.doc-image-wrapper {
    position: relative;
}

.doc-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.local-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.doc-image-controls {
    padding: 12px;
}

.doc-image-buttons {
    display: flex;
    gap: 8px;
    padding: 12px;
}

.btn-doc-text {
    flex: 1;
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.btn-doc-text:hover {
    background: #5a6268;
}

.btn-doc-text.has-text {
    background: #28a745;
}

.btn-doc-text.has-text:hover {
    background: #218838;
}

.btn-doc-delete {
    width: 50px;
    padding: 12px;
    border-radius: 4px;
}

/* Progress Bar */
.progress-container {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
}

.progress-text {
    font-size: 14px;
    margin-bottom: 8px;
}

.progress-bar-bg {
    background: #ddd;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    background: var(--primary-color);
    height: 100%;
    width: 0%;
    transition: width 0.3s;
}

/* Fullscreen Image Overlay */
.fullscreen-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fullscreen-image-overlay img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

/* Report Buttons Row - Bericht + Foto nebeneinander */
.report-buttons-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.report-buttons-row .btn-flex {
    flex: 1;
}

/* Dark Icon Button (Foto-Button) */
.btn-icon-dark {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.btn-icon-dark:hover,
.btn-icon-dark:active {
    background: #333;
}

.btn-icon-dark .icon-bubble {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* H2 mit Button (Adresse mit Nav-Button) */
.h2-with-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Kleiner Nav-Button in der Header-Leiste */
.nav-button-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.nav-button-small:hover,
.nav-button-small:active {
    background: #333;
}


