/* Custom scrollbar for timeline */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.3);
    border-radius: 10px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(75, 85, 99, 0.5);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.5);
}

/* Timeline grid lines */
.timeline-grid-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(148, 163, 184, 0.1);
}

.dark .timeline-grid-line {
    background-color: rgba(51, 65, 85, 0.3);
}

/* Hourly labels */
.timeline-hour-label {
    position: absolute;
    left: 0;
    right: 8px;
    text-align: right;
    font-size: 0.7rem;
    color: #64748b;
    transform: translateY(-50%);
}

.dark .timeline-hour-label {
    color: #94a3b8;
}

/* A cron execution dot */
.cron-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
    transition: transform 0.1s, box-shadow 0.1s;
    z-index: 20;
}

.dark .cron-dot {
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.8);
}

.cron-dot:hover {
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 30;
}

/* Modifiers for overlaps and violations */
.cron-dot.violation {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.8) !important;
}

.cron-dot.overlap {
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.9) !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Tooltip */
.cron-tooltip {
    position: absolute;
    background: #1e293b;
    color: #f8fafc;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 50;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark .cron-tooltip {
    background: #f8fafc;
    color: #0f172a;
}