/* Additional styling for data tables page */

/* Enhanced table styling */
.table-container {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 0.375rem;
    overflow: hidden;
}

/* Responsive table */
@media (max-width: 768px) {
    .table-container {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.5rem 0.25rem;
    }
    
    .search-input {
        font-size: 1rem; /* Prevent zoom on iOS */
    }
}

/* Zebra striping for better readability */
tbody tr:nth-child(even) {
    background-color: rgba(248, 249, 250, 0.5);
}

tbody tr:hover {
    background-color: var(--panel-border);
}

/* Better focus states for accessibility */
th:focus,
.search-input:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
