/* Shared CSS for Document Engine (DOC-NAV-001) */
.doc-engine-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.doc-engine-toolbar {
    height: 60px;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
}

.doc-engine-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.doc-engine-actions {
    display: flex;
    gap: 10px;
}

.doc-btn {
    background: #334155;
    border: 1px solid #475569;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.doc-btn:hover {
    background: #475569;
}

.doc-btn.primary {
    background: #2563eb;
    border-color: #3b82f6;
}

.doc-btn.primary:hover {
    background: #3b82f6;
}

.doc-btn.danger {
    background: #ef4444;
    border-color: #f87171;
}

.doc-btn.danger:hover {
    background: #f87171;
}

.doc-engine-workspace {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    justify-content: center;
}

.doc-engine-paper {
    background: white;
    width: 210mm; /* A4 standard width */
    min-height: 297mm; /* A4 standard height */
    padding: 20mm;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-radius: 4px;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    position: relative;
}

@media print {
    body * {
        visibility: hidden;
    }
    #doc-engine-print-area, #doc-engine-print-area * {
        visibility: visible;
    }
    #doc-engine-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
    .doc-engine-overlay, .doc-engine-toolbar {
        display: none !important;
    }
}
