/* ============================================
   redact_modal.css – Schwärz-Modal Styling
   ============================================ */

/* Overlay */
.redact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.redact-modal-overlay.visible {
    opacity: 1;
}

/* Modal */
.redact-modal {
    background: #1a1a2e;
    border-radius: 16px;
    width: 95%;
    max-width: 900px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.redact-modal-overlay.visible .redact-modal {
    transform: scale(1);
}

/* Header */
.redact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #16213e, #0f3460);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.redact-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.redact-title svg {
    color: #e94560;
}

/* Page Navigation */
.redact-page-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.redact-btn-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.redact-btn-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.redact-btn-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.redact-btn-close:hover {
    background: #e94560;
    border-color: #e94560;
}

/* Hint */
.redact-hint {
    padding: 10px 20px;
    background: rgba(233, 69, 96, 0.15);
    color: #e94560;
    font-size: 13px;
    text-align: center;
    border-bottom: 1px solid rgba(233, 69, 96, 0.2);
}

/* Canvas Area */
.redact-canvas-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: auto;
    background: #111;
    min-height: 200px;
}

#redact-canvas {
    cursor: crosshair;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    touch-action: none; /* Wichtig für Mobile: kein Scroll beim Zeichnen */
}

/* Toolbar */
.redact-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #16213e, #0f3460);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.redact-spacer {
    flex: 1;
}

.redact-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.redact-btn-undo {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.redact-btn-undo:hover {
    background: rgba(255, 255, 255, 0.2);
}

.redact-btn-clear {
    background: rgba(233, 69, 96, 0.2);
    color: #e94560;
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.redact-btn-clear:hover {
    background: rgba(233, 69, 96, 0.4);
}

.redact-btn-skip {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.redact-btn-skip:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.redact-btn-confirm {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.redact-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .redact-modal {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .redact-header {
        padding: 12px 14px;
    }

    .redact-title {
        font-size: 14px;
    }

    .redact-toolbar {
        padding: 10px 14px;
        gap: 6px;
    }

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

    .redact-hint {
        font-size: 12px;
        padding: 8px 14px;
    }

    .redact-canvas-wrapper {
        padding: 8px;
    }
}
