/* JFO Console - Clean CSS Styles (No Duplicates) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.jfo-container {
    max-width: 1400px;
    margin: 0 auto;
}

.jfo-header {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.jfo-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jfo-controls {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.controls-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 20px;
    align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label,
.form-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9em;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.summary-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-left: 5px solid;
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
}

.summary-card.total-details {
    border-left-color: #3498db;
}

.summary-card.waiting-details {
    border-left-color: #f39c12;
}

.summary-card.reassigned-details {
    border-left-color: #9b59b6;
}

.summary-card.total-reassignments {
    border-left-color: #e74c3c;
}

.summary-card h3 {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 700;
}

.summary-card p {
    color: #7f8c8d;
    font-weight: 500;
    margin: 0;
}

.table-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 25px;
}

.table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    margin: 0;
    font-size: 1.3em;
}

.table-header .table-actions {
    display: flex;
    gap: 10px;
}

.table-wrapper {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.appearance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.appearance-table th {
    background: #f8f9fa;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.appearance-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

.appearance-table tbody tr {
    transition: background-color 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.appearance-table tbody tr:hover {
    background-color: #f8f9fa;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-indicator {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.waiting-detail {
    color: #f39c12 !important;
    font-weight: 600;
}

.reassigned-detail {
    color: #3498db !important;
    font-weight: 600;
}

.normal-detail {
    color: #27ae60 !important;
    font-weight: 600;
}

.expand-btn {
    background: none !important;
    border: none !important;
    cursor: pointer;
    font-size: 1.2em;
    margin-right: 8px;
    color: #667eea;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background-color: #f8f9fa !important;
    border-radius: 3px;
    transform: scale(1.1);
}

.filter-section {
    background: white;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: end;
}

.search-input {
    position: relative;
}

.search-input input {
    padding-left: 45px;
}

.search-input::before {
    content: "🔍";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    z-index: 2;
}

/* === CLEAN MODAL STYLES (NO DUPLICATES) === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal .close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: none;
    border: none;
}

.modal .close:hover {
    color: #000;
    background: #f0f0f0;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* === LOADING OVERLAY === */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    margin: 8px 0;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    max-width: 400px;
    word-wrap: break-word;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.toast.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.toast.warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212529;
}

.toast.info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

/* === ASSIGNMENT INFO STYLES === */
.assignment-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.assignment-info h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.assignment-info .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.assignment-info .info-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9em;
}

.assignment-info .info-label {
    font-weight: 600;
    color: #495057;
}

.assignment-info .info-value {
    color: #6c757d;
}

/* === TRAIN SELECTION STYLES === */
.train-selection-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
}

.train-checkbox-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.train-checkbox-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.train-checkbox-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.train-checkbox-item.selected {
    border-color: #28a745;
    background: #f8fff9;
}

.train-checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #28a745;
}

.train-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.train-number {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

.train-route {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.train-timing {
    color: #495057;
    font-size: 0.85em;
    font-weight: 500;
}

.train-selection-section .form-label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

/* === EXPANDED ROW STYLES === */
.expanded-row {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #667eea;
}

.expanded-content {
    padding: 20px;
}

.expanded-content h5 {
    margin-bottom: 15px;
    color: #495057;
}

.train-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.train-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.train-card.reassigned {
    border-left-color: #e74c3c;
}

.train-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.train-card-number {
    font-weight: 600;
    font-size: 1.1em;
    color: #2c3e50;
}

.train-card-status {
    font-size: 0.8em;
    font-weight: 500;
}

.train-card-status.assigned {
    color: #27ae60;
}

.train-card-status.reassigned {
    color: #e74c3c;
}

.train-card-details {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
}

.train-card-actions {
    margin-top: 10px;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.7em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .controls-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-wrapper {
        font-size: 0.85em;
    }

    .appearance-table th,
    .appearance-table td {
        padding: 8px;
    }

    .train-checkbox-container {
        grid-template-columns: 1fr;
    }

    .train-cards-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .assignment-info .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }

    .jfo-header h1 {
        font-size: 2em;
    }

    .assignment-info .info-grid {
        grid-template-columns: 1fr;
    }
}
.jfo-tabs {
    display: flex;
    background: white;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    color: #666;
}

.tab-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tab-button:hover:not(.active) {
    background: #f8f9fa;
    color: #2c3e50;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.working-train {
    background: #28a745;
    color: white;
}

.piloting-train {
    background: #ffc107;
    color: #212529;
}

/* Enhanced modal styling */
.modal .form-group {
    margin-bottom: 20px;
}

.modal label[style*="cursor: pointer"]:hover {
    border-color: #667eea !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.modal input[type="radio"]:checked + div {
    color: #667eea;
}

#targetDetailInfo {
    border-left: 4px solid #17a2b8;
}

#reassignmentPreview {
    border-left: 4px solid #ffc107;
}

.train-selection-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #28a745;
}
/* ===== MOTORMAN MANAGEMENT STYLES ===== */
/* Add these styles to your jfo-styles.css file */

/* Reports container and sections */
.reports-container {
    animation: fadeIn 0.5s ease-in;
}

.reports-header {
    position: relative;
    overflow: hidden;
}

.reports-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.motorman-management-section {
    border-top: 4px solid #667eea;
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* File input styling */
input[type="file"] {
    transition: all 0.3s ease;
    background: white;
}

input[type="file"]:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="file"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Statistics cards enhancements */
.motorman-management-section [style*="background: linear-gradient"] {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.motorman-management-section [style*="background: linear-gradient"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.motorman-management-section [style*="background: linear-gradient"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.motorman-management-section [style*="background: linear-gradient"]:hover::before {
    left: 100%;
}

/* Motorman selection modal styles */
#motormanSelectionModal .modal-content {
    animation: modalZoomIn 0.4s ease-out;
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Motorman list item styles */
.motorman-item {
    animation: fadeInLeft 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.motorman-item:hover {
    border-color: #667eea !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2) !important;
    transform: translateX(5px);
}

.motorman-item:nth-child(1) { animation-delay: 0.1s; }
.motorman-item:nth-child(2) { animation-delay: 0.2s; }
.motorman-item:nth-child(3) { animation-delay: 0.3s; }
.motorman-item:nth-child(4) { animation-delay: 0.4s; }
.motorman-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Selected motorman display */
#selectedMotormanDisplay {
    animation: slideInDown 0.4s ease-out;
    border-left: 4px solid #28a745;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

/* Office badge styling */
.motorman-item [style*="background: linear-gradient"] {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.motorman-item [style*="background: linear-gradient"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.motorman-item:hover [style*="background: linear-gradient"]::before {
    left: 100%;
}

/* Search and filter enhancements */
#motormanSearchInput:focus,
#motormanOfficeFilter:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Loading states */
.loading-motormen {
    position: relative;
}

.loading-motormen::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced button states */
#confirmMotormanBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#confirmMotormanBtn:not(:disabled):hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* CSV upload area enhancements */
.motorman-management-section form {
    position: relative;
}

.motorman-management-section form:hover {
    background: #f0f4ff;
}

/* Future reports section */
.reports-container > div:last-child [style*="border: 2px solid"] {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reports-container > div:last-child [style*="border: 2px solid"]:hover {
    border-color: #667eea !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.reports-container > div:last-child [style*="border: 2px solid"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.reports-container > div:last-child [style*="border: 2px solid"]:hover::before {
    transform: scaleX(1);
}

/* Error and success states */
.upload-success {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    animation: successPulse 0.6s ease-out;
}

.upload-error {
    border-left: 4px solid #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    animation: errorShake 0.6s ease-out;
}

@keyframes successPulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Mobile responsiveness for motorman management */
@media (max-width: 768px) {
    .motorman-management-section {
        padding: 20px;
    }
    
    .motorman-management-section form > div {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .motorman-management-section [style*="display: grid"][style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .motorman-item > div > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        text-align: center;
    }
    
    #motormanSelectionModal .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }
    
    #motormanSelectionModal [style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .reports-header h2 {
        font-size: 1.5em !important;
    }
    
    .motorman-management-section h3 {
        font-size: 1.3em;
    }
    
    .motorman-item {
        padding: 12px !important;
    }
    
    .motorman-item [style*="font-size: 1.1em"] {
        font-size: 1em !important;
    }
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
    .motorman-item {
        background: #2c3e50 !important;
        border-color: #34495e !important;
        color: white;
    }
    
    .motorman-item:hover {
        background: #34495e !important;
        border-color: #667eea !important;
    }
    
    #selectedMotormanDisplay {
        background: #2c3e50 !important;
        color: white;
    }
    
    #motormanListContainer {
        background: #34495e !important;
    }
}

/* Print styles for motorman reports */
@media print {
    .motorman-management-section {
        box-shadow: none;
        break-inside: avoid;
    }
    
    .motorman-item {
        border: 1px solid #000 !important;
        margin-bottom: 5px !important;
        break-inside: avoid;
    }
    
    .reports-header {
        background: #000 !important;
        color: white !important;
    }
    
    .btn-primary,
    .btn-secondary {
        display: none;
    }
}

/* Accessibility improvements */
.motorman-item:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .motorman-item,
    .reports-container,
    .motorman-management-section,
    #motormanSelectionModal .modal-content,
    #selectedMotormanDisplay {
        animation: none;
    }
    
    .motorman-item:hover,
    .motorman-management-section [style*="background: linear-gradient"]:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .motorman-item {
        border-width: 3px !important;
    }
    
    .motorman-item:hover {
        border-color: #000 !important;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}