/* Neumorphism Custom Styling for Bootstrap Modals */

.neu-modal .modal-content {
    background-color: var(--neu-bg, #e6ecf5);
    border: none;
    border-radius: var(--neu-radius-lg, 24px);
    color: var(--neu-text-main, #2b3a4a);
    padding: 0.5rem;
}

.modal-header {
    justify-content: space-between;
}

.neu-modal .modal-header {
    border-bottom: 1px solid rgba(200, 210, 225, 0.4);
}

.neu-modal .modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--neu-text-main, #2b3a4a);
}

.neu-modal .btn-close-neu {
    background: var(--neu-bg, #e6ecf5);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neu-text-muted, #6c7a89);
    box-shadow: 3px 3px 6px #c5d0e0, -3px -3px 6px #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.neu-modal .btn-close-neu:hover {
    color: var(--neu-primary, #005e85);
}

.neu-modal .btn-close-neu:active {
    box-shadow: inset 2px 2px 4px #c5d0e0, inset -2px -2px 4px #ffffff;
}

.neu-modal .modal-body {
    padding: 1.5rem;
}

.neu-modal .modal-footer {
    border-top: 1px solid rgba(200, 210, 225, 0.4);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Custom Neumorphism SweetAlert2 Styling */
.swal2-container {
    z-index: 99999 !important;
}

.swal2-popup.neu-swal-popup,
.swal2-popup {
    background-color: var(--neu-bg, #e6ecf5) !important;
    border-radius: var(--neu-radius-lg, 24px) !important;
    color: var(--neu-text-main, #2b3a4a) !important;
    font-family: var(--neu-font-family, sans-serif) !important;
    padding: 2rem !important;
}

.swal2-title {
    color: var(--neu-text-main, #2b3a4a) !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
}

.swal2-html-container {
    color: var(--neu-text-muted, #6c7a89) !important;
    font-size: 0.9rem !important;
}

.swal2-icon.swal2-warning {
    border-color: #f39c12 !important;
    color: #f39c12 !important;
    box-shadow: inset 2px 2px 5px #c5d0e0, inset -2px -2px 5px #ffffff !important;
}

.swal2-actions {
    gap: 12px !important;
    margin-top: 1.5rem !important;
}

.neu-swal-confirm-btn,
.swal2-confirm {
    background: linear-gradient(135deg, #c02b2b, #9a2020) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 4px 4px 10px rgba(192, 43, 43, 0.35), -2px -2px 6px #ffffff !important;
    font-weight: 600 !important;
    padding: 0.65rem 1.4rem !important;
    font-size: 0.88rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.neu-swal-confirm-btn:active,
.swal2-confirm:active {
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.neu-swal-cancel-btn,
.swal2-cancel {
    background: var(--neu-bg, #e6ecf5) !important;
    color: var(--neu-text-main, #2b3a4a) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 4px 4px 8px #c5d0e0, -4px -4px 8px #ffffff !important;
    font-weight: 600 !important;
    padding: 0.65rem 1.4rem !important;
    font-size: 0.88rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.neu-swal-cancel-btn:active,
.swal2-cancel:active {
    box-shadow: inset 2px 2px 4px #c5d0e0, inset -2px -2px 4px #ffffff !important;
}

/* Paper Preview Modal Styles (Exit Interview Preview & Form Inspection across all modules) */
.paper-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1085 !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.paper-modal-header {
    width: 100%;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.paper-modal-body {
    flex: 1;
    width: 100%;
    overflow: auto;
    padding: 30px 20px 80px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.paper-sheet {
    width: 210mm;
    min-height: 297mm;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 20mm;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #202124;
    line-height: 1.6;
    font-size: 11pt;
    transform-origin: top center;
    transition: transform 0.15s ease-out;
}

/* Form elements display inside preview paper sheet */
.paper-sheet input,
.paper-sheet textarea,
.paper-sheet select,
.paper-sheet button {
    pointer-events: none !important;
    user-select: none !important;
    cursor: default !important;
}

.paper-sheet input[type="checkbox"],
.paper-sheet input[type="radio"] {
    accent-color: #007aff;
    cursor: default !important;
}

.paper-sheet [contenteditable="true"] {
    contenteditable: false !important;
    user-modify: read-only !important;
    -webkit-user-modify: read-only !important;
}

.paper-sheet table {
    border-collapse: collapse;
    width: 100%;
}

.paper-sheet table td,
.paper-sheet table th {
    border: 1px solid #ccc;
    padding: 8px;
}

.paper-sheet table.table-ratings {
    font-size: 0.8rem !important;
    width: 100% !important;
    min-width: max-content !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
}

.paper-sheet table.table-ratings th {
    font-size: 0.78rem !important;
    padding: 8px 12px !important;
    line-height: 1.35;
    white-space: normal;
    word-break: normal;
    background-color: #f8fafc;
    color: #334155;
    font-weight: 600;
    min-width: 80px !important;
    width: auto !important;
}

.paper-sheet table.table-ratings th:first-child {
    text-align: left !important;
    min-width: 220px !important;
}

.paper-sheet table.table-ratings td {
    font-size: 0.8rem !important;
    padding: 7px 10px !important;
    white-space: normal;
    word-break: break-word;
    color: #475569;
}

.paper-sheet table.table-ratings td:first-child,
.paper-sheet table.table-ratings td.rating-criteria-cell {
    text-align: left !important;
    min-width: 200px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
}

/* Questionnaire document form layout (Clean questionnaire styling, no cards/boxes) */
.paper-sheet .exit-question-block {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 24px !important;
    box-shadow: none !important;
}

.paper-sheet .exit-question-block h4,
.paper-sheet .exit-question-block .exit-question-title {
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 10px !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
    white-space: normal !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.paper-sheet .exit-options-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-left: 4px !important;
}

.paper-sheet .exit-options-group label,
.paper-sheet .exit-options-group .exit-option-item {
    font-size: 0.86rem !important;
    color: #334155 !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    white-space: normal !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 2px 0 !important;
    cursor: default !important;
}

.paper-sheet .exit-options-group label input,
.paper-sheet .exit-options-group .exit-option-item input {
    margin: 0 !important;
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
    accent-color: #0284c7 !important;
}

.paper-sheet textarea {
    width: 100% !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 10px 12px !important;
    font-size: 0.86rem !important;
    color: #1e293b !important;
    background: #ffffff !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
}

/* Floating Zoom Bar */
.paper-floating-toolbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #202124;
    color: #ffffff;
    border-radius: 50px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1090 !important;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.zoom-label {
    font-size: 13px;
    font-weight: 600;
    min-width: 48px;
    text-align: center;
    user-select: none;
}

.zoom-exit-btn {
    background: #dc2626;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s;
}

.zoom-exit-btn:hover {
    background: #b91c1c;
}