﻿.live-table {
    background: rgba(255, 255, 255, 0.2); /* transparent white */
    backdrop-filter: blur(10px); /* frosted glass effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    color: #000; /* black text */
    border-radius: 12px;
    padding: 10px;
    margin-top: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center;
}

    .live-table h4 {
        margin-bottom: 10px;
        font-size: 1.4rem;
        color: #000;
    }

    .live-table table {
        width: 100%;
        border-collapse: collapse;
        font-size: 1.2rem;
    }

    .live-table th,
    .live-table td {
        padding: 6px 8px;
        text-align: left;
        background: rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Header row (sticky + solid background) */
    .live-table thead th {
        background: rgba(255, 255, 255, 0.8); /* mostly opaque */
        backdrop-filter: blur(5px); /* glass effect */
        -webkit-backdrop-filter: blur(5px); /* Safari */
        color: #000;
        font-weight: bold;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    /* Remove border on last row */
    .live-table tr:last-child td {
        border-bottom: none;
    }

    /* Alternate row tint */
    .live-table tr:nth-child(even) td {
        background: rgba(255, 255, 255, 0.05);
    }

/* Scroll container */
.table-container {
    max-height: 200px;
    overflow-y: auto;
    /* Firefox */
}

    /* Chrome/Edge scrollbar */
    .table-container::-webkit-scrollbar {
        width: 6px;
    }

    .table-container::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 3px;
    }

/* Fade animation for live scroll */
.fade-row {
    transition: margin-top 0.5s ease, opacity 0.5s ease;
}


tr.recent-live-data:nth-child(even) {
    background-color: #f8f8f8;
}

tr.recent-live-data:hover {
    background-color: black;
    color: white;
}
