/* Modern Wagon Assignment Styles */
.wagon-assignment-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.modern-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease-in-out;
    background: #ffffff;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-header-modern {
    background: linear-gradient(135deg, #6f42c1, #4a148c);
    color: #ffffff;
    font-weight: 600;
    border-bottom: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header-modern .fas {
    margin-right: 10px;
}
.card-body-modern {
    padding: 2rem;
    line-height: 1.6;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row:hover {
    background-color: #f8f9fa;
}

.info-row strong {
    color: #495057;
    font-weight: 600;
}

.info-row span {
    color: #212529;
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-label-modern {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control-modern {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-modern:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    outline: none;
}

.btn-modern {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #8b5cf6, #6f42c1);
    color: #ffffff;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary-modern {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #ffffff;
}

.alert-modern {
    border-radius: 8px;
    padding: 1rem 1.5rem;
    border: none;
    color: #ffffff;
}

.alert-modern.alert-success-modern {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.alert-modern.alert-danger-modern {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
}

.alert-modern.alert-info-modern {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.table-modern {
    border-collapse: separate;
    border-spacing: 0 10px;
    width: 100%;
}

.table-modern thead th {
    background: linear-gradient(135deg, #6f42c1, #4a148c);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 1rem 1.5rem;
    text-align: left;
}

.table-modern thead th:first-child {
    border-top-left-radius: 12px;
}

.table-modern thead th:last-child {
    border-top-right-radius: 12px;
}

.table-modern tbody tr {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-modern tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.table-modern tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border: none;
}

.table-modern tbody tr td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.table-modern tbody tr td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.table-modern .form-control-sm {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

.table-modern .badge-status {
    padding: 0.5em 0.9em;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    color: #fff;
}

.badge-assigned {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.badge-pending {
    background: linear-gradient(135deg, #ffc107, #d39e00);
}

.badge-completed {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.table-responsive-wrapper {
    overflow-x: auto;
    padding-bottom: 1rem;
}

/* Custom Scrollbar */
.table-responsive-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-responsive-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 10px;
}

.table-responsive-wrapper::-webkit-scrollbar-thumb:hover {
    background: #6f42c1;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 1rem;
}

.empty-state .fas {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    color: #495057;
    font-weight: 500;
}

.page-header {
    font-size: 2.25rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 2rem;
    border-bottom: 2px solid #8b5cf6;
    padding-bottom: 0.5rem;
}

.stats-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.stats-requested {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.stats-assigned {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.stats-pending {
    background: linear-gradient(135deg, #ffc107, #d39e00);
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.stats-card p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

.progress-indicator {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    position: relative;
}

.progress-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: #e9ecef;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
}

.progress-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #495057;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin: 0 auto 0.5rem;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.progress-step-label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.progress-step.active .progress-step-number {
    background-color: #8b5cf6;
    color: #fff;
    border-color: #8b5cf6;
}

.progress-step.active .progress-step-label {
    color: #8b5cf6;
}

.progress-step.completed .progress-step-number {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

.progress-step.completed .progress-step-label {
    color: #28a745;
}

.modern-table-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.form-control-modern[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.btn-modern:disabled {
    background: #ced4da;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #5660d9, #3d45a0);
    color: white;
    border: none;
}

.btn-gradient-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
}

.btn-gradient-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    border: none;
}

.btn-gradient-warning {
    background: linear-gradient(135deg, #ffc107, #d39e00);
    color: white;
    border: none;
}

.btn-gradient-primary:hover,
.btn-gradient-secondary:hover,
.btn-gradient-success:hover,
.btn-gradient-warning:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .progress-indicator {
        flex-direction: column;
        align-items: flex-start;
    }

    .progress-indicator::before {
        left: 20px;
        top: 5%;
        bottom: 5%;
        width: 3px;
        height: 90%;
    }

    .progress-step {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }

    .progress-step-number {
        margin-right: 1rem;
    }
}

.workflow-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.workflow-nav .btn {
    flex: 1 1 auto;
    min-width: 150px;
}

.workflow-nav-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
}

.workflow-nav-secondary {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
}

.workflow-nav-success {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
}

.workflow-nav-warning {
    background: linear-gradient(135deg, #ffc107, #d39e00) !important;
}

.workflow-nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.workflow-nav .btn:disabled {
    background: #ced4da !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 576px) {
    .workflow-nav {
        flex-direction: column;
    }

    .workflow-nav .btn {
        width: 100%;
    }
}

/* Modern Dispatch Management Styles */
.dispatch-management-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.dispatch-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dispatch-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dispatch-subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Progress Indicator */
.workflow-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.workflow-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 2px;
}

.progress-step.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
    animation: pulse 2s infinite;
}

.progress-label {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Dispatch Statistics */
.dispatch-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #718096;
    font-weight: 500;
}

.stat-total { color: #3182ce; }
.stat-dispatched { color: #38a169; }
.stat-pending { color: #ed8936; }
.stat-weight { color: #805ad5; }

/* Route Visualization */
.route-visualization {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.route-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.completion-badge {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.route-map {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    position: relative;
}

.route-map::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 4px;
    background: linear-gradient(90deg, #48bb78, #667eea);
    border-radius: 2px;
    z-index: 1;
}

.route-station {
    background: white;
    border: 4px solid #48bb78;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #48bb78;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.route-station-label {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.dispatch-progress {
    background: white;
    border: 4px solid #667eea;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #667eea;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: pulse 3s infinite;
}

/* Modern Table Styles */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Scrollable table for workflow pages - enable scrolling after 5 records */
.scrollable-table-wrapper {
    max-height: 400px; /* Approximately 5 rows height */
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 1rem;
}

.scrollable-table-wrapper table {
    margin-bottom: 0;
}

.scrollable-table-wrapper thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
    border-bottom: 2px solid #dee2e6;
}

/* Standardized Table Styling */
.table-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0;
}

.table-modern thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border: none;
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-modern thead th:first-child {
    border-top-left-radius: 15px;
}

.table-modern thead th:last-child {
    border-top-right-radius: 15px;
}

.table-modern thead th i {
    margin-right: 0.5rem;
}

.table-modern tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.table-modern tbody tr {
    transition: all 0.3s ease;
}

.table-modern tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
}

.table-modern tbody tr:last-child td:last-child {
    border-bottom-right-radius: 15px;
}

.table-modern .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.table-modern .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: white;
}

.table-modern .form-control:disabled {
    background-color: #f8f9fa;
    opacity: 0.6;
}

.table-modern .status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Table Wrapper */
.table-responsive-modern {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Enhanced Scrollable Table Wrapper */
.scrollable-table-wrapper {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.scrollable-table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.scrollable-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.scrollable-table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.scrollable-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.form-control-modern:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dispatched {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.status-pending {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

/* Action Buttons */
.action-buttons-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Standardized Workflow Navigation */
.workflow-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.workflow-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.workflow-navigation h4 {
    margin: 0;
    color: #495057;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.workflow-navigation h4 i {
    color: #667eea;
    font-size: 1.2rem;
}

.nav-left, .nav-right {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.nav-center {
    flex: 1;
    text-align: center;
}

.workflow-nav-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.workflow-nav-btn i {
    font-size: 1rem;
}

.workflow-nav-btn.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.workflow-nav-btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.workflow-nav-btn.btn-secondary {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border-color: #dee2e6;
}

.workflow-nav-btn.btn-secondary:hover {
    background: rgba(108, 117, 125, 0.2);
    transform: translateY(-1px);
    color: #495057;
}

.workflow-nav-btn.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.workflow-nav-btn.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: white;
}

.workflow-nav-btn.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.workflow-nav-btn.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    color: white;
}

.workflow-nav-btn:disabled,
.workflow-nav-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Completion Status */
.completion-status {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.status-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 1rem;
    text-align: center;
}

.progress-container {
    position: relative;
}

.progress {
    height: 20px;
    border-radius: 10px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Alert Styles */
.alert-modern.alert-success {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
    border-left: 4px solid #48bb78;
}

.alert-modern.alert-danger {
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
    border-left: 4px solid #f56565;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dispatch-title {
        font-size: 2rem;
    }
    
    .workflow-progress {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .progress-step {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .dispatch-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .route-map {
        flex-direction: column;
        gap: 2rem;
    }
    
    .route-map::before {
        display: none;
    }
    
    .workflow-navigation {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .nav-left, .nav-right {
        justify-content: center;
        width: 100%;
    }
    
    .nav-center {
        order: -1;
    }
    
    .workflow-nav-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .nav-left, .nav-right {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .workflow-nav-btn {
        width: 100%;
        justify-content: center;
        min-width: 200px;
    }
}

/* Modern Consignment Management Styles */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Poppins', sans-serif;
}

.content {
    /* padding-top: 20px; */
}

.consignment-container {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 0px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.consignment-header {
    text-align: center;
    margin-bottom: 30px;
}

.consignment-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.consignment-subtitle {
    font-size: 1.2rem;
    color: #555;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Button */
.add-consignment-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    margin-bottom: 30px;
}

.add-consignment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: white;
    text-decoration: none;
}

/* Modern Alerts */
.modern-alert {
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modern-alert.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.modern-alert.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Search and Filter Container */
.search-filter-container {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-form .form-control, .filter-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.filter-form .form-control:focus, .filter-form .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.filter-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Consignments Grid */
.consignments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.consignment-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.consignment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.consignment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.consignment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.consignment-id {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.consignment-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.status-approved {
    background: linear-gradient(135deg, #d4edda, #00b894);
    color: #155724;
}

.status-rejected {
    background: linear-gradient(135deg, #f8d7da, #e17055);
    color: #721c24;
}

.consignment-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-label {
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    color: #2c3e50;
    font-weight: 600;
}

.station-badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.station-from {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.station-to {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.user-id-badge {
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}

.consignment-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.btn-view {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.btn-approve {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.btn-reject {
    background: linear-gradient(135deg, #dc3545, #b02a37);
}

.btn-payment {
    background: linear-gradient(135deg, #ffc107, #d39e00);
}

.btn-disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    cursor: not-allowed;
    opacity: 0.7;
}

/* No Consignments Message */
.no-consignments {
    text-align: center;
    padding: 50px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
}

.no-consignments i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.no-consignments p {
    font-size: 1.2rem;
    color: #555;
    font-weight: 500;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination .page-item .page-link {
    color: #667eea;
    border: none;
    background: transparent;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.pagination .page-item .page-link:hover {
    background: rgba(102, 126, 234, 0.1);
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .consignments-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .consignment-container {
        padding: 20px;
    }
    .consignments-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .consignment-title {
        font-size: 2rem;
    }
    .consignment-subtitle {
        font-size: 1rem;
    }
    .action-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}