body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

h1 {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 10px 0;
    margin: 0;
}

.container {
    display: flex;
    /* Set height to be viewport height minus the h1's height/padding */
    height: calc(100vh - 42px);
}

#map {
    height: 100%;
    width: 80%;
}

#controls {
    width: 20%;
    padding: 20px;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto; /* Add scroll if content is too long */
}

#controls h2 {
    margin-top: 0;
}

#controls label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

#controls input {
    width: 95%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#controls select {
    width: 95%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#controls input .range {
    width: 95%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#controls button {
    width: 95%;
    padding: 10px;
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

#controls button:hover {
    background-color: #0056b3;
}

/* MODIFIED: Styles for the mission split modal are now more specific */
#splitMissionModal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

#splitMissionModal .modal-content {
	background-color: white;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.3);
	width: 90%;
	max-width: 400px;
	text-align: center;
}

#splitMissionModal .modal-content p {
	margin-bottom: 20px;
	font-size: 16px;
}

#splitMissionModal .modal-options select {
	width: 100%;
	padding: 10px;
	margin-bottom: 20px;
	border-radius: 5px;
	border: 1px solid #ccc;
}

#splitMissionModal .modal-buttons {
	display: flex;
	justify-content: space-around;
}

#splitMissionModal .modal-buttons button {
	padding: 10px 20px;
	border-radius: 5px;
	border: none;
	cursor: pointer;
	font-weight: bold;
}

#split-yes-btn, #split-preview-btn {
	background-color: #4CAF50; /* Green */
	color: white;
}

#split-no-btn, #split-cancel-btn {
	background-color: #f44336; /* Red */
	color: white;
}

#split-preview-btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}