/* Responsive styles for tables */
@media screen and (max-width: 800px) {
    /* Container for table with horizontal scrolling */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1.5em;
        display: block;
    }
    
    /* Styles for tables inside container */
    .table-responsive table {
        width: 100%;
        min-width: 500px; /* Minimum table width */
        margin-bottom: 0;
    }
    
    /* Scroll indicator */
    .table-scroll-hint {
        display: block;
        text-align: center;
        font-size: 12px;
        color: #aaa;
        padding: 5px 0;
        margin-bottom: 10px;
    }
    
    /* Scroll indicator animation */
    @keyframes scroll-hint-animation {
        0% { transform: translateX(0); }
        30% { transform: translateX(10px); }
        60% { transform: translateX(0); }
    }
    
    .table-scroll-hint::after {
        content: "→";
        display: inline-block;
        margin-left: 5px;
        animation: scroll-hint-animation 2s infinite;
    }
}

/* Base styles for all tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5em;
}

table th, 
table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

table th {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-weight: 600;
}

table tr {
    background-color: rgba(255, 255, 255, 0.02);
}

table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.04);
}

/* Styles for tables with caption */
.table-with-caption {
    margin-bottom: 2em;
}

.table-caption {
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
    font-size: 18px;
}
