/* Custom styles for PDF Invoice Processor */

/* Ensure proper layout for side-by-side panes */
#results-section .card {
    height: calc(100vh - 200px);
    min-height: 650px;
}

/* PDF viewer styling */
#pdf-viewer {
    background-color: #F3F4F6;
    display: block;
    text-align: center;
    padding: 1rem;
    overflow: auto !important;
}

#pdf-canvas {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    border: 1px solid #E5E7EB;
}

/* CSV editor styling */
#csv-editor {
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB !important;
    color: #2D2D2D;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    padding: 1rem;
}

#csv-editor:focus {
    box-shadow: 0 0 0 0.2rem rgba(191, 255, 111, 0.25);
    background-color: #FFFFFF;
    border-color: #BFFF6F !important;
}

/* Loading animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* File input styling */
.form-control[type="file"] {
    border: 2px dashed #E5E7EB;
    background-color: #F9FAFB;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.form-control[type="file"]:hover {
    border-color: #BFFF6F;
    background-color: #FFFFFF;
}

/* Alert styling - handled by queli-design.css */

/* Button improvements - handled by queli-design.css */

/* Navigation styling - handled by queli-design.css */

/* Card improvements - premium rounded corners */
.card {
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-xl);
    background-color: #FFFFFF;
}

.card-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    #results-section .card {
        height: auto;
        min-height: 400px;
        margin-bottom: 1rem;
    }
    
    #pdf-viewer {
        height: 400px;
    }
    
    #csv-editor {
        min-height: 300px;
    }
}

/* Improved spacing */
.container {
    max-width: 1400px;
}

/* PDF controls styling - handled by queli-design.css */

/* Zoom and navigation info */
#pdf-viewer + .p-3 {
    background-color: #F9FAFB;
    font-size: 0.875rem;
    border-top: 1px solid #E5E7EB;
}

/* Upload section improvements */
#upload-form .form-text {
    color: #6B6B78;
    font-size: 0.8rem;
}

/* Success/error message icons */
.alert i.ph-duotone {
    width: 1.2rem;
    height: 1.2rem;
    vertical-align: text-bottom;
}

/* Excel-like Spreadsheet Styles */
.excel-table {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 13px;
    border-collapse: separate !important;
    border-spacing: 0;
}

.excel-table th {
    background: var(--bs-secondary) !important;
    color: var(--bs-body-color);
    font-weight: 450;
    padding: 8px 12px;
    border: 1px solid var(--bs-border-color);
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    user-select: none;
}

.excel-table td {
    padding: 4px 8px;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    vertical-align: middle;
    position: relative;
    min-width: 120px;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.excel-table tr:nth-child(even) td {
    background: rgba(var(--bs-secondary-rgb), 0.1);
}

.excel-table tr:hover td {
    background: rgba(var(--bs-primary-rgb), 0.1);
}

.excel-table tr.selected td {
    background: rgba(var(--bs-primary-rgb), 0.2);
}

.excel-table td.editing {
    background: var(--bs-body-bg) !important;
    padding: 0 !important;
}

.excel-table input.cell-editor {
    width: 100%;
    height: 100%;
    border: 2px solid var(--bs-primary);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: 13px;
    padding: 4px 8px;
    margin: 0;
    outline: none;
    font-family: inherit;
}

.excel-table td:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

.excel-table td.selected {
    background: rgba(var(--bs-primary-rgb), 0.3) !important;
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

/* Column specific widths for better invoice comparison */
.excel-table .col-catalogue { min-width: 140px; }
.excel-table .col-name { min-width: 180px; max-width: 320px; }
.excel-table .col-quantity { min-width: 100px; text-align: right; }
.excel-table .col-price { min-width: 120px; text-align: right; }
.excel-table .col-discount { min-width: 100px; text-align: right; }
.excel-table .col-cumulative { min-width: 130px; text-align: right; }
.excel-table .col-supplier { min-width: 180px; }
.excel-table .col-invoice { min-width: 140px; }
.excel-table .col-date { min-width: 120px; }
.excel-table .col-total { min-width: 140px; text-align: right; }

/* Enhanced horizontal scrolling for better invoice comparison */
.table-container {
    overflow-x: auto !important;
    overflow-y: auto !important;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    scrollbar-width: thin;
    scrollbar-color: var(--bs-border-color) transparent;
}

.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--bs-secondary-bg);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--bs-border-color);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--bs-secondary);
}

/* Ensure table maintains structure during horizontal scroll */
.excel-table {
    min-width: max-content;
    table-layout: auto;
}

/* Sticky header enhancement for better navigation */
.excel-table thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bs-secondary) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Toolbar styling */
.spreadsheet-toolbar {
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
}

/* Cell validation states */
.excel-table td.error {
    background: rgba(220, 53, 69, 0.1) !important;
    border-color: var(--bs-danger);
}

.excel-table td.warning {
    background: rgba(255, 193, 7, 0.1) !important;
    border-color: var(--bs-warning);
}

/* ===== SUPPLIER SELECTION WIDGET STYLES ===== */

/* Supplier search container */
.supplier-search-container {
    position: relative;
}

/* Supplier dropdown styling */
.supplier-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    max-height: 300px;
    overflow-y: auto;
}

/* Dropdown items */
.supplier-dropdown .dropdown-item {
    padding: 0;
    border: none;
    background: transparent;
}

.supplier-dropdown .supplier-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.5);
    transition: background-color 0.15s ease-in-out;
}

.supplier-dropdown .supplier-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.supplier-dropdown .supplier-item:last-child {
    border-bottom: none;
}

.supplier-dropdown .supplier-name {
    font-weight: 500;
    color: var(--bs-body-color);
    margin-bottom: 2px;
}

.supplier-dropdown .supplier-details {
    font-size: 0.875rem;
    color: var(--bs-secondary-color);
}

/* Loading and empty states */
.supplier-dropdown .dropdown-loading,
.supplier-dropdown .dropdown-empty {
    padding: 12px 16px;
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

/* Selected supplier display */
#selected-supplier .alert {
    border: 1px solid var(--bs-info-border-subtle);
    background-color: var(--bs-info-bg-subtle);
    color: var(--bs-info-text-emphasis);
}

#selected-supplier .alert-heading {
    color: var(--bs-info-text-emphasis);
}

/* Change supplier button */
#change-supplier-btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* No supplier selected state */
#no-supplier-selected {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===== ERP STATUS WIDGET STYLES ===== */

/* ERP status badges */
#erp-status-badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

#erp-status-badge i.ph-duotone {
    width: 14px;
    height: 14px;
}

/* Status details cards */
#erp-status-details .border {
    background-color: var(--bs-gray-100);
    border-color: var(--bs-border-color) !important;
}

#erp-status-details h6 {
    color: var(--bs-body-color);
    font-size: 0.9rem;
    font-weight: 450;
}

#erp-status-details p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Transmission history */
.transmission-item {
    background-color: var(--bs-gray-50);
    border-color: var(--bs-border-color) !important;
    transition: background-color 0.15s ease-in-out;
}

.transmission-item:hover {
    background-color: var(--bs-gray-100);
}

.transmission-item i.ph-duotone {
    width: 16px;
    height: 16px;
}

.transmission-item .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* ERP status loading state */
#erp-status-loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Error state styling */
#erp-status-error i.ph-duotone {
    opacity: 0.7;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

@media (max-width: 991.98px) {
    /* Stack supplier and ERP sections on smaller screens */
    #supplier-selection-section,
    #erp-status-section {
        margin-bottom: 1rem !important;
    }
    
    /* Adjust card heights for mobile */
    #supplier-selection-section .card,
    #erp-status-section .card {
        height: auto !important;
        min-height: auto !important;
    }
    
    /* Adjust dropdown for mobile */
    .supplier-dropdown {
        max-height: 200px;
    }
    
    /* Make selected supplier display more compact */
    #selected-supplier .alert {
        padding: 0.75rem;
    }
    
    #selected-supplier .alert-heading {
        font-size: 1rem;
    }
    
    /* Adjust ERP status details for mobile */
    #erp-status-details .row .col-md-6 {
        margin-bottom: 0.75rem;
    }
}

/* ===== LIGHT THEME ADJUSTMENTS ===== */

.supplier-dropdown {
    background: #FFFFFF;
    border-color: #E5E7EB;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.supplier-dropdown .supplier-item:hover {
    background-color: #F9FAFB;
}

#erp-status-details .border {
    background-color: #F9FAFB;
    border-color: #E5E7EB !important;
}

.transmission-item {
    background-color: #F9FAFB;
    border-color: #E5E7EB !important;
}

.transmission-item:hover {
    background-color: #F3F4F6;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus states for supplier dropdown items */
.supplier-dropdown .supplier-item:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* Improved button focus states */
#change-supplier-btn:focus,
#refresh-erp-status-btn:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Screen reader friendly text for status indicators */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== ANIMATION ENHANCEMENTS ===== */

/* Smooth transitions for state changes */
#supplier-selection-section,
#erp-status-section {
    transition: opacity 0.3s ease-in-out;
}

/* Dropdown animation */
.supplier-dropdown {
    animation: slideDown 0.2s ease-out;
}

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

/* Status badge animations */
#erp-status-badge {
    transition: all 0.3s ease-in-out;
}

/* Loading spinner animation enhancement */
.spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

/* ===== INTEGRATION STYLES ===== */

/* Ensure consistent spacing with existing results section */
#supplier-selection-section,
#erp-status-section {
    margin-bottom: 1.5rem;
}

/* Card styling uses global premium rounded corners from var(--radius-xl) */
#supplier-selection-section .card,
#erp-status-section .card {
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-xl);
    background-color: #FFFFFF;
}

#supplier-selection-section .card-header,
#erp-status-section .card-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    font-weight: 500;
}

/* Icon consistency */
#supplier-selection-section i.ph-duotone,
#erp-status-section i.ph-duotone {
    width: 18px;
    height: 18px;
    vertical-align: text-bottom;
}

/* Form control consistency */
#supplier-search {
    background-color: #FFFFFF;
    border-color: #E5E7EB;
    color: #2D2D2D;
}

#supplier-search:focus {
    background-color: #FFFFFF;
    border-color: #BFFF6F;
    box-shadow: 0 0 0 0.2rem rgba(191, 255, 111, 0.25);
}

/* ===== SEND TO ERP BUTTON STYLES ===== */

/* Send to ERP button container */
#send-to-erp-section {
    border-top: 1px solid var(--bs-border-color);
    padding-top: 1rem;
}

/* Send to ERP button - inherits Queli green from .btn-success */
#send-to-erp-btn {
    position: relative;
    overflow: hidden;
}

#send-to-erp-btn:disabled {
    background: var(--bs-gray-400) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
}

#send-to-erp-btn i.ph-duotone {
    width: 18px;
    height: 18px;
}

/* Button content states */
#send-to-erp-btn .btn-content,
#send-to-erp-btn .btn-loading,
#confirm-erp-submission-btn .btn-content,
#confirm-erp-submission-btn .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

#send-to-erp-btn .btn-loading,
#confirm-erp-submission-btn .btn-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
}

/* ===== ERP CONFIRMATION MODAL STYLES ===== */

/* Modal content and header styling moved to LIQUID GLASS section below */

#erp-confirmation-modal .btn-close:hover {
    opacity: 1;
}

/* Modal body, alert-info, cards and data preview styling moved to LIQUID GLASS section below */

/* Modal footer styling moved to LIQUID GLASS section below */

#erp-confirmation-modal .modal-footer .btn {
    min-width: 120px;
    font-weight: 500;
}

/* Confirm button styling - inherits Queli green from .btn-success */
#confirm-erp-submission-btn {
    position: relative;
    overflow: hidden;
}

#confirm-erp-submission-btn:disabled {
    background: var(--bs-gray-400) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== LOADING STATES ===== */

/* Loading button effects */
.btn-loading .spinner-border-sm {
    animation: spinner-border 0.75s linear infinite;
}

/* Form text styling */
.form-text i.ph-duotone {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Fix modal position on mobile Chrome to prevent shifting when scrolling */
    #erp-confirmation-modal .modal-dialog {
        margin: 0;
        max-width: 100%;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        width: calc(100% - 2rem);
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Ensure modal content doesn't overflow */
    #erp-confirmation-modal .modal-content {
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }
    
    #erp-confirmation-modal .modal-body {
        padding: 1rem;
        overflow-y: auto;
        flex: 1;
    }
    
    #erp-confirmation-modal .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    #erp-confirmation-modal .modal-footer .btn {
        width: 100%;
    }
    
    #send-to-erp-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    #modal-data-preview {
        font-size: 0.75rem;
        max-height: 100px;
    }
}

/* Tablet optimizations */
@media (max-width: 991.98px) {
    #erp-confirmation-modal .col-md-6 {
        margin-bottom: 1rem;
    }
    
    #erp-confirmation-modal .row > .col-12:not(:last-child) {
        margin-bottom: 1rem;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */

/* Focus states - Queli colors */
#send-to-erp-btn:focus,
#confirm-erp-submission-btn:focus {
    outline: 2px solid rgba(191, 255, 111, 0.5);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.2rem rgba(191, 255, 111, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #send-to-erp-btn,
    #confirm-erp-submission-btn {
        border: 2px solid #BFFF6F;
    }
    
    #erp-confirmation-modal .modal-content {
        border: 2px solid var(--bs-border-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #send-to-erp-btn,
    #confirm-erp-submission-btn,
    #erp-confirmation-modal .card {
        transition: none;
    }
    
    .spinner-border-sm {
        animation: none;
    }
}

/* ===== LINE ITEMS TABLE AUTO-SIZING ===== */

/* Enable auto-sizing for line items table */
.items-table-auto {
    table-layout: auto !important;
    width: 100%;
}

/* Set minimum widths for columns to ensure readability */
.items-table-auto th,
.items-table-auto td {
    white-space: nowrap;
    padding: 0.5rem;
}

/* Input fields inside table cells should fit content */
.items-table-auto input.form-control-sm {
    min-width: 80px;
    width: 100%;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    height: auto;
}

/* Catalogue Number column - wider for long numbers */
.items-table-auto th:nth-child(1),
.items-table-auto td:nth-child(1) {
    min-width: 150px;
}

.items-table-auto td:nth-child(1) input {
    min-width: 140px;
}

/* Item Name column - widest for product names */
.items-table-auto th:nth-child(2),
.items-table-auto td:nth-child(2) {
    min-width: 180px;
}

.items-table-auto td:nth-child(2) input {
    min-width: 170px;
}

/* Quantity column - compact */
.items-table-auto th:nth-child(3),
.items-table-auto td:nth-child(3) {
    min-width: 100px;
}

.items-table-auto td:nth-child(3) input {
    min-width: 90px;
}

/* Price per Item column */
.items-table-auto th:nth-child(4),
.items-table-auto td:nth-child(4) {
    min-width: 130px;
}

.items-table-auto td:nth-child(4) input {
    min-width: 120px;
}

/* Discount column */
.items-table-auto th:nth-child(5),
.items-table-auto td:nth-child(5) {
    min-width: 100px;
}

.items-table-auto td:nth-child(5) input {
    min-width: 90px;
}

/* Amount column */
.items-table-auto th:nth-child(6),
.items-table-auto td:nth-child(6) {
    min-width: 120px;
}

.items-table-auto td:nth-child(6) input {
    min-width: 110px;
}

/* Actions column - keep compact */
.items-table-auto .actions-col {
    width: 80px;
    min-width: 80px;
    text-align: center;
}

/* ===== LOADING PROGRESS ANIMATIONS ===== */

/* Loading icon wrapper with pulse effect */
.loading-icon-wrapper {
    position: relative;
    display: inline-block;
    width: 180px;
    height: 180px;
}

.loading-icon {
    font-size: 72px;
    color: var(--bs-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.loading-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), 0.15);
    animation: pulse 2s ease-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 2rem;
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    opacity: 0.4;
    transition: all 0.4s ease;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--bs-border-color);
    z-index: -1;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.progress-step-icon i {
    font-size: 28px;
    color: #9CA3AF;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-step-text {
    font-size: 0.875rem;
    color: #6B7280;
    text-align: center;
    transition: all 0.4s ease;
    line-height: 1.3;
    max-width: 100px;
}

/* Active step */
.progress-step.active {
    opacity: 1;
}

.progress-step.active .progress-step-icon {
    background: rgba(var(--bs-primary-rgb), 0.2);
    border-color: var(--bs-primary);
    animation: stepPulse 2s ease-in-out infinite;
}

.progress-step.active .progress-step-icon i {
    color: var(--bs-primary);
    animation: iconBounce 1s ease-in-out infinite;
}

.progress-step.active .progress-step-text {
    color: var(--bs-primary);
    font-weight: 500;
}

@keyframes stepPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(var(--bs-primary-rgb), 0);
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Completed step */
.progress-step.completed {
    opacity: 1;
}

.progress-step.completed .progress-step-icon {
    background: var(--bs-success);
    border-color: var(--bs-success);
}

.progress-step.completed .progress-step-icon i {
    color: white;
}

.progress-step.completed .progress-step-text {
    color: var(--bs-success);
    font-weight: 500;
}

.progress-step.completed::after {
    background: var(--bs-success);
}

/* Progress bar animation enhancement */
.progress-bar {
    transition: width 0.6s ease;
}

/* Responsive progress steps */
/* Tablet screens */
@media (max-width: 1024px) {
    .loading-icon-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .loading-icon {
        font-size: 48px;
    }
    
    .loading-pulse {
        width: 120px;
        height: 120px;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    .progress-steps {
        gap: 1rem;
    }
    
    .progress-step {
        gap: 0.75rem;
    }
    
    .progress-step::after {
        top: 25px;
    }
    
    .progress-step-icon {
        width: 50px;
        height: 50px;
    }
    
    .progress-step-icon i {
        font-size: 24px;
    }
    
    .progress-step-text {
        font-size: 0.75rem;
        max-width: 80px;
    }
    
    .loading-icon-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .loading-icon {
        font-size: 40px;
    }
    
    .loading-pulse {
        width: 100px;
        height: 100px;
    }
}

/* ===== LIQUID GLASS ERP CONFIRMATION MODAL ===== */

/* Modal backdrop with blur */
#erp-confirmation-modal .modal-dialog {
    max-width: 800px;
}

#erp-confirmation-modal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Light glass header with Queli accent */
#erp-confirmation-modal .modal-header {
    background: linear-gradient(135deg, rgba(191, 255, 111, 0.15), rgba(168, 230, 94, 0.1));
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-bottom: 1px solid rgba(191, 255, 111, 0.3);
    padding: 1.5rem 2rem;
    border-radius: 24px 24px 0 0;
}

#erp-confirmation-modal .modal-title {
    color: #1a1a1a;
    font-weight: 500;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

#erp-confirmation-modal .modal-title i {
    color: #2D2D2D;
    width: 24px;
    height: 24px;
}

#erp-confirmation-modal .btn-close {
    opacity: 0.6;
}

#erp-confirmation-modal .btn-close:hover {
    opacity: 1;
}

/* Modal body with glass sections */
#erp-confirmation-modal .modal-body {
    padding: 2rem;
    background: transparent;
}

/* Info alert with enhanced glass effect */
#erp-confirmation-modal .alert-info {
    background: linear-gradient(135deg, rgba(191, 255, 111, 0.12), rgba(168, 230, 94, 0.08));
    border: 1px solid rgba(191, 255, 111, 0.35);
    border-radius: 18px;
    color: #2D2D2D;
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 4px 16px rgba(191, 255, 111, 0.1),
                0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

#erp-confirmation-modal .alert-info h6 {
    color: #1a1a1a;
    font-weight: 500;
}

#erp-confirmation-modal .alert-info i {
    color: #BFFF6F;
    stroke-width: 2.5;
}

/* Glass cards with enhanced liquid glass effect */
#erp-confirmation-modal .card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#erp-confirmation-modal .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 
                0 0 0 1px rgba(191, 255, 111, 0.4) inset;
    border-color: rgba(191, 255, 111, 0.4);
}

#erp-confirmation-modal .card-header {
    background: linear-gradient(135deg, rgba(191, 255, 111, 0.08), rgba(168, 230, 94, 0.05));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(191, 255, 111, 0.15);
    border-radius: 18px 18px 0 0 !important;
    padding: 1rem 1.25rem;
}

#erp-confirmation-modal .card-header h6 {
    color: #1a1a1a;
    font-weight: 500;
    font-size: 0.95rem;
    margin: 0;
    display: flex;
    align-items: center;
}

#erp-confirmation-modal .card-header i {
    color: #666;
    width: 18px;
    height: 18px;
}

#erp-confirmation-modal .card-body {
    padding: 1.25rem;
    background: transparent;
}

#erp-confirmation-modal .card dl {
    margin: 0;
}

#erp-confirmation-modal .card dt {
    color: #666;
    font-weight: 450;
    font-size: 0.875rem;
}

#erp-confirmation-modal .card dd {
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#erp-confirmation-modal .card dd:last-child {
    margin-bottom: 0;
}

/* Data preview section */
#erp-confirmation-modal .border.rounded {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(229, 231, 235, 0.6) !important;
    border-radius: 12px !important;
}

#erp-confirmation-modal #modal-data-preview {
    color: #555;
    font-size: 0.875rem;
}

/* Modal footer with glass buttons */
#erp-confirmation-modal .modal-footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 0 0 24px 24px;
}

/* Queli-styled buttons */
#erp-confirmation-modal .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #2D2D2D;
    border-radius: 10px;
    padding: 0.625rem 1.5rem;
    font-weight: 450;
    transition: all 0.3s ease;
}

#erp-confirmation-modal .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#erp-confirmation-modal .btn-success {
    background: linear-gradient(135deg, #BFFF6F, #A8E65E);
    border: none;
    color: #2D2D2D;
    border-radius: 10px;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(191, 255, 111, 0.3);
}

#erp-confirmation-modal .btn-success:hover {
    background: linear-gradient(135deg, #A8E65E, #95D34D);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 255, 111, 0.4);
    color: #2D2D2D;
}

#erp-confirmation-modal .btn-success:active {
    transform: translateY(0);
}

/* Icon styling */
#erp-confirmation-modal .btn i.ph-duotone {
    width: 16px;
    height: 16px;
}
