.hindi-mode {
    border-left: 4px solid #f1c40f !important;
    background-color: #fffde7 !important;
}
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fff;
    transition: all 0.3s;
    cursor: pointer;
}
.drop-zone:hover, .drop-zone.dragover {
    background: #f0f7ff;
    border-color: #1a73e8;
}
.drop-zone-text {
    display: block;
    pointer-events: none;
}

/* Searchable template dropdown styles */
.template-option-btn, .doc-template-option-btn {
    white-space: normal !important;
    text-align: left !important;
    transition: all 0.2s ease;
}
.template-option-btn:hover, .doc-template-option-btn:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}
.template-option-btn.active, .doc-template-option-btn.active {
    background-color: #0f172a !important;
    color: #ffffff !important;
}
.template-option-btn.active .text-muted, .doc-template-option-btn.active .text-muted {
    color: #94a3b8 !important;
}
.template-option-btn.highlighted-option, .doc-template-option-btn.highlighted-option {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}
.category-header {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}
.dropdown-caret {
    font-size: 0.65rem;
}

/* Verification Panel Enhancements */
#verificationContent input, #verificationContent textarea {
    font-size: 14px;
    line-height: 1.5;
    padding: 0.4rem 0.6rem;
    letter-spacing: 0.3px;
}
#verificationContent .hindi-mode {
    font-family: 'Mangal', 'Arial Unicode MS', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}
#verificationContent .card-body {
    padding: 1.25rem;
}
#verificationContent .row {
    margin-bottom: 0.75rem;
}
#verificationContent label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

/* Workspace Tab Styling */
.nav-pills .nav-link {
    color: #4b5563;
    background-color: #f3f4f6;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-right: 0.5rem;
}
.nav-pills .nav-link:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}
.nav-pills .nav-link.active {
    color: #ffffff;
    background-color: #0284c7; /* Sky 600 - premium blue */
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2), 0 2px 4px -1px rgba(2, 132, 199, 0.1);
}

/* Timeline Styling */
.timeline-track-wrapper {
    position: relative;
    padding: 1.5rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.25rem;
    overflow-x: auto;
}
.timeline-line {
    position: absolute;
    top: 2.75rem;
    left: 3.5rem;
    right: 3.5rem;
    height: 4px;
    background-color: #cbd5e1;
    z-index: 1;
}
.timeline-nodes-container {
    display: flex;
    justify-content: flex-start;
    gap: 2.5rem;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    padding: 0 0.5rem;
}
.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    width: 140px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.timeline-node:hover {
    transform: translateY(-2px);
}
.timeline-node-dot {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #64748b;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
}
.timeline-node-index {
    font-size: 0.85rem;
}
.timeline-node.active .timeline-node-dot {
    border-color: #0284c7;
    background-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.25);
}
.timeline-node.pulsing .timeline-node-dot {
    animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(2, 132, 199, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
    }
}
.timeline-node-content {
    width: 100%;
    padding: 0 0.25rem;
}
.timeline-node-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.1rem;
    line-height: 1.2;
}
.timeline-node-date {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
}

/* Split Pane Layout */
.chain-split-container {
    display: flex;
    gap: 1.5rem;
}
.chain-editor-pane {
    flex: 1;
    min-width: 0;
}
.chain-preview-pane {
    width: 390px;
    flex-shrink: 0;
}
@media (max-width: 1200px) {
    .chain-split-container {
        flex-direction: column;
    }
    .chain-preview-pane {
        width: 100%;
    }
}

.active-link-card {
    border-left: 4px solid #0284c7 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03) !important;
}

.sticky-top-preview {
    position: sticky;
    top: 1rem;
    z-index: 10;
}

/* Top Control Bar and Split Screen Styles */
body {
    background-color: #F5F5F7;
    color: #1D1D1F;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
}
.navbar {
    flex-shrink: 0;
}
#top-control-bar {
    flex-shrink: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #E5E5E0;
}
.split-workspace {
    display: flex;
    overflow: hidden;
    background-color: #FBFBF9;
    height: calc(100vh - 56px);
}
.preview-pane {
    width: 50%;
    border-right: 1px solid #E5E5E0;
    padding: 8px;
    overflow: hidden;
    background-color: #ffffff;
}
.editor-pane {
    width: 50%;
    padding: 1.25rem;
    overflow-y: auto;
    background-color: #FBFBF9;
}
.preview-tabs {
    border-bottom: 1px solid #E5E5E0;
    margin-bottom: 4px;
}
.preview-tabs .nav-link {
    border: none;
    color: #86868B;
    font-weight: 600;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
}
.preview-tabs .nav-link.active {
    color: #1D1D1F;
    background: none;
    border-bottom: 2px solid #8E3AC4;
}
.preview-scroll-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 0.25rem;
    padding-bottom: 4px;
    margin-bottom: 4px;
    align-items: center;
}
.preview-scroll-container::-webkit-scrollbar {
    height: 4px;
}
.preview-scroll-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}
.file-preview-btn {
    transition: all 0.2s ease;
}
.file-preview-btn.active-preview {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

/* Clean Bootstrap tab pane toggling */
.tab-content > .tab-pane {
    display: none !important;
}
#verificationTabs {
    display: none !important;
}
.tab-content > .tab-pane.active {
    display: block !important;
}

/* Step Switcher Navigation Bar Styles */
.step-switcher-container {
    display: flex;
    align-items: center;
    background-color: #1e293b;
    border-radius: 30px;
    padding: 2px;
    border: 1px solid #334155;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.step-nav-btn {
    border: none;
    background: none;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.step-nav-btn:hover {
    color: #f8fafc;
}
.step-nav-btn.active-step {
    color: #1e293b !important;
    background-color: #38bdf8 !important;
    box-shadow: 0 4px 10px rgba(56, 189, 248, 0.3);
}

/* Step 3: Timeline Track Styles */
.timeline-track-wrapper {
    position: relative;
    padding: 2rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    overflow-x: auto;
}
.timeline-line {
    position: absolute;
    top: 3.25rem;
    left: 5rem;
    right: 5rem;
    height: 4px;
    background-color: #cbd5e1;
    z-index: 1;
}
.timeline-nodes-container {
    display: flex;
    justify-content: flex-start;
    gap: 3.5rem;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}
.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    width: 140px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.timeline-node:hover {
    transform: translateY(-2px);
}
.timeline-node-dot {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background-color: #ffffff;
    border: 3px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #64748b;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.5rem;
}
.timeline-node-index {
    font-size: 0.95rem;
}
.timeline-node.active .timeline-node-dot {
    border-color: #0284c7;
    background-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 0 0 5px rgba(2, 132, 199, 0.25);
}
.timeline-node-content {
    width: 100%;
    padding: 0 0.25rem;
}
.timeline-node-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.1rem;
    line-height: 1.2;
}
.timeline-node-date {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
}

/* Step 1: Upload Card Grid Styles */
.upload-grid-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}
.upload-grid-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    border-color: #cbd5e1;
}
.large-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    cursor: pointer;
}
.large-dropzone:hover, .large-dropzone.dragover {
    background-color: #f0f9ff;
    border-color: #0284c7;
}
.large-dropzone-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}
.large-dropzone-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}
.large-dropzone-subtext {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    display: block;
}
.file-list-scroll {
    max-height: 120px;
    overflow-y: auto;
}

/* Verification Progress Styles */
.verification-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    flex: 1;
    max-width: 300px;
}
.verification-progress-bar-wrapper {
    flex: 1;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.verification-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #10b981;
    border-radius: 3px;
    transition: width 0.3s ease;
}
.tab-completion-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
    border-radius: 10px;
    font-weight: bold;
    margin-left: 5px;
}
.tab-badge-incomplete {
    background-color: #f1f5f9;
    color: #64748b;
}
.tab-badge-complete {
    background-color: #d1fae5;
    color: #065f46;
}

/* Confidence Indicator Styles */
.field-row-wrapper {
    border-left: 3px solid transparent;
    padding-left: 6px;
    margin-left: -9px;
    transition: border-color 0.2s ease;
}
.confidence-medium {
    border-left-color: #eab308 !important; /* Gold */
}
.confidence-low {
    border-left-color: #ef4444 !important; /* Red */
}
.confidence-high {
    border-left-color: #10b981 !important; /* Green */
}
.confidence-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    font-size: 0.65rem;
    border-radius: 50%;
    margin-left: 4px;
    color: white;
    cursor: help;
    font-weight: bold;
}
.badge-low {
    background-color: #ef4444;
}
.badge-medium {
    background-color: #eab308;
    color: #1e293b;
}
.badge-high {
    background-color: #10b981;
}

/* Live Validation Panel sliding drawer styles */
.validation-drawer {
    position: fixed;
    top: 56px;
    right: -340px;
    width: 340px;
    height: calc(100vh - 56px);
    background-color: #ffffff;
    box-shadow: -2px 0 12px rgba(0,0,0,0.15);
    z-index: 1050;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid #dee2e6;
}

.validation-drawer.open {
    right: 0;
}

.validation-drawer-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 36px;
    height: 120px;
    background-color: #0284c7;
    color: #ffffff;
    border: 1px solid #0284c7;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: -2px 0 6px rgba(0,0,0,0.15);
    z-index: 1060;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.validation-drawer.open + .validation-drawer-toggle {
    right: 340px;
}

.discrepancy-item {
    padding: 0.65rem;
    border-radius: 6px;
    margin-bottom: 0.65rem;
    border-left: 4px solid transparent;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.discrepancy-item-high {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.discrepancy-item-medium {
    background-color: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.discrepancy-item-low {
    background-color: #f0fdf4;
    border-color: #10b981;
    color: #166534;
}

.discrepancy-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.discrepancy-explanation {
    margin-bottom: 0.4rem;
}

.discrepancy-fix-btn {
    font-size: 0.68rem;
    padding: 0.15rem 0.4rem;
    font-weight: bold;
    border-radius: 4px;
}

/* LSR Workstation Dedicated Classes */
.lsr-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem !important;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: background-color 0.15s ease;
}
.lsr-file-item:hover {
    background-color: #f8fafc;
}
.lsr-file-checkbox {
    cursor: pointer;
    width: 15px;
    height: 15px;
    margin-right: 0.75rem;
}
.lsr-file-status {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.75rem;
    font-weight: 600;
}
.status-pending { background-color: #fef3c7; color: #d97706; }
.status-processed { background-color: #dcfce7; color: #15803d; }
.status-failed { background-color: #fee2e2; color: #b91c1c; }

.lsr-file-name-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
    outline: none;
}
.lsr-file-name-container:focus {
    background-color: #f1f5f9;
}
.lsr-file-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lsr-file-meta {
    font-size: 0.68rem;
    color: #64748b;
}
.lsr-delete-button {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ef4444 !important;
    text-decoration: none;
    padding: 0 0.5rem;
    cursor: pointer;
    user-select: none;
}
.lsr-delete-button:hover {
    color: #dc2626 !important;
}

/* Document Selector Header Panel */
.lsr-document-header {
    background-color: #0f172a !important;
    border-bottom: 1px solid #1e293b;
    padding: 0.5rem 0.75rem !important;
}
.lsr-document-icon {
    font-size: 0.95rem;
    color: #94a3b8;
}
.lsr-document-selector {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #f1f5f9 !important;
    font-size: 0.8rem !important;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.3rem 2rem 0.3rem 0.6rem !important;
    cursor: pointer;
    min-width: 0;
    flex-grow: 1;
    flex-shrink: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.lsr-document-selector:hover {
    border-color: #475569 !important;
}
.lsr-document-selector:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
    outline: none;
}
.lsr-document-selector option {
    background-color: #0f172a;
    color: #f1f5f9;
}

/* Scrollable Workstation Tabs */
.lsr-tabs-outer-wrapper {
    position: relative;
    background-color: #f8fafc;
}
.lsr-tabs-outer-wrapper::before,
.lsr-tabs-outer-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 25px;
    pointer-events: none;
    z-index: 2;
}
.lsr-tabs-outer-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(241, 245, 249, 0.95), rgba(241, 245, 249, 0));
}
.lsr-tabs-outer-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(241, 245, 249, 0.95), rgba(241, 245, 249, 0));
}
.lsr-tabs-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.lsr-tabs-scroll-container::-webkit-scrollbar {
    display: none;
}
#workstationTabs {
    flex-wrap: nowrap !important;
    border-bottom: none;
}
#workstationTabs .nav-item {
    flex: 0 0 auto !important;
}
#workstationTabs .nav-link {
    font-size: 0.78rem;
    padding: 0.6rem 0.85rem !important;
    white-space: nowrap;
}

/* Responsive navbar brand switching */
.lsr-navbar-brand-long {
    display: inline;
}
.lsr-navbar-brand-short {
    display: none;
}
@media (max-width: 991.98px) {
    .lsr-navbar-brand-long {
        display: none;
    }
    .lsr-navbar-brand-short {
        display: inline;
    }
}

/* Consolidated Workstation Style Utility Classes */
.lsr-form-label-small {
    font-size: 0.8rem;
}
.lsr-upload-drag-drop {
    cursor: pointer;
}
.lsr-upload-meta-small {
    font-size: 0.72rem;
}
.lsr-file-list-heading {
    font-size: 0.76rem;
}
.lsr-action-btn-xs {
    font-size: 0.7rem;
}
.lsr-card-rounded {
    border-radius: 12px;
    overflow: hidden;
}
.lsr-meta-label-col {
    width: 35%;
}





