/* Styles/galaxy.css */
:root {
    --bg-deep: #0b0d12;
    --bg-panel: #161b22;
    --border: #30363d;
    --text-main: #c9d1d9;
    --text-dim: #8b949e;
    --accent: #58a6ff;
    --accent-green: #238636;
    --accent-red: #da3633;
}

body {
    margin: 0;
    overflow: hidden; 
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    display: flex;
}

/* --- Layout Skeleton --- */
#app-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative; /* Ensure it contains absolute children */
}

#map-container {
    flex: 1;
    position: relative;
    background: black;
    overflow: hidden;
}

/* --- Side Panel Wrapper --- */
#right-panel {
    width: 380px;
    display: flex;
    flex-direction: column; /* Stack Header and Content vertically */
    transition: transform 0.3s ease;
    z-index: 10; /* Ensure it sits above map */
    height: 100%;
    position: absolute; /* Changed for consistency */
    top: 10px;
    right: 10px;
    height: calc(100vh - 20px);
}

#right-panel.hidden {
    display: none; /* simple hiding */
}

/* --- Overlay Controls (Map Buttons) --- */
.overlay-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(22, 27, 34, 0.8);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    backdrop-filter: blur(4px);
    pointer-events: auto; /* Ensure clickable */
}

button {
    background: var(--accent-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}
button:hover { background: #2ea043; }

/* --- Global Utilities --- */
.clickable { cursor: pointer; transition: opacity 0.2s; }
.clickable:hover { opacity: 0.8; }

/* Modal Overlay Base */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}
.modal-overlay.hidden { display: none; }

.modal-content {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    background: transparent;
    color: var(--text-dim);
    font-size: 1.5em;
    padding: 0;
    cursor: pointer;
}
.close-modal:hover { color: white; }

/* --- Custom Scrollbar Styling --- */
/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #30363d #0d1117;
}

/* For Webkit-based browsers (Chrome, Safari, etc.) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0d1117; /* Same as the deep background */
}

::-webkit-scrollbar-thumb {
    background-color: #30363d; /* The border color */
    border-radius: 5px;
    border: 2px solid #0d1117; /* Padding around thumb */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #484f58; /* A slightly lighter grey */
}