* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow-y: auto;
}

body {
    background-color: #1e1e1e;
    color: #e0e0e0;
    position: relative;
}

/* Konten wrapper untuk memastikan scroll */
body::after {
    content: '';
    display: block;
    height: 200vh; /* Memastikan halaman dapat discroll */
}

/* Dashboard */
#dashboard {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg, #2a2a2a, #3a3a3a);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1002;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
}
#dashboard h1 {
    font-size: 20px;
    color: #e0e0e0;
    font-weight: 700;
}

/* Peta */
#map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

/* Message Box */
#messageInputContainer {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    height: 60px;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 1002;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border-radius: 25px;
    border: 1px solid #444;
}
#messageInput {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 20px 0 0 20px;
    background-color: #333;
    color: #e0e0e0;
    font-size: 16px;
    outline: none;
}
#messageInput::placeholder {
    color: #888;
    font-style: italic;
}
.send-button, .history-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.send-button:hover, .history-button:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

/* Pop-up Riwayat */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}
.popup-content {
    background: linear-gradient(145deg, #2a2a2a, #333);
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.popup-content h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #e0e0e0;
    text-align: center;
}
.popup-content ul {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 0 10px;
}
.popup-content ul li {
    padding: 12px;
    border-bottom: 1px solid #444;
    font-size: 16px;
    color: #e0e0e0;
    background-color: #333;
    margin-bottom: 5px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.popup-content ul li:hover {
    background-color: #3a3a3a;
}
.popup-content ul li:last-child {
    border-bottom: none;
}
.close-button {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.close-button:hover {
    background-color: #cc0000;
}