/* General Table Styling */
.gym-table {
    width: 100%; /* Full width for the table */
    margin: 30px auto; /* Center the table horizontally */
    border-collapse: collapse; /* Remove space between borders */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Add shadow for better visibility */
    border-radius: 10px; /* Rounded corners for the table */
    overflow-x: auto; /* Enable horizontal scrolling if needed */
}

/* Table Header */
.gym-table thead th {
    background-color: #00A9E0; /* Header background color */
    color: white; /* White text color */
    font-weight: bold; /* Bold text */
    padding: 15px; /* Add padding for better spacing */
    text-align: center; /* Center the header text */
    border-bottom: 2px solid #ddd; /* Border below header */
}

/* Table Body Cells */
.gym-table tbody td {
    padding: 15px; /* Add padding for better spacing */
    border-bottom: 1px solid #ddd; /* Border below table rows */
    text-align: center; /* Center the text */
    font-size: 14px; /* Smaller text for readability */
}

/* Zebra Striping (Alternating Row Colors) */
.gym-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.gym-table tr:hover {
    background-color: #f4f4f4; /* Highlight row on hover */
}

/* Edit and Delete Buttons */
.edit-btn, .remove-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px; /* Rounded buttons */
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Edit Button */
.edit-btn {
    background-color: #7d6cf9; /* Purple background for edit */
    color: white;
}

.edit-btn:hover {
    background-color: #6a4dd3;
    transform: scale(1.05);
}

/* Delete Button */
.remove-btn {
    background-color: #b36464; /* Red background for delete */
    color: white;
}

.remove-btn:hover {
    background-color: #a44e4e;
    transform: scale(1.05);
}

/* Add Gym Button */
.add-btn {
    padding: 12px 24px;
    background-color: #28a745; /* Green background for adding gyms */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.add-btn:hover {
    background-color: #218838;
    transform: scale(1.05);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px auto;
    width: 100%;
    max-width: 1000px;
    position: relative;
    padding: 0 25px;
}

.pagination .back-btn {
    background-color: #00A9E0;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

.pagination .next-btn {
    background-color: #00A9E0;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

.pagination .back-btn:hover,
.pagination .next-btn:hover {
    background-color: #007bb5;
}

.pagination .current-page {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
    flex: 1;
    white-space: nowrap;
}

.pagination .disabled {
    color: white;
    cursor: not-allowed;
    background-color: #ccc;
}

/* Modal Content */
.modal-content {
    width: 50%;
    max-width: 600px;
    margin: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Modal Header */
.modal-header {
    padding: 20px;
    background-color: #00A9E0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Modal Body */
.modal-body {
    padding: 25px;
    display: grid;
    gap: 20px;
}

/* Input Fields */
.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="number"],
.modal-body input[type="hidden"] {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

.modal-body input:focus {
    border-color: #00A9E0;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #ddd;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cancel-btn {
    background-color: #ccc;
    color: #000;
}

.cancel-btn:hover {
    background-color: #bbb;
}

.save-btn {
    background-color: #00A9E0;
    color: white;
}

.save-btn:hover {
    background-color: #007bb5;
}

/* Close Button */
.modal-header .close {
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

/* General Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.4);
}
