/**
 * Document Wizard - CSS Styles
 * Ein modernes und benutzerfreundliches Styling für das Dokument-Markierungssystem
 */

.wizard-container {
    position: relative;
    margin-top: 2rem;
}

.wizard-header {
    background-image: linear-gradient(to right, #4776E6, #8E54E9);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.wizard-content {
    display: flex;
    gap: 2rem;
}

/* Linke Seite - Kontrollelemente */
.wizard-sidebar {
    width: 350px;
    flex-shrink: 0;
}

.wizard-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.wizard-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #495057;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* Marker Liste */
.markers-list {
    max-height: 300px;
    overflow-y: auto;
}

.marker-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

.marker-list-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.marker-list-item .marker-info {
    flex-grow: 1;
}

.marker-list-item .marker-name {
    font-weight: 600;
    color: #495057;
    display: block;
}

.marker-list-item .marker-type {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
}

.marker-list-item .marker-page {
    font-size: 0.8rem;
    background-color: #e9ecef;
    color: #495057;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.marker-list-item .marker-actions {
    display: flex;
    gap: 0.25rem;
}

/* Rechte Seite - Dokumentenvorschau */
.pdf-preview-container {
    flex-grow: 1;
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #f8f9fa;
    overflow: hidden;
}

.pdf-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f1f3f5;
    border-bottom: 1px solid #dee2e6;
}

.page-counter {
    font-size: 0.9rem;
    color: #495057;
}

.pdf-container {
    position: relative;
    width: 100%;
    min-height: 600px;
    height: auto;
    max-width: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.pdf-page {
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Marker im Dokument */
.marker-element {
    position: absolute;
    background-color: rgba(0, 123, 255, 0.2);
    border: 2px solid #007bff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: move;
    user-select: none;
    font-size: 0.9rem;
    color: #007bff;
    padding: 0.25rem;
    z-index: 10;
}

.marker-element .marker-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.marker-element .resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #007bff;
    border-radius: 50%;
}

.marker-element .resize-handle-nw {
    top: -5px;
    left: -5px;
    cursor: nw-resize;
}

.marker-element .resize-handle-ne {
    top: -5px;
    right: -5px;
    cursor: ne-resize;
}

.marker-element .resize-handle-sw {
    bottom: -5px;
    left: -5px;
    cursor: sw-resize;
}

.marker-element .resize-handle-se {
    bottom: -5px;
    right: -5px;
    cursor: se-resize;
}

.marker-element:hover {
    background-color: rgba(0, 123, 255, 0.3);
}

.marker-element[data-type="text"] {
    background-color: rgba(0, 123, 255, 0.2);
    border-color: #007bff;
    color: #007bff;
}

.marker-element[data-type="date"] {
    background-color: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
    color: #28a745;
}

.marker-element[data-type="number"] {
    background-color: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    color: #ffc107;
}

.marker-element[data-type="checkbox"] {
    background-color: rgba(108, 117, 125, 0.2);
    border-color: #6c757d;
    color: #6c757d;
}

.marker-element[data-type="signature"] {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
    color: #dc3545;
}

/* Modus für das Platzieren von Markern */
.marker-placement-mode {
    cursor: crosshair !important;
}

/* Bootstrap Modal Anpassungen */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background-image: linear-gradient(to right, #4776E6, #8E54E9);
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modal-header .close {
    color: white;
}

/* Toast-Benachrichtigungen */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

.toast {
    min-width: 250px;
}

.toast-success .toast-header {
    background-color: #d4edda;
    color: #155724;
}

.toast-error .toast-header {
    background-color: #f8d7da;
    color: #721c24;
}

/* Mobile-Responsive Anpassungen */
@media (max-width: 992px) {
    .wizard-content {
        flex-direction: column;
    }
    
    .wizard-sidebar {
        width: 100%;
        margin-bottom: 1.5rem;
    }
}
