.interactive-gantt-wrapper {
    position: relative;
    padding: 1rem;
    background: #fff;
}

.interactive-scroll-arrow {
    position: absolute;
    top: 8px;
    z-index: 100;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #495057;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interactive-scroll-arrow:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #007bff;
}

.interactive-scroll-arrow:active {
    transform: scale(0.95);
}

.interactive-scroll-left {
    right: 60px;
}

.interactive-scroll-right {
    right: 8px;
}

.interactive-gantt-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.interactive-gantt-chart-container {
    position: relative;
    width: 100%;
    max-height: 70vh;
    margin-top: 1rem;
    overflow: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background: #fff;
}

/* Make the Gantt header sticky when scrolling */
.interactive-gantt-chart-container .gantt .grid-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #fff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.interactive-gantt-chart-container svg .grid-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

.interactive-gantt-chart-container svg {
    min-width: 100%;
}

.interactive-gantt-chart-container .gantt-container {
    width: max-content;
    min-width: 100%;
}

.interactive-gantt-controls .btn-group .btn {
    padding: 0.25rem 0.75rem;
}

.interactive-gantt-controls .badge {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
}

.gantt-popup-wrapper {
    min-width: 250px;
    padding: 0.5rem;
}

.gantt-popup-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.gantt-popup-content {
    font-size: 0.85rem;
    line-height: 1.6;
}

.gantt-popup-content div {
    margin-bottom: 0.25rem;
}

.gantt-popup-content strong {
    font-weight: 600;
    margin-right: 0.25rem;
}

.gantt-container .bar-parent {
    cursor: not-allowed !important;
}

.gantt-container .bar-parent .bar-wrapper {
    pointer-events: none;
}

.gantt-container .bar-parent .bar {
    fill: #495057 !important;
    stroke: #343a40 !important;
    stroke-width: 2 !important;
    rx: 8 !important;
    ry: 8 !important;
}

.gantt-container .bar-parent .bar-progress {
    fill: #6c757d !important;
}

.gantt-container .bar-parent .bar-label {
    fill: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
}

.gantt-container .bar-unscheduled {
    stroke: #adb5bd;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    opacity: 0.6;
}

.gantt-container .bar-unscheduled .bar-label {
    fill: #6c757d !important;
    font-style: italic;
}

.gantt-container .grid-background .grid-row.today-highlight {
    fill: rgba(255, 193, 7, 0.08) !important;
}

.gantt-container .grid-header .grid-row.today-highlight-header {
    fill: rgba(255, 193, 7, 0.15) !important;
    font-weight: 600;
}

@media (max-width: 768px) {
    .interactive-gantt-controls {
        flex-wrap: wrap;
    }
}