/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Container for the table */
.table-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto; /* Center the table vertically and horizontally */
    width: 100%;
}

/* Table Styles */
.members-table {
    width: 100%; /* Make the table take up full available width */
    max-width: 1300px; /* Max width for the table */
    margin: 10px auto; /* Center the table */
    border-collapse: collapse; /* Remove cell gaps */
    table-layout: auto; /* Auto layout so columns adjust to content */
}

/* Table Headers */
.members-table th,
.members-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
    word-wrap: break-word; /* Break long words to fit in cell */
}

/* Table header background color */
.members-table thead th {
    background-color: #00A9E0;
    color: white;
    font-weight: bold;
}

/* Switch (Status Toggle) */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #00A9E0;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Delete Button as Image */
.remove-btn {
    background: url('../images/delete_button.png') no-repeat center center;
    background-size: contain; /* Resize to fit the container */
    width: 30px; /* Adjust the width */
    height: 30px; /* Adjust the height */
    border: none; /* Remove border */
    cursor: pointer;
    display: inline-block;
}

.remove-btn:hover {
    opacity: 0.8; /* Add hover effect */
    transform: scale(1.1); /* Slight zoom on hover */
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: space-between; /* Space Back and Next buttons */
    align-items: center;
    margin-top: 15px;
    width: 98%; /* Match the width of the table */
    max-width: 1300px; /* Ensure it doesn't exceed the table's max width */
    padding: 0 20px; /* Padding for proper spacing */
    box-sizing: border-box; /* Include padding in width calculation */
}

.pagination .back-btn,
.pagination .next-btn {
    background-color: #00A9E0;
    color: white;
    padding: 10px 20px; /* Padding for clickable area */
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: block; /* Ensure the button spans its container */
    text-align: center;
    width: fit-content; /* Adjust to content width */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional visual enhancement */
}

.pagination .back-btn:hover,
.pagination .next-btn:hover {
    background-color: #007bb5;
}

.pagination .back-btn.disabled,
.pagination .next-btn.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.pagination .page-indicator {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: center;
    flex-grow: 1; /* Allow the indicator to take center space */
    margin: 0 10px; /* Add spacing between buttons */
}

/* Responsive Design */
@media (max-width: 700px) {
    .pagination {
        flex-direction: column; /* Stack buttons vertically on small screens */
        align-items: center;
        padding: 10px 0; /* Adjust padding */
    }

    .pagination .back-btn,
    .pagination .next-btn {
        width: 100%; /* Full-width buttons */
        margin: 5px 0; /* Add spacing between buttons */
    }

    .pagination .page-indicator {
        margin: 10px 0; /* Add spacing on smaller screens */
    }
}

/* Edit Button */
.edit-btn {
    padding: 8px 16px;
    background-color: #42A5F5; /* Blue color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.edit-btn:hover {
    background-color: #1e88e5; /* Darker blue on hover */
}

.edit-btn:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(66, 165, 245, 0.5); /* Blue glow on focus */
}

/* Assign Coach Button */
.assign-btn {
    padding: 8px 16px;
    background-color: #00A9E0; /* Blue color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.assign-btn:hover {
    background-color: #007bb5; /* Darker blue on hover */
}

.assign-btn:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 169, 224, 0.5); /* Blue glow on focus */
}
