/* Existing styles */
body {
    font-family: Arial, sans-serif;
    background-color: #2c3e50;
    color: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #34495e;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
}

.header h1 {
    margin: 0;
    color: #3498db;
}

#logout-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* New styles for the main content and grid layout */
.main-content {
    padding: 2rem;
    padding-top: 6rem; /* Add padding to account for the fixed header */
    width: 100%;
    box-sizing: border-box;
}

/* New main controls section with buttons and dropdowns */
.main-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Buttons for adding specific locations */
.add-location-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

.add-location-buttons .column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-loc-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 15px 25px; /* Increased by 50% */
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 150px; /* Increased by 50% */
    transition: background-color 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.add-loc-btn:hover {
    background-color: #229954;
}

/* New styles for the unit roster container */
.add-unit-container {
    background-color: #34495e;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.add-unit-container h3 {
    margin-top: 0;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

#add-unit-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#add-unit-form select {
    background-color: #4c667a;
    color: #ecf0f1;
    border: none;
    border-radius: 5px;
    padding: 8px;
    width: 100%;
}

#add-unit-form button {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* New main layout for tabs and content */
.main-roster {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    min-height: 500px;
}

.sidebar {
    background-color: #34495e;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.content-area {
    background-color: #34495e;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.placeholder-text {
    text-align: center;
    margin-top: 5rem;
    font-size: 1.2rem;
    color: #bdc3c7;
}

/* Tab-like styling for locations */
.locations-container {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    background-color: #4c667a;
    transition: background-color 0.3s ease;
}

.locations-container:hover {
    background-color: #5b7994;
}

.locations-container.active {
    background-color: #3498db;
}

/* General styles for unit lists, forms, etc. */
.unit-list {
    list-style-type: none;
    padding: 0;
    min-height: 50px;
}

.unit-item {
    background-color: #2c3e50;
    padding: 8px;
    border-radius: 5px;
    margin-top: 8px;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unit-item:hover {
    background-color: #34495e;
}

.unit-list.drag-over {
    border-color: #3498db;
    background-color: #4c667a;
}

/* The Fallen Log */
.fallen-log {
    background-color: #2c3e50;
    padding: 10px;
    border-radius: 5px;
    margin-top: 1.5rem;
}

.fallen-log h5 {
    margin-top: 0;
    color: #e74c3c;
}

.fallen-log ul {
    list-style: none;
    padding: 0;
}

.fallen-log li {
    background-color: #c0392b;
    padding: 5px;
    border-radius: 3px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
