﻿/* Overall Page Layout */
.votesearch-page {
    background: #FFF;
    padding: 40px;
    padding-top: 105px; /* Adjust as needed */
    position: relative;
    z-index: 2;
    font-family: 'Inter', sans-serif;
}

/* Content Wrapper (same idea as Seasons .content-wrapper) */
.content-wrapper {
    position: relative;
    width: 1800px; /* or whatever max width you want */
    max-width: 100%;
    margin: 0 auto;
}

/* Page Header (similar to Seasons) */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.header-left {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 20px;
}

.page-title {
    color: #181D27;
    font-size: 30px;
    font-weight: 600;
    line-height: 38px;
    margin: 0;
}

/* Filters Section - style the labels and selects similarly to Seasons dropdowns */
.occurrence-filters {
    display: flex; /* put filter groups in one row */
    align-items: center; /* vertically center them */
    gap: 32px; /* large gap between groups */
    margin-bottom: 20px;
}

.filter-group {
    display: flex; /* label and select on the same row */
    align-items: center;
    gap: 8px; /* small gap between label and select */
}

    .filter-group label {
        font-weight: 500;
        font-size: 14px;
        color: #181D27;
    }

    /* (Optional) Adjust <select> styling to match your theme */
    .filter-group select {
        padding: 10px 16px;
        border-radius: 8px;
        border: 1px solid #D5D7DA;
        background: #FFF;
        box-shadow: 0px 1px 2px rgba(10, 13, 18, 0.05);
        font-size: 14px;
        color: #535862;
        cursor: pointer;
    }

/* ***************** New Filter Controls Section ***************** */

/* Container for filter controls (drop-down, input, selected filters, and apply button) */
.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

/* Container for drop-down and input box side-by-side */
.filter-input-container {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
}

    .filter-input-container select,
    .filter-input-container input {
        padding: 8px 12px;
        border: 1px solid #D5D7DA;
        border-radius: 8px;
        font-size: 14px;
        font-family: 'Inter', sans-serif;
    }

    .filter-input-container input {
        flex: 1;
    }

/* Container for showing autocomplete suggestions 
   (if you choose to style a custom suggestion dropdown) */
.filter-suggestions {
    position: absolute; /* positioned relative to .filter-input-container */
    top: 100%; /* immediately below the input box */
    left: 0;
    width: 100%; /* same width as the input */
    background: #FFF;
    border: 1px solid #D5D7DA;
    border-top: none; /* remove top border for a seamless look */
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    max-height: 240px; /* about 10 items at ~24px each; adjust as needed */
    overflow-y: auto;
    z-index: 1000; /* ensure it appears on top of other content */
    box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #414651;
}

    .suggestion-item:hover {
        background-color: #f0f0f0;
    }

/* Container for selected filters that have been applied */
.selected-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.selected-filter {
    background: var(--Gray-100, #F4F4F4);
    border: 1px solid var(--Gray-300, #D5D7DA);
    border-radius: 8px;
    padding: 4px 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--Gray-700, #414651);
    display: flex;
    align-items: center;
    gap: 4px;
}

    .selected-filter button {
        background: transparent;
        border: none;
        cursor: pointer;
        color: var(--Gray-700, #414651);
        font-weight: 600;
    }

/* Style for the Apply Filters button */
.apply-filters-button {
    padding: 8px 16px;
    background: var(--Primary, #007bff);
    border: 1px solid var(--Primary, #007bff);
    border-radius: 8px;
    color: #FFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ***************** End of New Filter Controls Section ***************** */

/* Score Table Wrapper */
.score-table {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 40px 0;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #E9EAEB;
    background: #FFF;
    box-shadow: 0px 1px 3px rgba(10, 13, 18, 0.1), 0px 1px 2px rgba(10, 13, 18, 0.06);
}

/* Table Container */
.table-container {
    width: 100%;
    overflow-x: auto;
    /* Round only the top corners here */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Table styling */
.table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    background: #FFF;
}

    .table thead tr {
        background: #FAFAFA;
    }

    .table thead th {
        border: 1px solid #E9EAEB;
        text-align: center;
        font-size: 12px;
        font-weight: 500;
        line-height: 18px;
        padding: 12px 16px;
        white-space: nowrap;
        color: #535862;
    }

    .table tbody tr {
        border-bottom: 1px solid #E9EAEB;
    }

        .table tbody tr:last-child {
            /* Remove bottom border on the last row so the footer sits directly below */
            border-bottom: none;
        }

    .table tbody td {
        text-align: center;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        padding: 12px 16px;
        color: #535862;
        white-space: nowrap;
    }

    /* Hover effect for table rows */
    .table tbody tr:hover {
        background-color: rgba(0, 0, 0, 0.03);
    }

/* Hero Banner */
.hero-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

    .hero-banner img {
        width: 100%;
        object-fit: cover;
        display: block;
    }

/* Pagination Footer attached to the table */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px; /* Adjust inner spacing as needed */
    border-top: 1px solid #E9EAEB; /* Divider line from the table */
    /* Round only the bottom corners */
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    background: #FFF;
}

    /* Page Info Text (Left Side) */
    .table-footer .pagination-info {
        color: var(--Gray-700, #414651);
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
    }

    /* Buttons Container (Right Side) */
    .table-footer .pagination-buttons {
        display: flex;
        gap: 8px;
    }

        /* Button Styling */
        .table-footer .pagination-buttons button {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 8px 14px;
            gap: 8px;
            border-radius: 8px;
            border: 1px solid var(--Gray-300, #D5D7DA);
            background: var(--White, #FFF);
            box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
            color: var(--Gray-700, #414651);
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            font-style: normal;
            font-weight: 600;
            line-height: 20px;
            cursor: pointer;
        }

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 16px; /* space between all child elements in .filter-buttons */
}

    /* Increase spacing between the check boxes themselves */
    .filter-buttons label {
        margin-left: 8px; /* optional extra spacing to separate the first checkbox from the buttons */
        display: flex;
        align-items: center;
        gap: 4px; /* small gap between the checkbox input and its text */
    }