/**
 * Vehicle History Modal Styles
 * @author Claude Code
 */

/* Modal customizations */
#vehicle-history-modal .modal-dialog {
    max-width: 900px;
}

#vehicle-history-modal .modal-body {
    padding: 0;
    min-height: 400px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

#vehicle-history-modal .vehicle-history-panel-container {
    padding: 25px;
    background: white;
}

#vehicle-history-modal .history-timeline {
    max-height: none;
    overflow-y: visible;
}

/* Modal header styling */
#vehicle-history-modal .modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

#vehicle-history-modal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Loading state */
#vehicle-history-modal-body .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #vehicle-history-modal .modal-dialog {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    #vehicle-history-modal .modal-dialog {
        max-width: 100%;
        margin: 0.5rem;
    }

    #vehicle-history-modal .vehicle-history-panel-container {
        padding: 15px;
    }

    #vehicle-history-modal .modal-body {
        max-height: calc(100vh - 150px);
    }
}

/* Smooth scrolling */
#vehicle-history-modal .modal-body {
    scrollbar-width: thin;
    scrollbar-color: #adb5bd #f8f9fa;
}

#vehicle-history-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#vehicle-history-modal .modal-body::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

#vehicle-history-modal .modal-body::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

#vehicle-history-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

/* Button hover effect */
#vehicle-history-modal-btn {
    transition: all 0.2s ease;
    font-weight: 500;
}

#vehicle-history-modal-btn:hover {
    opacity: 0.6;
    cursor: pointer;
}

/* Enhanced status section visibility in modal */
#vehicle-history-modal .timeline-status-section.current-status {
    background: linear-gradient(to right, rgba(227, 242, 253, 0.3) 0%, transparent 100%);
    padding: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 8px;
}

/* Activity items get slightly more spacing in modal */
#vehicle-history-modal .timeline-activities .timeline-item {
    margin-bottom: 18px;
}

/* File links styling */
#vehicle-history-modal .value-changes a {
    font-weight: 500;
    transition: opacity 0.2s ease;
}

#vehicle-history-modal .value-changes a:hover {
    opacity: 0.8;
}
