/* Document Signature Modal Styles */
.document-signature-container {
    background-color: #f8f9fa;
    min-height: 100%;
}

.pdf-preview-wrapper {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.signature-pdf-viewer {
    border: 1px solid #dee2e6;
}

.signature-overlay-area {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    position: absolute !important;
    z-index: 10000 !important;
}

.signature-overlay-area * {
    user-select: none !important;
}

.drag-handle {
    user-select: none !important;
    cursor: grab !important;
}

.drag-handle:active {
    cursor: grabbing !important;
}

.resize-handle {
    z-index: 10001 !important;
    pointer-events: all !important;
}

.signature-tools {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1rem;
}

.signature-tools .nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.signature-tools .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.signature-tools .nav-link:hover {
    color: #007bff;
    border-bottom-color: #007bff;
}

.signature-tools .nav-link.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

#signatureCanvas {
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    touch-action: none;
    display: block;
}

.draw-signature-area,
.type-signature-area {
    animation: fadeIn 0.3s ease;
}

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

/* Ensure PDF viewer doesn't block interactions */
.dxbl-pdf-viewer {
    pointer-events: auto !important;
}

.dxbl-pdf-viewer * {
    pointer-events: auto !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .signature-overlay-area {
        position: static !important;
        margin-top: 20px;
    }

    .signature-tools-panel {
        height: auto !important;
        max-height: 50vh;
    }
}
