.ut-timeline-container {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #fff;
    background: #000;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.ut-timeline-bg-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    opacity: 0.15;
    pointer-events: none;
    transition: opacity 0.5s;
    background: #111;
}

.ut-bg-image {
    flex-grow: 1;
    object-fit: cover;
    min-width: 20%;
    height: 33%;
    transition: opacity 1s;
    animation: fadeInBg 1s;
}

@keyframes fadeInBg {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ut-timeline-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 3;
}

.ut-timeline-filters input, .ut-timeline-filters select {
    background: #222;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.3s;
}

.ut-timeline-filters input:focus {
    border-color: #007bff;
}

#ut-timeline-viz svg {
    cursor: grab;
    position: relative;
    z-index: 2;
}

#ut-timeline-viz svg:active {
    cursor: grabbing;
}

/* Bin Elements */
.ut-bin-rect {
    fill: rgba(0, 123, 255, 0.4);
    stroke: #007bff;
    stroke-width: 1px;
    transition: fill 0.2s;
}
.ut-bin-rect:hover {
    fill: rgba(0, 123, 255, 0.8);
}

.ut-bin-text {
    fill: #fff;
    font-size: 10px;
    text-anchor: middle;
    pointer-events: none;
}

.ut-event-node {
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    fill: #ffce00;
    stroke: #000;
    stroke-width: 2px;
}

.ut-event-node:hover {
    filter: drop-shadow(0 0 8px rgba(255, 206, 0, 0.8));
    transform: scale(1.3);
}

.ut-axis path, .ut-axis line {
    stroke: rgba(255,255,255,0.3);
}

.ut-axis text {
    fill: #ccc;
    font-size: 12px;
}

/* Modal/Popup Styles */
.ut-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.ut-popup-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    position: relative;
    border: 1px solid #333;
    animation: utFadeIn 0.3s ease-out;
}

@keyframes utFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ut-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #888;
}

.ut-close:hover {
    color: #fff;
}

.ut-popup-body img, .ut-popup-body video {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.ut-popup-body h2 {
    margin-top: 0;
    color: #fff;
}

.ut-popup-body p {
    color: #ccc;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
}

/* Tooltip for Bins */
.ut-tooltip {
    position: absolute;
    text-align: center;
    padding: 8px;
    font: 12px sans-serif;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s;
}
