/* ==========================================================================
   Motion, Speed & Simple Pendulum Lab (MotionTimeLab) Styles
   ========================================================================== */

.tool-motiontime-wrapper {
    user-select: none;
}

/* Track Road Strip */
.mt-track-container {
    position: relative;
    width: 100%;
    height: 90px;
    background-color: #1e293b;
    border-bottom: 2px solid #334155;
    overflow: hidden;
}

.mt-track-road {
    position: relative;
    width: 100%;
    height: 100%;
}

.mt-track-lane {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(to right, #fbbf24 50%, transparent 50%);
    background-size: 24px 2px;
    transform: translateY(-50%);
    opacity: 0.7;
}

.mt-track-markers {
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 18px;
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 0.65rem;
    font-family: monospace;
    color: #94a3b8;
    pointer-events: none;
}

.mt-track-vehicle {
    position: absolute;
    top: 14px;
    left: 16px;
    cursor: grab;
    transition: transform 0.05s linear;
    z-index: 5;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.mt-track-vehicle:active {
    cursor: grabbing;
}

/* Graph Canvas */
.mt-graph-wrapper {
    position: relative;
    width: 100%;
    background-color: var(--bs-body-bg);
    border-radius: 0.375rem;
    overflow: hidden;
}

#mt-graph-canvas {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Pendulum Canvas */
.mt-pendulum-wrapper {
    position: relative;
    width: 100%;
    min-height: 380px;
    background-color: var(--bs-body-bg);
    background-image: 
        linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mt-pendulum-canvas {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.mt-pendulum-legend {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    font-size: 0.75rem;
}

/* Tab Navigation */
#mt-nav-tabs .nav-link {
    color: var(--bs-secondary-color);
    font-size: 0.85rem;
}

#mt-nav-tabs .nav-link.active {
    color: var(--bs-primary);
    border-bottom: 2px solid var(--bs-primary);
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .mt-track-container {
    background-color: #0f172a;
    border-color: #1e293b;
}

[data-bs-theme="dark"] .mt-pendulum-wrapper {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}
