/* General Reset and Universal Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    /* background: linear-gradient(135deg, #6a11cb, #2575fc); /* Gradient background */
    background: #5ac5f7;        /* Choose a single color */
    display: flex;
    flex-direction: column;   /* Stack items vertically */
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-size: cover;
    color: white;
}

.login-container {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
    width: 350px;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.input-field {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    background-color: #f1f1f1;
    color: #333;
}

.input-field:focus {
    outline: none;
    border-color: #2575fc;
    background-color: #fff;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border-radius: 6px;
    border: none;
    background-color: #2575fc;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #6a11cb;
}

/* Error message styling */
.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 14px;
    display: block;
    text-align: center;
}

.forgot-password {
    color: #bbb;
    font-size: 14px;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

.forgot-password:hover {
    color: white;
}

.create-account {
    margin-top: 20px;
    font-size: 14px;
}

.create-account a {
    color: #2575fc;
    text-decoration: none;
}

.create-account a:hover {
    text-decoration: underline;
}

.no-users-message {
    background-color: #f0ad4e;
    /* Yellow background for better contrast */
    color: white;
    padding: 15px;
    font-weight: bold;
    border-radius: 6px;
    text-align: center;
}

.admin-menu {
    background-color: #343a40;
    padding: 15px;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
    display: block !important;     /* Force visibility */
}

.admin-menu h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.admin-menu ul {
    list-style-type: none;
    padding: 0;
}

.admin-menu ul li {
    margin: 10px 0;
}

.admin-menu ul li a {
    color: #2575fc;
    /* Link color */
    text-decoration: none;
    font-size: 18px;
}

.admin-menu ul li a:hover {
    text-decoration: underline;
}

/* Make the admin menu only visible to admins */
.admin-menu {
    display: none;
    /* Hidden by default */
}

.admin-menu.visible {
    display: block;
    /* Visible when admin */
}

/* Make the admin menu responsive */
@media (max-width: 768px) {
    .admin-menu {
        font-size: 14px;
        /* Smaller font size for smaller screens */
    }

    .admin-menu ul {
        padding-left: 20px;
        /* Add some space for the menu items */
    }
}

/* Add spacing and make the elements block-level */
#competition,
#competitionDetails,
#entriesTable {
    display: block;
    margin-bottom: 20px;
    /* Add spacing between elements */
}

/* Optional: You can also center the elements for better presentation */
#competition,
#competitionDetails {
    width: 100%;
    max-width: 400px;
    /* Set a max-width to prevent it from stretching too wide */
    margin: 10px auto;
}

/* Ensure the table takes up full width */
#entriesTable {
    width: 100% !important;
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Clear any conflicts with table elements */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}