/* ✅ General Styles */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #d7e6f7; Light blue background
    margin: 0;
    padding: 0;
}

/* ✅ Table Styles */
.table-container {
    overflow-x: auto;
    display: flex;
    justify-content: center; /* Center the table */
    align-items: center;
    max-width: 100%;
    width: 100%;
}

.table {
    width: auto; /* Prevents unnecessary full-width stretching */
    max-width: 1200px;
    border-collapse: collapse;
    margin: 15px auto; /* Centers table horizontally */
    background: #eef5ff; /* Light blue table background */
    border-radius: 8px;
    overflow: hidden;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
    white-space: nowrap;
}

/* ✅ Header Row (th) Styling */
.table th {
    background-color: #007bff; /* Blue background */
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

/* ✅ Alternate Row Colors */
.table tr:nth-child(even) {
    background-color: #f2f8ff; /* Lighter blue for contrast */
}

.table tr:hover {
    background-color: #e0ebff; /* Hover effect */
}

/* ✅ Center Table Inside Containers */
.table-container table {
    margin-left: auto;
    margin-right: auto;
}

/* ✅ Container Styles */
.container {
    max-width: 100%;
    margin: 0px auto;
    background: #d7e6f7; /* Light blue background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow-x: auto;
}

/* ✅ Center the Login Form */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* ✅ Styled Login Box */
.login-box {
    width: 500px; /* Fixed width */
    padding: 20px;
    background-color: #d7e6f7; /* Light background */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: left; /* Align text to left for better readability */
}

/* ✅ Align Email & Password in One Row */
.input-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ✅ Align Label and Input */
.input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.input-group label {
    width: 100px; /* Fixed label width. */
    font-weight: bold;
}

.input-group input {
    flex-grow: 1;
    max-width: 250px; /* Ensure input doesn't stretch full width */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* ✅ Remember Me Section */
.remember-me {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.remember-me label {
    margin-left: 5px;
}

/* ✅ Login Button */
.login-button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.login-button:hover {
    background-color: #0056b3;
}

/* ✅ Register Link */
.register-link {
    text-align: center;
    margin-top: 10px;
}

/* ✅ Responsive Design for Login */
@media screen and (max-width: 768px) {
    .login-box {
        width: 90%; /* Adjust width for smaller screens */
        padding: 15px;
    }

    .input-group label {
        width: 80px; /* Reduce label width for small screens */
    }

    .input-group input {
        max-width: 100%; /* Allow input to fit smaller screens */
    }
}

/* ✅ Navbar */
.navbar {
    background-color: #007bff !important;
    padding: 12px 15px;
}

.navbar a {
    color: white !important;
    font-weight: bold;
    text-decoration: none;
}

.navbar a:hover {
    color: #d4e4ff !important;
}

/* ✅ Responsive Centering for Table */
@media screen and (max-width: 768px) {
    .table-container {
        justify-content: center;
        display: flex;
        width: 100%;
    }

    .table {
        width: 100%;
        max-width: none;
    }
}

/* ✅ Button Styles */
.btn {
    display: inline-block;
    padding: 5px 8px;
    font-size: 11px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    color: white;
    border: none;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #a71d2a;
}

/* ✅ Pagination Styling */
/* ✅ Pagination Styling - Keep in One Row */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap; /* Prevents wrapping */
    margin-top: 20px;
    list-style: none;
    padding: 0;
    gap: 5px; /* Adds spacing between items */
    overflow-x: auto; /* Prevents items from breaking onto the next row */
    white-space: nowrap; /* Ensures all numbers stay in a single line */
}

/* ✅ Style for Each Page Item */
.pagination .page-item {
    display: inline-block; /* Ensures inline alignment */
    margin: 0; /* Remove unnecessary margins */
}

/* ✅ Style for Page Links */
.pagination .page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #007bff;
    background-color: #fff;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* ✅ Hover & Active State */
.pagination .page-link:hover {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .active .page-link {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ✅ Ensure First & Last Buttons Stay Aligned */
.pagination .page-item:first-child .page-link::before,
.pagination .page-item:last-child .page-link::after {
    display: none;
}

/* ✅ Responsive Fix for Small Screens */
@media screen and (max-width: 768px) {
    .pagination {
        flex-wrap: nowrap; /* Prevents wrapping */
        overflow-x: auto; /* Allows scrolling if too many page numbers */
        justify-content: flex-start; /* Aligns pagination correctly */
        padding: 10px;
    }

    .pagination .page-link {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 35px;
    }
}

/* ✅ Form Styles */
form {
    margin-bottom: 20px;
}

label {
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
select {
    width: 100%;
    padding: 5px;
    margin: 5px 0;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 15px;
}

/* ✅ Center and Reduce Form Width */
.registration-form {
    max-width: 500px; /* Adjust width as needed */
    margin: 0 auto; /* Centers the form */
    padding: 20px;
    background: #f8f9fa; /* Light background */
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.registration-form-1400 {
    max-width: 1400px; /* Adjust width as needed */
    margin: 0 auto; /* Centers the form */
    padding: 20px;
    background: #f8f9fa; /* Light background */
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* ✅ Ensure Form Fields are Full Width */
.registration-form .form-group {
    margin-bottom: 15px;
}

.registration-form input,
.registration-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

/* ✅ Center Button */
.registration-form .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
}

/* ✅ Responsive Design for Registration Form */
@media screen and (max-width: 768px) {
    .registration-form {
        width: 90%; /* Adjust width for small screens */
        padding: 15px;
    }
}

/* Link Row Styles */
.link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.link-row > div {
    flex: 1;
}

.forgot-password {
    text-align: left;
}

.register-link {
    text-align: right;
}

#fixtures_table_container table th {
    white-space: nowrap;
}
#fixtures_table_container {
    transition: all 0.3s ease;
}
