/* Existing styles... */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #2c3e50;
    color: #ecf0f1;
    overflow: hidden;
}

#game-container {
    display: flex;
    height: 100vh;
}

#game-canvas {
    flex: 1;
    background-color: #34495e;
    cursor: default;
}

#ui-panel {
    width: 400px;
    background-color: #34495e;
    padding: 10px;
    overflow-y: auto;
    border-left: 2px solid #3498db;
}

#left-column, #right-column {
    margin-bottom: 20px;
}

h3 {
    color: #3498db;
    margin-top: 0;
    margin-bottom: 10px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 2px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    text-align: left;
}

button:hover {
    background-color: #2980b9;
}

button:active {
    background-color: #21618c;
}

button.active {
    background-color: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.resource-item {
    background-color: #2c3e50;
    padding: 5px;
    margin: 2px 0;
    border-radius: 3px;
    border-left: 3px solid #3498db;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 1px solid #ecf0f1;
}

.pawn-item {
    cursor: pointer;
    padding: 5px;
    margin: 2px 0;
    background-color: #2c3e50;
    border-radius: 3px;
    border-left: 3px solid #f39c12;
    min-height: 40px;
    display: flex;
    align-items: center;
}

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

/* New styles for mode indicator */
#mode-indicator {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: rgba(52, 73, 94, 0.9);
    color: #ecf0f1;
    padding: 10px 15px;
    border-radius: 5px;
    border: 2px solid #3498db;
    font-weight: bold;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#mode-indicator.active {
    display: block;
}

#mode-indicator .mode-text {
    font-size: 16px;
}

#mode-indicator .mode-description {
    font-size: 12px;
    color: #bdc3c7;
    margin-top: 5px;
}

#cancel-hint {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(231, 76, 60, 0.9);
    color: #ecf0f1;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#cancel-hint.active {
    display: block;
}

/* Enhanced cursor styles */
.selection-mode {
    cursor: crosshair !important;
}

.selection-active {
    cursor: copy !important;
}

/* Selection feedback */
.selection-preview {
    position: absolute;
    border: 2px solid #f1c40f;
    background-color: rgba(241, 196, 15, 0.2);
    pointer-events: none;
    z-index: 999;
}

/* Task queue collapsible styles */
.toggle-btn {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-left: 10px;
    width: auto;
}

.toggle-btn:hover {
    color: #2980b9;
}

#task-queue h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#task-list.collapsed {
    display: none;
}
