/* DocumentMarkers CSS */

.marker-editor-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.marker-form-container {
    width: 350px;
    flex-shrink: 0;
}

.document-preview-container {
    flex-grow: 1;
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    min-height: 600px;
}

.pdf-container {
    width: 100%;
    height: 600px;
    overflow: auto;
    position: relative;
}

.marker-item {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: move;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.marker-item:hover {
    background-color: #f8f9fa;
}

.marker-item.active {
    border-color: #007bff;
    background-color: #e7f5ff;
}

.draggable-marker {
    position: absolute;
    border: 2px solid #007bff;
    background-color: rgba(0, 123, 255, 0.2);
    border-radius: 4px;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    min-height: 30px;
    z-index: 1000;
}

.draggable-marker .marker-label {
    color: #007bff;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    padding: 0 4px;
    pointer-events: none;
}

.pdf-page-selector {
    padding: 10px;
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.marker-indicator {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #dc3545;
    right: 5px;
    top: 5px;
}

.marker-tooltip {
    position: absolute;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 5px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1010;
    display: none;
}

.marker-placement-mode .pdf-container:hover {
    cursor: crosshair;
}

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

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s;
}

.notification-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.notification-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.notification.fade-out {
    opacity: 0;
}
