/* ============================================================
   Track Info Modal — Frontend
   Opened on click of any .col-track-tag cell
   ============================================================ */

/* Overlay */
.track-info-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.track-info-modal-overlay.is-open {
    display: flex;
}

/* Prevent background scroll while modal is open */
body.track-modal-open {
    overflow: hidden;
}

/* Card */
.track-info-modal {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    animation: trackModalSlideIn 0.2s ease-out;
}

@keyframes trackModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header */
.track-info-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
}

.track-info-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.5px;
}

.track-info-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    color: #6b7280;
    padding: 0 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.track-info-modal-close:hover,
.track-info-modal-close:focus {
    color: #111;
    background: #e5e7eb;
    outline: none;
}

/* Body */
.track-info-modal-body {
    padding: 20px;
}

.track-modal-row {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.5;
}

.track-modal-row:last-child {
    border-bottom: none;
}

.track-modal-label {
    min-width: 110px;
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}

.track-modal-value {
    color: #1f2937;
}

.track-modal-no-data,
.track-modal-loading {
    margin: 0;
    color: #6b7280;
    font-style: italic;
    font-size: 14px;
}

/* Cursor hint on clickable cells */
td.col-track-tag,
th.col-track-tag {
    cursor: pointer;
}
