/* Results Table Styles */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: white;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 800px;
    border: 1px solid black;
}

table thead {
    background: linear-gradient(135deg, #4a6cf7 0%, #3a56d6 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table th:first-child {
    border-top-left-radius: 12px;
}

table th:last-child {
    border-top-right-radius: 12px;
}

table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f2f7;
    border: 1px solid black;
}

table tbody tr:last-child {
    border-bottom: none;
    border: 1px solid black;
}

table tbody tr:hover {
    background-color: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

table td {
    padding: 1.2rem 1rem;
    color: #2d3748;
    font-size: 0.95rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f2f7;
    border: 1px solid black;
}

table tbody tr:last-child td {
    border-bottom: none;
    border: 1px solid black;
}

/* Add subtle row striping for better readability */
table tbody tr:nth-child(even) {
    background-color: #f9fafc;
    border: 1px solid black;
}

/* Make the score column stand out */


/* Responsive adjustments */
@media (max-width: 992px) {
    table th,
    table td {
        padding: 1rem 0.8rem;
        font-size: 0.9rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .table-container {
        border-radius: 8px;
        margin: 1.5rem -1rem;
        width: calc(100% + 2rem);
    }
    
    table {
        min-width: 600px;
    }
    
    table th,
    table td {
        padding: 0.9rem 0.7rem;
        font-size: 0.85rem;
    }
}

/* Custom scrollbar for table container */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation for table rows */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.table tbody tr {
    animation: fadeIn 0.3s ease-out forwards;
    opacity: 0;
}

/* Staggered animation for rows */
table tbody tr:nth-child(1) { animation-delay: 0.1s; }
table tbody tr:nth-child(2) { animation-delay: 0.15s; }
table tbody tr:nth-child(3) { animation-delay: 0.2s; }
table tbody tr:nth-child(4) { animation-delay: 0.25s; }
table tbody tr:nth-child(5) { animation-delay: 0.3s; }

.heading-table{
    background-color:white;
    color: black;
    font-weight: bold;
    
}

.results-intro-container{
    padding: 1rem;
    padding-bottom: none;
    margin-bottom:0px ;
    text-align: justify;
    max-width: 100%;
}
.results-intro{
    width: 100%;
   margin-bottom:0px;
    max-width: 100%;
}

    #searchInput {
        max-width: 100%;
        margin-top:0em ; 
        padding: 8px;
        margin-bottom: 15px;
        display: block;
        font-size: 16px;
        border: 1px solid #888;
        border-radius: 6px;
        display: flex;
        justify-content: center;
        align-items: center;
    }


    /* Container Control (optional) */
#tableSelector {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 2px solid #0071ff;
    border-radius: 8px;
    background: #ffffff;
    color: #222;
    appearance: none;       /* Removes default arrow for custom styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    font-weight: 500;
}

/* Add custom dropdown arrow */
#tableSelector {
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    #tableSelector {
        font-size: 14px;
        padding: 10px 12px;
        border-radius: 6px;
    }
}

/* Focus Effect */
#tableSelector:focus {
    border-color: #0056d6;
    box-shadow: 0 0 4px rgba(0, 113, 255, 0.5);
}





/* Main dropdown style */
#tableSelector {
    width: 100%;
    max-width: 350px;          /* Optional – keeps size nice on desktop */
    padding: 12px 14px;
    font-size: 16px;
    color: #222;
    background: #fff;
    border: 2px solid #0071ff;
    border-radius: 10px;
    outline: none;
    cursor: pointer;

    /* Removes browser default arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Custom arrow */
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' width='20' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

/* Options inside dropdown */
#tableSelector option {
    padding: 12px;             /* Controls spacing of list items */
    font-size: 15px;
    background: #fff;
    color: #222;
}

/* On focus */
#tableSelector:focus {
    border-color: #0056d6;
    box-shadow: 0 0 6px rgba(0, 113, 255, 0.5);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    #tableSelector {
        width: 100%;
        margin: 2em auto;
        font-size: 15px;
        padding: 10px 12px;
        border-radius: 8px;
    }

    #tableSelector option {
    display: flex;
    padding: 8px;             /* Controls spacing of list items */
    font-size: 8px;
    background: #fff;
    color: #222;
    }
}


h1{
    text-align: center;
}







