/* Container Styling */
.container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #007bff;
    margin-top: 40px;
}

/* Tabs for Membership Types */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.tab-btn:hover, .tab-btn.active {
    background-color: #0056b3;
}
/* ✅ Right Align the Dropdown */
.sort-container {
    display: flex;
    justify-content: flex-end; /* Moves it to the right */
    margin-bottom: 15px; /* Adds spacing below */
}

/* ✅ Style the Label & Select */
.sort-container label {
    font-size: 16px;
    margin-right: 8px;
    font-weight: bold;
}

.sort-container select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Table Styling */
.registrants-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.registrants-table th, .registrants-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.registrants-table th {
    background-color: #007bff;
    color: white;
}

.registrants-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.registrants-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Clickable Names */
.registrants-table a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.registrants-table a:hover {
    text-decoration: underline;
}

/* Profile Modal */
.profile-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 1000;
}

.profile-content img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        gap: 10px;
    }
    
      /* Table compact layout */
    .registrants-table th, 
    .registrants-table td {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;    /* Prevent text wrapping */
    }

    .tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .registrants-table td:first-child {
        max-width: 120px;
        white-space: normal;    /* Allow wrapping only for Name */
    }
}
