/* Timing Estimates Modal */

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal content */
.modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Modal header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #000;
}

/* Modal body */
.modal-body {
    margin-bottom: 20px;
}

/* Modal actions */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.modal-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background-color: #5a6268;
}

.timing-modal {
    max-width: 600px;
}

.timing-info {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 0.95rem;
}

.timing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.timing-table thead {
    background: #343a40;
}

.timing-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid #dee2e6;
}

.timing-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

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

.timing-table tbody tr:first-child {
    background: #e8f5e9;
}

.timing-table tbody tr:first-child:hover {
    background: #d5f0db;
}

.timing-table tbody tr:last-child {
    background: #fff3e0;
}

.timing-table tbody tr:last-child:hover {
    background: #ffe8cc;
}

/* KM Marker Timing Button */
.km-timing-btn {
    margin-top: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.km-timing-btn:hover {
    background: #0056b3;
}

.km-marker-popup {
    text-align: center;
}

