/* ZP Timeline Sticky Bar Styles */
.zp-timeline-sticky {
	--zp-timeline-height: 40px;
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--zp-timeline-bg-color, #f8f9fa);
	border-bottom: 1px solid #dee2e6;
	height: var(--zp-timeline-height);
	padding: 0;
	display: flex;
	align-items: center;
	transition: transform 0.3s ease;
}

.zp-timeline-wrapper {
	flex-grow: 1;
	position: relative;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 15px;
	height: 100%;
	overflow: visible;
}

.zp-timeline-container {
	position: relative;
	width: 100%;
	height: 100%;
	background: var(--zp-timeline-posts-bg-color, #ffffff);
	border: 1px solid #dee2e6;
	border-radius: 4px;
	overflow: visible;
}

.zp-timeline-day-band {
	position: absolute;
	top: 0;
	bottom: 0;
	background: var(--zp-timeline-posts-bg-color, #ffffff);
	filter: saturate(100%) brightness(100%);
	pointer-events: none;
	z-index: 1;
}

.zp-timeline-day-band.is-alt {
	filter: saturate(80%) brightness(120%);
}

.zp-timeline-axis {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #dee2e6;
    transform: translateY(-50%);
}

.zp-timeline-heatmap {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Markers */
.zp-marker {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007bff;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.zp-marker:hover {
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 100;
}

.zp-timeline-base {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: rgba(0, 0, 0, 0.3);
	z-index: 5;
}

.zp-timeline-post-line {
	display: block;
	position: absolute;
	bottom: 0;
	width: 3px;
	height: 100%;
	background: var(--zp-timeline-line-color, rgba(0, 123, 255, 0.6));
	transition: background 0.2s ease, width 0.2s ease;
	cursor: pointer;
	z-index: 10;
	overflow: visible;
}

.zp-timeline-post-line:hover {
	background: var(--zp-timeline-line-hover-color, rgba(0, 123, 255, 1));
	width: 4px;
}

.zp-marker-post {
	display: block;
	position: absolute;
	bottom: 0;
	width: 1px;
	height: 100%;
	background: rgba(0, 123, 255, 0.6);
	transition: background 0.2s ease;
}

.zp-marker-post:hover {
	background: rgba(0, 123, 255, 1);
}

.zp-marker-goal {
	background: #28a745;
}

.zp-marker-var {
	background: #ffc107;
}

.zp-marker-penalty {
	background: #dc3545;
}

.zp-marker-card-yellow { background: #ffc107; border-radius: 2px; }
.zp-marker-card-red { background: #dc3545; border-radius: 2px; }
.zp-marker-post { background: #6c757d; width: 4px; height: 12px; border-radius: 0; }

.zp-timeline-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    transform: translateX(-50%);
    background: rgba(33, 37, 41, 0.95);
    color: #fff;
    padding: 6px 9px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.3;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
    z-index: 120;
}

.zp-timeline-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
}

.zp-timeline-operator-controls {
    margin-left: 20px;
    display: flex;
    gap: 5px;
}

.zp-btn {
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 11px;
}

.zp-btn-start { background: #28a745; color: #fff; }
.zp-btn-stop { background: #dc3545; color: #fff; }

.zp-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.zp-badge-live {
    background: #dc3545;
    color: #fff;
    animation: blink 1s infinite;
}

.zp-badge-finished {
    background: #6c757d;
    color: #fff;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.zp-timeline-controls {
    margin-left: 20px;
}

.zp-btn-toggle {
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
