/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

header h1 {
    color: #bb86fc;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

nav a:hover {
    color: #bb86fc;
}

main {
    margin: 20px 0;
}

section {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

section h2 {
    color: #bb86fc;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.user-info p {
    margin: 5px 0;
}

.add-server form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.add-server label {
    font-weight: bold;
}

.add-server input {
    padding: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #2d2d2d;
    color: #e0e0e0;
}

.add-server input:focus {
    outline: none;
    border-color: #bb86fc;
    box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.2);
}

.add-server .btn {
    grid-column: 1 / -1;
    justify-self: start;
}

button {
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #bb86fc;
    color: #121212;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #9c66f5;
}

.btn.delete {
    background-color: #cf6679;
}

.btn.delete:hover {
    background-color: #b5475a;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background-color: #2d2d2d;
    font-weight: bold;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.online {
    background-color: #03dac6;
    color: #121212;
}

.status-badge.offline {
    background-color: #cf6679;
    color: #121212;
}

.error, .success {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.error {
    background-color: #cf6679;
    color: #121212;
}

.success {
    background-color: #03dac6;
    color: #121212;
}

footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    nav a {
        margin: 5px 0;
    }
}