/* styles.css - Improved styling */
body {
    font-family: 'Poppins', sans-serif;
    background: url('background.jpg') no-repeat center center fixed; /* Fixed background */
    background-size: cover;
    margin: 0;
    padding: 0;
    text-align: center;
}

h1 {
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    margin: 0 15px; /* Added spacing between links */
}

a:hover {
    color: #0056b3;
}

nav {
    margin-bottom: 20px;
}

nav a {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s;
}

nav a:hover {
    background: rgba(0, 0, 0, 0.9);
}

form {
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8); /* Slight transparency */
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 300px; /* Adjusted width */
    display: flex;
    flex-direction: column;
    align-items: center;
}

input, select, button {
    display: block;
    width: calc(100% - 20px); /* Fix alignment issue */
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures proper width calculation */
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    padding: 12px;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

li {
    margin: 10px;
    padding: 15px;
    width: 300px; /* Fixed tile width */
    height: 200px; /* Set a height for uniformity */
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5); /* Dark semi-transparent fallback */
    background-image: var(--server-background);
    background-size: cover !important;
    background-position: center !important;
}

.server-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.server-card {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    height: 250px;
    text-align: center;
    color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.server-card .buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.edit-btn, .delete-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.edit-btn {
    background-color: #007bff;
    color: white;
}

.delete-btn {
    background-color: #ff4444;
    color: white;
}

.edit-btn:hover {
    background-color: #0056b3;
}

.delete-btn:hover {
    background-color: #cc0000;
}