:root {
    --background-color: #1a1a1a;
    --text-color: #e0e0e0;
    --primary-color: #0080FF; /* Pterodactyl purple */
    --secondary-color: #333;
    --border-color: #555;
    --input-bg-color: #2a2a2a;
    --button-hover-bg: #68C9FF;
    --success-color: #28a745;
    --error-color: #dc3545;
    --whatsapp-color: #25D366;
    --whatsapp-hover-color: #1DA851;
}

/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    position: relative;
    /* Memberi ruang di bawah untuk tombol WhatsApp */
    padding-bottom: 80px; 
}

/* Marquee Container */
.marquee-container {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

marquee {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

/* Main Container */
.container {
    background-color: var(--secondary-color);
    padding: 30px; /* Sedikit kurang pada padding untuk mobile */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 500px;
    text-align: center;
    margin-top: 60px; /* Ruang untuk marquee */
    margin-bottom: 20px; /* Ruang di atas tombol WhatsApp */
}

h1 {
    color: var(--primary-color);
    margin-bottom: 25px; /* Sedikit kurang margin */
    font-size: 2em; /* Lebih kecil untuk mobile */
}

/* Form Elements */
.form-group {
    margin-bottom: 18px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: var(--text-color);
    font-size: 0.95em;
}

input[type="text"],
input[type="password"],
select {
    width: 100%; /* Pastikan 100% untuk responsivitas */
    padding: 10px; /* Sedikit kurang padding */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--input-bg-color);
    color: var(--text-color);
    font-size: 1em;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.3);
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px; /* Sedikit kurang padding */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em; /* Lebih kecil untuk mobile */
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%; /* Pastikan tombol mengambil lebar penuh */
    margin-top: 10px; /* Tambah margin di atas tombol */
}

button:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-2px);
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* Message & Link Sections */
.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    display: none;
    font-size: 0.95em; /* Lebih kecil */
}

.message.success {
    background-color: var(--success-color);
    color: white;
}

.message.error {
    background-color: var(--error-color);
    color: white;
}

#serverLink {
    margin-top: 15px;
    display: none;
}

#serverLink button {
    background-color: var(--success-color);
    margin-right: 0; /* Hapus margin right */
    margin-bottom: 10px; /* Tambah margin bawah jika ada tombol lain */
}

#serverLink button:hover {
    background-color: #218838;
}

#copyLogsBtn {
    background-color: #007bff;
    margin-top: 10px;
    display: none;
}

#copyLogsBtn:hover {
    background-color: #0056b3;
}

textarea#logOutput {
    width: 100%; /* Pastikan 100% */
    height: 120px; /* Lebih kecil */
    margin-top: 15px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--input-bg-color);
    color: var(--text-color);
    font-family: monospace;
    font-size: 0.85em; /* Lebih kecil */
    resize: vertical;
    display: none;
}

/* Login Popup */
#loginPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px; /* Padding untuk responsivitas */
}

#loginPopup.active {
    display: flex;
}

.login-content {
    background-color: var(--secondary-color);
    padding: 25px; /* Sedikit kurang padding */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%; /* Lebar penuh pada mobile */
    max-width: 350px;
    position: relative;
}

.login-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.6em; /* Lebih kecil */
}

.login-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--input-bg-color);
    color: var(--text-color);
    font-size: 1em;
    box-sizing: border-box;
}

.login-content button {
    width: 100%;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8em;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--error-color);
}

/* WhatsApp Button (Circle) */
#whatsappButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--whatsapp-color);
    color: white;
    width: 50px; /* Ukuran lingkaran */
    height: 50px; /* Ukuran lingkaran */
    border-radius: 50%; /* Bentuk lingkaran sempurna */
    text-decoration: none;
    font-size: 1.8em; /* Ukuran ikon */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 990; /* Pastikan di atas elemen lain tapi di bawah popup */
}

#whatsappButton:hover {
    background-color: var(--whatsapp-hover-color);
    transform: translateY(-3px) scale(1.05); /* Sedikit membesar saat hover */
}

/* Media Queries for Responsiveness */
@media (max-width: 600px) {
    body {
        padding: 10px;
        padding-bottom: 70px; /* Sesuaikan padding bawah untuk mobile */
    }

    .container {
        margin-top: 55px; /* Sesuaikan margin untuk marquee */
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    button {
        padding: 10px 15px;
        font-size: 0.95em;
    }

    .message {
        padding: 10px;
        font-size: 0.9em;
    }

    #whatsappButton {
        width: 45px;
        height: 45px;
        font-size: 1.6em;
        bottom: 15px;
        right: 15px;
    }

    .login-content {
        padding: 20px;
    }
    .login-content h2 {
        font-size: 1.5em;
    }
}