/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #525252;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 1.8rem;
}

#money-display-container {
    font-size: 1.2rem;
}

/* Ensure the game container has a max width and is centered */
#app {
    max-width: 1400px; /* Maximum width for the game */
    margin: 0 auto; /* Center the container horizontally */
    width: 100%; /* Allow it to shrink for smaller screens */

    box-sizing: border-box; /* Include padding in width calculation */
}

/* Main Layout */
main {
    display: flex;
    flex: 1;
    padding: 1rem;
    gap: 1rem;
}

/* Toolbar */
.toolbar {
    width: 200px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 250px;

}

.toolbar h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.toolbar-item {
    padding: 0.5rem;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    font-size: 1rem;
}

.toolbar-item:hover {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

/* Game Grid */
.game-grid {
    display: grid;
    flex: 2;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    background: white;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Management Pane */
aside {
    min-width: 350px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.management-pane h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.management-pane #management-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 1rem;
}

/* Footer */
footer {
    background: #007bff;
    color: white;
    text-align: center;
    padding: 0.5rem;
    margin-top: auto;
    font-size: 0.9rem;
}

.order-card {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-card p {
    margin: 5px 0;
}

.ship-order-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
}

.ship-order-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.order-card {
    transition: opacity 0.5s ease-out;
}

#inventory-list h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

#inventory-list div {
    padding: 5px;
    margin-bottom: 10px;
}

#inventory-list div:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}
