/* Custom scrollbar for data tables */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

.dark ::-webkit-scrollbar-thumb {
    background: #04C966;
    /* Dark mode thumb */
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.tooltip {
    visibility: hidden;
    position: absolute;
    z-index: 50;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    background-color: #334155;
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    font-size: 0.75rem;
    line-height: 1.2;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #475569;
}



.has-tooltip:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Scanline effect for that retro radio feel */
.scanlines {
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0.3;
}

/* Date picker indicator styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

.dark input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
}