/* ===== Timeline Panel Styles ===== */

/* Timeline Panel (Collapsible Overlay from bottom) */
.timeline-panel {
    position: fixed;
    bottom: 0;
    left: 400px; /* Account for left sidebar */
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 900; /* Below place-details-sidebar (which is 1000+) */
    transition: transform 0.3s ease, right 0.3s ease; /* Add transition for right */
    max-height: 350px;
    display: none; /* Hidden by default */
}

/* Adjust timeline width when place-details-sidebar is active */
.place-details-sidebar.active ~ .timeline-panel,
body:has(.place-details-sidebar.active) .timeline-panel {
    right: 450px; /* Width of place-details-sidebar */
}

.timeline-panel.visible {
    display: block;
}

.timeline-panel.collapsed {
    transform: translateY(calc(100% - 60px)); /* Show only header */
}

.timeline-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    user-select: none;
}

.timeline-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    padding: 0;
}

.timeline-toggle:hover {
    color: #2A9D8F;
}

.timeline-toggle i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.timeline-panel.collapsed .timeline-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Hide header content when collapsed - only show toggle button */
.timeline-panel.collapsed .timeline-zoom-controls,
.timeline-panel.collapsed .timeline-info {
    display: none;
}

/* Timeline Zoom Controls */
.timeline-zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    cursor: default;
}

.timeline-zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    font-size: 12px;
    transition: all 0.2s ease;
}

.timeline-zoom-btn:hover {
    background: #e0e0e0;
    color: #333;
    border-color: #ccc;
}

.timeline-zoom-btn:active {
    background: #d0d0d0;
}

.timeline-zoom-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    min-width: 40px;
    text-align: center;
}

.timeline-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.selected-place-time {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #e3f2fd;
    border-radius: 6px;
    font-size: 13px;
    color: #1976D2;
    font-weight: 500;
}

.selected-place-time i {
    color: #1976D2;
}

.selected-place-time #selectedPlaceName {
    font-weight: 600;
}

.selected-place-time #selectedPlaceTimeRange {
    color: #666;
}

.timeline-current {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.timeline-current .place-tag {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.timeline-current .place-dot {
    width: 6px;
    height: 6px;
    margin-right: 6px;
}

.timeline-current .current-day-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 0;
}

.timeline-content {
    max-height: 280px;
    overflow-x: auto; /* Enable horizontal scroll */
    overflow-y: auto;
    padding: 20px;
}

/* ===== Gantt Chart Styles ===== */

.gantt-wrapper {
    position: relative;
    padding-top: 30px;
    margin-bottom: 20px;
    min-width: fit-content; /* Force width to fit content */
}

.day-labels {
    position: absolute;
    top: 0;
    left: 0;
    right: auto; /* Change from 'right: 0' */
    height: 25px;
    display: flex;
    min-width: 100%;
}

.day-label {
    width: 120px; /* Fixed width instead of flex: 1 */
    min-width: 120px;
    flex-shrink: 0; /* Prevent shrinking */
    text-align: center;
    font-size: 11px;
    color: #666;
    border-left: 1px solid #e0e0e0;
    padding-top: 5px;
}

.day-label:first-child {
    border-left: none;
}

.day-label.current {
    color: #2196F3;
    font-weight: 600;
}

.gantt-grid {
    position: absolute;
    top: 25px;
    left: 0;
    right: auto; /* Change from 'right: 0' */
    bottom: 0;
    display: flex;
    min-width: 100%;
}

.day-column {
    width: 120px; /* Fixed width instead of flex: 1 */
    min-width: 120px;
    flex-shrink: 0; /* Prevent shrinking */
    border-left: 1px solid #e0e0e0;
    /* Time-of-day bands: midnight-6am (25%), 6am-6pm (50%), 6pm-midnight (25%) */
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.08) 0%,      /* Midnight - night */
        rgba(0, 0, 0, 0.08) 25%,     /* 6 AM - end of night */
        rgba(0, 0, 0, 0) 25%,        /* 6 AM - daytime starts */
        rgba(0, 0, 0, 0) 75%,        /* 6 PM - daytime ends */
        rgba(0, 0, 0, 0.08) 75%,     /* 6 PM - evening starts */
        rgba(0, 0, 0, 0.08) 100%     /* Midnight */
    );
}

.day-column:first-child {
    border-left: none;
}

.day-column.current {
    background: linear-gradient(
        to right,
        rgba(33, 150, 243, 0.15) 0%,
        rgba(33, 150, 243, 0.15) 25%,
        rgba(33, 150, 243, 0.05) 25%,
        rgba(33, 150, 243, 0.05) 75%,
        rgba(33, 150, 243, 0.15) 75%,
        rgba(33, 150, 243, 0.15) 100%
    );
}

.gantt-content {
    position: relative;
    min-height: 120px;
    padding-top: 25px;
    min-width: 100%;
}

.gantt-bars {
    position: relative;
    min-height: 100px;
    width: 100%; /* Ensure full width */
}

.gantt-bar {
    position: absolute;
    height: 36px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    user-select: none;
    touch-action: none;
}

.gantt-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #2E7D32;
}

.gantt-bar.active {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-color: #0D47A1;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    transform: translateY(-2px);
}

/* Color variations for different stops */
.gantt-bar.color-1 {
    background: linear-gradient(135deg, #FF6B6B, #EE5A52);
}

.gantt-bar.color-2 {
    background: linear-gradient(135deg, #4ECDC4, #44B3AA);
}

.gantt-bar.color-3 {
    background: linear-gradient(135deg, #FFE66D, #F4D03F);
}

.gantt-bar.color-4 {
    background: linear-gradient(135deg, #A8E6CF, #88D4AB);
}

.gantt-bar.color-5 {
    background: linear-gradient(135deg, #C7CEEA, #A8B3D7);
}

.bar-label {
    color: white;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Resize handles */
.gantt-bar .resize-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 2;
}

.gantt-bar .resize-handle.left {
    left: 0px;
    cursor: ew-resize;
}

.gantt-bar .resize-handle.right {
    right: 0px;
    cursor: ew-resize;
}

.gantt-bar.resizing,
.gantt-bar.moving {
    transition: none !important;
}

/* ===== Timeline Cursor & Slider ===== */

.timeline-cursor {
    position: absolute;
    top: 25px;
    bottom: 0;
    width: 3px;
    background: #2196F3;
    cursor: grab;
    z-index: 10;
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.5);
    transition: left 0.1s ease;
    pointer-events: none; /* Let slider handle interactions */
}

/* .timeline-cursor::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #2196F3;
}

.timeline-cursor::after {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #2196F3;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
} */

.timeline-cursor:active {
    cursor: grabbing;
}

.timeline-cursor-label {
    position: absolute;
    top: 3px;
    left: 10px;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 12px;
    background: #2196f3;
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
}

/* Track + Progress (visual indicator) */
.timeline-track {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;
    height: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.10);
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.timeline-progress {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: rgba(33, 150, 243, 0.9);
    transition: width 0.06s linear;
}

/* Slider as invisible input over the track */
#timelineSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -25px;
    z-index:20;
}

#timelineSlider:focus {
    outline: none;
}

#timelineSlider::-webkit-slider-runnable-track {
    height: 30px;
    background: transparent;
}

#timelineSlider::-moz-range-track {
    height: 30px;
    background: transparent;
}

#timelineSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.25);
    cursor: pointer;
    margin-top: -7px;
}

#timelineSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    border: 2px solid #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.25);
    cursor: pointer;
}

/* ===== Current Day Info ===== */

.current-day-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.current-places {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.place-tag {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.place-tag.active {
    background: #2196F3;
    color: white;
}

.place-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

/* Color variables for place dots */
:root {
    --color-1: #FF6B6B;
    --color-2: #4ECDC4;
    --color-3: #FFE66D;
    --color-4: #A8E6CF;
    --color-5: #C7CEEA;
}

/* ===== Mobile Adjustments ===== */

@media (max-width: 768px) {
    /* Hide desktop timeline panel on mobile */
    .timeline-panel {
        display: none !important;
    }

    /* Show timeline in mobile content area */
    .timeline-mobile-wrapper {
        display: block;
        padding: 10px;
        background: white;
    }

    .timeline-track {
        bottom: 12px;
    }
    .gantt-bar .resize-handle.left {
        left: 3px;
        cursor: ew-resize;
    }

    .gantt-bar .resize-handle.right {
        right: 3px;
        cursor: ew-resize;
    }

    /* Adjust timeline sizing for mobile */
    .gantt-content {
        min-height: 150px;
    }

    .gantt-bar {
        height: 30px; /* Smaller bars */
    }

    .bar-label {
        font-size: 11px;
    }
}

@media (min-width: 769px) {
    /* Hide mobile timeline on desktop */
    .timeline-mobile-wrapper {
        display: none;
    }
}

/* Desktop: Timeline panel below sidebar */
@media (min-width: 769px) {
    .timeline-panel {
        left: 400px; /* Sidebar width */
    }
}

/* When sidebar is hidden/mobile, full width */
@media (max-width: 768px) {
    .timeline-panel {
        left: 0;
    }
}

/* ===== Mobile Timeline View Toggle ===== */

.mobile-timeline-view-toggle {
    display: flex;
    padding: 8px 10px;
    gap: 8px;
    background: #f0f2f5;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-timeline-view-toggle .toggle-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-timeline-view-toggle .toggle-btn.active {
    background: #2A9D8F;
    color: white;
    border-color: #2A9D8F;
}

.mobile-timeline-view-toggle .toggle-btn:not(.active):hover {
    background: #f5f5f5;
}

/* ===== Mobile Gantt Container ===== */

.mobile-gantt-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 5px 0;
}

.mobile-gantt-container .timeline-content {
    max-height: none;
    padding: 5px 10px;
}

.mobile-gantt-container .gantt-wrapper {
    min-height: auto;
    padding-top: 25px;
    margin-bottom: 5px;
}

.mobile-gantt-container .gantt-content {
    min-height: auto;
    padding-top: 20px;
}

.mobile-gantt-container .gantt-bar {
    height: 28px;
}

.mobile-gantt-container .bar-label {
    font-size: 10px;
}

.mobile-gantt-container .day-label {
    font-size: 10px;
}

/* Hide slider, cursor, and track in mobile Gantt - not needed without info header */
.mobile-gantt-container .timeline-slider,
.mobile-gantt-container .timeline-cursor,
.mobile-gantt-container .timeline-track {
    display: none;
}

/* ===== Mobile Gantt Schedule Info Panel ===== */

.mobile-gantt-schedule-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin: 10px 10px 0;
    background: #f0faf8;
    border: 1px solid #d0ece8;
    border-radius: 8px;
    gap: 12px;
}

.gantt-schedule-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.gantt-schedule-header strong {
    font-size: 13px;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gantt-schedule-badge {
    background: #e3f2fd;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10px;
    color: #1976D2;
    white-space: nowrap;
}

.gantt-schedule-times {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #2A9D8F;
    white-space: nowrap;
}

.gantt-schedule-times i {
    margin-right: 3px;
    font-size: 11px;
}

/* ===== Mobile Timeline Styles ===== */

.mobile-timeline-info {
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    color: #1976D2;
    font-size: 14px;
}

/* Mobile Timeline Leg Divider */
.mobile-timeline-leg {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    color: #667eea;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-timeline-leg::before,
.mobile-timeline-leg::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #667eea 20%, #667eea 80%, transparent);
}

.mobile-timeline-leg span {
    padding: 0 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-timeline-leg span i {
    font-size: 11px;
}

.mobile-timeline-leg:active {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
}

.timeline-mobile-section .gantt-wrapper {
    min-height: auto;
}

.timeline-mobile-section .gantt-bar {
    height: 28px;
    font-size: 11px;
}

.timeline-mobile-section .day-label {
    font-size: 10px;
}

@media (max-width: 768px) {
    /* Keep desktop timeline completely hidden on mobile */
    .timeline-panel {
        display: none !important;
    }

    /* Mobile timeline section is shown via switchMobileMode() */
    .timeline-mobile-section {
        display: none;
    }

    .timeline-mobile-section[style*="display: block"],
    .timeline-mobile-section[style*="display: flex"] {
        display: flex !important;
        flex-direction: column;
    }

    /* Smaller day widths for mobile */
    .day-label {
        width: 80px;
        min-width: 80px;
    }

    .day-column {
        width: 80px;
        min-width: 80px;
        /* Time-of-day bands for mobile */
        background: linear-gradient(
            to right,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.08) 25%,
            rgba(0, 0, 0, 0) 25%,
            rgba(0, 0, 0, 0) 75%,
            rgba(0, 0, 0, 0.08) 75%,
            rgba(0, 0, 0, 0.08) 100%
        );
    }
}

/* ===== Conflict Styling ===== */

/* Conflict Banner */
.conflict-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #f39c12;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.15);
    display: none;
    animation: slideDown 0.3s ease;
}

.conflict-banner.visible {
    display: block;
}

.conflict-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.conflict-banner i {
    color: #f39c12;
    font-size: 20px;
}

.conflict-message {
    flex: 1;
    color: #856404;
    font-weight: 500;
}

.conflict-actions {
    display: flex;
    gap: 8px;
}

/* Conflicting Timeline Bars */
.gantt-bar.conflict {
    border: 2px solid #f39c12;
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.2);
}

.gantt-bar.conflict::before {
    content: '\26A0';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #f39c12;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 10;
}

.conflict-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 8px;
    z-index: 100;
}

.conflict-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.gantt-bar.conflict:hover .conflict-tooltip {
    opacity: 1;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.toast.visible {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #27ae60;
}

.toast.success i {
    color: #27ae60;
    font-size: 20px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Conflict Styling */
@media (max-width: 768px) {
    .conflict-banner {
        padding: 10px 12px;
        margin-bottom: 10px;
    }

    .conflict-banner-content {
        flex-wrap: wrap;
    }

    .conflict-message {
        flex-basis: 100%;
        margin-bottom: 8px;
    }

    .conflict-actions {
        flex-basis: 100%;
        justify-content: flex-end;
    }

    .toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        transform: translateY(400px);
    }

    .toast.visible {
        transform: translateY(0);
    }
}

/* ===== Route Leg Bar Styles ===== */

.gantt-leg-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none; /* Let children handle events */
}

.gantt-leg-bar {
    width: 100%;
    height: 24px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    opacity: 0.9;
    border: none;
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.3);
    padding: 0;
    pointer-events: auto;
    touch-action: none;
}

.gantt-leg-bar:hover {
    opacity: 1;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.4);
    border-color: transparent;
}

.gantt-leg-bar.active {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4192 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.gantt-leg-wrapper.moving .gantt-leg-bar {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    transition: none !important;
    cursor: grabbing;
}

.gantt-leg-wrapper.moving {
    z-index: 10;
}

.gantt-leg-wrapper.moving .gantt-leg-label {
    cursor: grabbing;
}

/* Label below the leg bar */
.gantt-leg-label {
    font-size: 10px;
    font-weight: 500;
    color: #667eea;
    white-space: nowrap;
    margin-top: 35px;
    margin-bottom: 5px;
    padding: 10px 8px;
    pointer-events: auto;
    cursor: grab;
    touch-action: none;
}

.gantt-leg-label i {
    margin-right: 3px;
    font-size: 9px;
}

/* No resize handles for legs - duration is fixed by OSRM */
.gantt-leg-bar .resize-handle {
    display: none;
}

/* Leg bar tooltip on hover */
.gantt-leg-bar[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 4px;
    z-index: 100;
}

.gantt-leg-bar[data-tooltip]:hover::after {
    opacity: 1;
}

/* Mobile adjustments for leg bars */
@media (max-width: 768px) {
    .gantt-leg-bar {
        height: 20px !important;
    }

    .gantt-leg-label {
        font-size: 9px;
    }
}
