/* Sort Icon */
.sort-icon {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.7) !important; /* Slightly transparent white */
    margin-left: 0.5rem !important; /* Add spacing after column name */
}

/* Search Input */
#search-input {
    width: 80% !important;
    padding: 0.50rem !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 0.375rem !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    background-color: #F9FAFB !important; /* Light background for input */
    color: #374151 !important; /* Dark text for contrast */
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important; /* Subtle inner shadow */
}

#search-input:focus {
    border-color: #6366F1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important; /* Focus glow */
    background-color: white !important; /* White background on focus */
}

.fixed-header {
    position: sticky;
    top: 0; /* Sticks to the top of the viewport */
    background-color: white; /* Ensures the background covers content */
    z-index: 10; /* Keeps it above other content */
    padding-bottom: 1rem; /* Adds spacing below the fixed header */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds depth */
    backdrop-filter: blur(10px); /* Frosted glass effect */
}

/* Responsive Design */
@media (max-width: 768px) {
    th,
    td {
        padding: 0.5rem !important; /* Reduce padding on smaller screens */
    }

    #search-input {
        font-size: 0.875rem !important; /* Adjust font size for better readability */
    }

    /* Improve Sort Icon Visibility */
    .sort-icon {
        font-size: 0.875rem !important; /* Slightly larger on smaller screens */
        color: rgba(0, 0, 0, 0.7) !important; /* Darker for better visibility */
    }
}

@media (max-width: 480px) {
    #search-input {
        width: 100% !important; /* Full width on very small screens */
        font-size: 0.875rem !important; /* Adjust font size for readability */
    }

    /* Responsive Table Layout */
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block; /* Convert table rows into block elements */
    }

    th {
        display: none; /* Hide table headers */
    }

    td {
        position: relative;
        padding-left: 50%; /* Add space for labels */
        text-align: right;
    }

    td::before {
        content: attr(data-label); /* Use data attributes for labels */
        position: absolute;
        left: 0.5rem;
        font-weight: bold;
        text-transform: uppercase;
    }
}