/* Table Styling */
.attendees-events-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.attendees-events-table th, 
.attendees-events-table td {
    padding: 12px 15px;
    text-align: left;
    color: #0f1154;
    border: 1px solid #3a3c8b;
}

.attendees-events-table th {
    background-color: #0f1154;
    color: #fff !important;
    font-weight: bold;
}

.attendees-events-table tr:hover {
    background-color: #f9f9f9;
}

/* Filter Form Styling */
#attendeesProductsTable {
    overflow: auto;
}

.attendees-product-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
}

.attendees-product-filter label {
    font-size: 14px;
    font-weight: bold;
}

#attendeesFilterForm ::placeholder {
    color: #0056b3;
}

#attendeesFilterForm select {
    padding: 8px 10px !important;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    width: 14%;
    color: #0056b3;
    background-color: #eff9ff !important;
    border: 1px solid #78b0eb;
}

.attendees-product-filter #attendeesFilterForm input {
    padding: 8px 10px !important;
    font-size: 12px;
    width: 14%;
    font-weight: 700;
    border-radius: 4px;
    background-color: #eff9ff !important;
    border: 1px solid #78b0eb;
    color: #0056b3;
}

#attendeesFilterForm #attendeesFromYear, 
#attendeesFilterForm #attendeesEndYear, 
#attendeesFilterForm #attendeesFromMonth, 
#attendeesFilterForm #attendeesEndMonth {
    width: 12% !important;
}

#attendeesProductsTable tr:nth-child(odd) {
    background-color: #eff9ff !important;
}

#attendeesProductsTable tr:nth-child(even) {
    background-color: #ffffff !important;
}

#attendeesFilter {
    color: #fff;
    background-color: #0056b3;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 600;
}

#attendeesFilter:hover {
    background-color: #0f1154;
}

/* Pagination Styling */
.attendees-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.attendees-pagination a {
    padding: 8px 16px;
    margin: 0 5px;
    text-decoration: none;
    background-color: #0f1154;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.attendees-pagination a:hover {
    background-color: #0056b3;
}

.attendees-pagination .disabled {
    background-color: #f0f0f0;
    color: #ccc;
    pointer-events: none;
}

.attendees-pagination .active {
    background-color: #0056b3;
    font-weight: bold;
    padding: 8px 16px; 
    color: white;
}

.attendees-pagination .attendees-ellipsis {
    cursor: default;
}

.attendees-pagination .attendees-page-number {
    display: inline-block;
    margin: 0 5px;
}

#attendeesResetBtn {
    background-color: #2EA3F2;
    color: white;
    padding: 10px 10px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
}

.total-items {
    color: #0056b3;
    font-weight: 600;
}

/* Selected Filter Dropdown */
#attendeesFilterForm select.selected {
    background-color: #7bbbb8 !important;
}

/* Mobile responsive table */
@media screen and (max-width: 768px) {
    .attendees-events-table, 
    .attendees-events-table th, 
    .attendees-events-table td {
        font-size: 12px;
    }

    .attendees-product-filter input {
        width: 100%;
        padding: 10px;
    }

    .attendees-product-filter #attendeesFilterForm input, 
    #attendeesFilterForm select {
        width: 32%;
        font-size: 10px;
    }
    
    #attendeesFilterForm #attendeesFromYear, 
#attendeesFilterForm #attendeesEndYear, 
#attendeesFilterForm #attendeesFromMonth, 
#attendeesFilterForm #attendeesEndMonth 
 {
        width: 24% !important;
        font-size: 10px;
        margin-top: 2px;
    }
    
    #attendeesResetBtn {
        margin-top: 5px;
        padding: 5px;
    }
    .attendees-events-table td{
        padding: 5px !important;
    }
}