@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
    background-color: #0d0d0d;
    color: #fff;
    font-family: 'Orbitron', sans-serif, fantasy;
    margin: 0;
    padding: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    background-image: url('./pictures/bg2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

h1 {
    text-align: center;
    font-family: 'Copperplate', sans-serif;
    font-size: 5.5em;
    letter-spacing: 1.8em;
    color: #ff9800;
    text-shadow: 3px 3px 10px rgba(255, 152, 0, 0.8);
    margin-bottom: 200px;
}

h2 {
    color: #ff9800;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

h3 {
    color: #ff9800;
    position: relative;
    padding-bottom: 10px;
    text-align: left;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #ff9800;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.8);
}

select, button, input {
    margin: 5px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px #666;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    font-family: 'Orbitron', sans-serif;
}

select, input[type="number"], input[type="text"] {
    background-color: rgba(33, 33, 33, 0.8);
    color: #fff;
}

button {
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.6);
}

button:active {
    box-shadow: 0 2px #666;
    transform: translateY(2px);
}

button.dark-red {
    background-color: #a33;
    color: #fff;
}

button.blue-green {
    background-color: #4efccb;
    color: #fff;
}

button.blue {
    background-color: #2196F3;
    color: #fff;
}

button.purple {
    background-color: #eb5bf5;
    color: #fff;
}

input[type="number"], input[type="text"] {
    width: 100%; 
    box-sizing: border-box; 
}

#button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

input.location-input {
    width: 150px; /* Width for location input */
}

#controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
}

#controls div {
    flex: 1;
    text-align: center;
}

#emitter-name-container {
    text-align: center;
    margin-bottom: 20px;
}

#emitter-name-container div {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

#working-csv-container {
    margin-top: 20px;
}

#working-csv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#working-csv-title {
    flex: 1;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
}

#working-csv-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

#working-csv-preview {
    background-color: rgba(33, 33, 33, 0.8);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    max-height: 400px; /* Set a maximum height to the preview */
    overflow-y: auto; /* Enable vertical scrolling */
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th, td {
    border: 1px solid #555;
    padding: 8px;
    text-align: left;
    overflow: hidden;
}

th {
    background-color: #555;
}

tr.selected {
    background-color: #666;
}

label {
    display: inline-block;
    margin-right: 10px;
}

.custom-div-icon {
    display: flex;
    align-items: center;
}

.custom-div-icon img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.custom-div-icon span {
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
}

.large-green-button {
    display: block;
    width: 200px;
    margin: 20px auto;
    padding: 10px;
    background-color: #3dfc03;
    color: white;
    font-size: 18px;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Additional styles moved from main.html */
#map {
    display: block; /* Ensure map is visible by default */
    height: 800px;
    width: 100%;
    display: block;
    margin-bottom: 20px;
}

#map-placeholder {
    height: 800px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 13, 13, 0.8);
    color: #ff9800;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 10px #ff9800;
    cursor: pointer;
    margin-bottom: 20px;
}

/* Modal styles */
#loginModal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

#loginModalContent {
    background-color: #333;
    color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border-radius: 10px;
}

#loginModalContent h2 {
    font-size: 1.5em;
    margin: 0;
    font-weight: bold;
}

#loginModalContent h3 {
    margin-top: 10px;
    font-size: 1.2em;
}

#loginModalContent input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#loginModalContent button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#loginModalContent button:hover {
    background-color: #45a049;
}

/* Loading overlay styles */
#loadingOverlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#loadingSpinner {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #fc7200;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loadingMessage {
    color: #fff;
    font-size: 1.5em;
    margin-top: 20px;
}

#messageCounter {
    color: #fff;
    font-size: 1.2em;
    margin-top: 10px;
}

#button-container {
    display: flex; /* Use flexbox for horizontal alignment */
    justify-content: center; /* Center the buttons */
    align-items: center; /* Vertically center the buttons */
    margin-bottom: 20px; /* Add some space below the button container */
}

/* General Button Styles */
.large-green-button {
    margin: 0 10px; /* Add horizontal margin between buttons */
    display: block; /* Ensure the buttons are displayed as block elements */
}

/* Specific Button Styles */
.pause-button {
    background-color: #DAA520; /* Burnt yellow color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
    margin: 0 10px; /* Add horizontal margin between buttons */
}

.pause-button:hover {
    background-color: #B8860B; /* Darker shade for hover effect */
}

.play-button {
    background-color: #0cf53b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
    margin: 0 10px; /* Add horizontal margin between buttons */
}

.play-button:hover {
    background-color: #0da12a; 
}

.stop-button {
    background-color: #FF0000; /* Red color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
    margin: 0 10px; /* Add horizontal margin between buttons */
}
/* New Layout Styles */
#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 13, 13, 0.95);
    padding: 10px;
    display: flex;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

#left-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 300px;
    height: calc(100% - 60px);
    background-color: rgba(13, 13, 13, 0.95);
    padding: 10px;
    overflow-y: auto;
    z-index: 998;
    box-shadow: 2px 0 5px rgba(0,0,0,0.7);
}

#map {
    display: block; /* Ensure map is visible by default */
    position: absolute;
    top: 60px;
    left: 300px;
    width: calc(100% - 300px);
    height: calc(100% - 60px);
    margin: 0;
}

/* Compact Emitter Controls */
#emitter-name-container div {
    display: block; /* Stack in a single column */
    margin: 5px 0; /* Reduce vertical spacing */
    font-size: 0.85em; /* Smaller font size */
}

#emitter-name-container label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.85em; /* Consistent smaller font */
}

/* Ensure the sidebar content fits and scrolls if needed */
#left-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 300px;
    height: calc(100% - 60px);
    background-color: rgba(13, 13, 13, 0.95);
    padding: 10px;
    overflow-y: auto; /* Ensure content can scroll */
    overflow-x: hidden; /* Prevent horizontal overflow */
    box-shadow: 2px 0 5px rgba(0,0,0,0.7);
}

/* Single-column emitter controls with responsive width */
#emitter-name-container div {
    display: block;
    margin: 5px 0;
    font-size: 0.85em;
    width: 100%; /* Ensure full width */
    box-sizing: border-box;
}

#emitter-name-container label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Make sure it fits */
    box-sizing: border-box;
    font-size: 0.85em;
    flex-wrap: wrap; /* Allow wrapping if necessary */
}

#emitter-name-container input[type="number"] {
    width: 60px; /* Small width for count input */
    margin-left: auto; /* Push to the right */
}

/* Collapsible Icon Bar */
#icon-bar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 50px;
    height: calc(100% - 60px);
    background-color: rgba(13, 13, 13, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.7);
    z-index: 998;
}

.icon-button {
    background: none;
    color: #fff;
    border: none;
    margin: 10px 0;
    font-size: 1.5em;
    cursor: pointer;
}

#slide-out-panel {
    position: fixed;
    top: 60px;
    left: 50px;
    width: 300px;
    height: calc(100% - 60px);
    background-color: rgba(13, 13, 13, 0.95);
    padding: 10px;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.7);
    z-index: 999;
}

#map {
    border: 0px solid red !important;
    background-color: rgba(255, 0, 0, 0.1) !important;
}

#map {
    min-width: 800px !important;
    min-height: 600px !important;
}

html, body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
}

#map {
    width: 100vw !important;
    height: 100vh !important;
}

#map-wrapper {
    width: 100% !important;
    height: 100% !important;
}

html {
    background-color: rgba(255, 0, 0, 0.1) !important;
    border: 0px solid red !important;
}

body {
    background-color: rgba(0, 255, 0, 0.1) !important;
    border: 0px solid green !important;
}

#map-wrapper {
    background-color: rgba(0, 0, 255, 0.1) !;
    border: 0px solid blue !;
}

#map {
    background-color: rgba(255, 255, 0, 0.1) ;
    border: 0px solid yellow ;
}

html, body, #map-wrapper, #map {
    position: relative !important;
    display: block !important;
}

.collapsed {
    display: none !important;
}

#map {
    pointer-events: auto !important;
    z-index: 0 !important;
}

#working-csv-container {
    z-index: 5000 !important;
}

#toggle-csv-preview {
    z-index: 5001 !important;
}

#map {
    position: relative !important;
    z-index: 0 !important;
}

