* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a0b2e, #2e1a47);
    color: #e0d4ff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    background: #3c1f66;
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

nav a {
    color: #e0d4ff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #b19cd9;
}

nav .logout-btn {
    margin-left: auto;
}

.container {
    max-width: 1200px;
    margin: 100px auto 20px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.weapon-card {
    background: #2e1a47;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.weapon-card h5 {
    color: #b19cd9;
    margin-bottom: 10px;
    font-weight: bold;
}

.skin-image {
    margin: 0 auto;
    display: block;
    width: 50%;
    max-width: 150px;
}

.weapon-form, .knife-form {
    margin-top: 10px;
}

.weapon-form select, .knife-form select {
    width: 100%;
    padding: 8px;
    background: #3c1f66;
    color: #e0d4ff;
    border: 1px solid #6a1b9a;
    border-radius: 5px;
    font-size: 14px;
}

.weapon-form select:focus, .knife-form select:focus {
    outline: none;
    border-color: #b19cd9;
}

.btn {
    display: inline-block;
    margin: 5px 0;
    padding: 8px 16px;
    background: #6a1b9a;
    color: #e0d4ff;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    min-width: 100px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

.btn:hover {
    background-color: #8e24aa;
}

.btn-danger {
    background: #d32f2f;
}

.btn-danger:hover {
    background: #b71c1c;
}

.btn-success {
    background: #4caf50;
}

.btn-success:hover {
    background: #388e3c;
}

.text-danger {
    color: #ff0000;
    font-size: 12px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

.modal.show {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s linear 0s, opacity 0.3s ease;
}

.modal-content {
    background: #2e1a47;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    min-width: 300px;
    overflow: auto;
    box-sizing: border-box;
}

.modal-header h5 {
    color: #b19cd9;
    margin-bottom: 15px;
}

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

.modal-body label {
    color: #e0d4ff;
    font-size: 14px;
}

.modal-body select, .modal-body input {
    width: 100%;
    padding: 8px;
    background: #3c1f66;
    color: #e0d4ff;
    border: 1px solid #6a1b9a;
    border-radius: 5px;
    font-size: 14px;
}

.modal-body select:focus, .modal-body input:focus {
    outline: none;
    border-color: #b19cd9;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.server-card {
    background: #2e1a47;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.server-card:hover {
    transform: translateY(-5px);
}

.server-card h2 {
    color: #b19cd9;
    margin-bottom: 10px;
}

.server-status {
    font-size: 16px;
    margin: 10px 0;
}

.status-online {
    color: #00ff00;
}

.status-offline {
    color: #ff0000;
}

.server-info {
    font-size: 14px;
    color: #d3c4ff;
    margin: 5px 0;
}

.server-ip { 
    font-size: 14px;
    color: #b19cd9;
    cursor: pointer;
    padding: 8px;
    border: 1px solid #6a1b9a;
    border-radius: 5px;
    margin: 10px 0;
    transition: background 0.3s, color 0.3s;
}

.server-ip:hover {
    background: #6a1b9a;
    color: #e0d4ff;
}

.server-ip.copied {
    background: #4caf50;
    color: #fff;
}

.connect-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #6a1b9a;
    color: #e0d4ff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.connect-btn:hover {
    background: #8e24aa;
}

.connect-btn.disabled {
    background: #555;
    cursor: not-allowed;
}

.connect-btn.disabled:hover {
    background: #555;
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    nav .logout-btn {
        margin-left: 0;
    }

    .container {
        margin-top: 150px;
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 80px;
    }
}