.hover-tooltip { position: relative; }
.hover-tooltip:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 10px);  /* Position to the left of the button with 10px gap */
    top: 50%;  /* Center vertically */
    transform: translateY(-50%);  /* Center vertically */
    background: #e5e7eb;
    color: #1f2937;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 20;
}
.sortable:hover { cursor: pointer; background-color: #f3f4f6; }
.filter-menu {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    padding: 8px;
    z-index: 100;
}

.chart-container {
    position: relative;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Table styles */
@media (max-width: 768px) {
    #logsTable {
        font-size: 0.875rem;
    }
    
    #logsTable td {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

    /* Hide tooltips on mobile */
    .hover-tooltip:hover::before {
        display: none;
    }
}
