/* Inventory panel shell — a thin DOM host for the canvas-rendered inventory
   (graphics/inventory-panel.ts). Positioning and the slide-in animation live
   here; the canvas paints the background, border, header, items, etc.
   JS overrides background/border/padding/width inline where needed. */
.inventory-panel {
    position: fixed;
    top: 33.33vh; /* Start at 1/3 from top, leaving top empty */
    left: 100px; /* Aligned with chat */
    width: 380px;
    height: 66.67vh; /* 2/3 of viewport height */
    background: #599fdc; /* Original inventory blue */
    border: 4px solid #4a8bc2;
    border-radius: 3px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100vh); /* Start off-screen below */
    transition: transform 0.3s ease-out;
    z-index: 3000;
    padding: 14px 16px 16px;
    box-sizing: border-box;
    color: white;
    display: flex;
    flex-direction: column;
    font-family: Ubuntu, sans-serif;
}

.inventory-panel.open {
    transform: translateY(0); /* Slide up from the bottom */
}

.inventory-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Crafting panel shell — same pattern as .inventory-panel, hosts the canvas
   crafting UI (graphics/crafting-panel.ts). */
.crafting-panel {
    position: fixed;
    top: 33.33vh; /* Start at 1/3 from top, leaving top empty */
    left: 100px; /* Aligned with chat */
    width: 580px;
    height: 66.67vh; /* 2/3 of viewport height */
    background: transparent;
    border: none;
    border-radius: 3px;
    transform: translateY(100vh); /* Start off-screen below */
    transition: transform 0.3s ease-out;
    z-index: 3000;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.crafting-panel.open {
    transform: translateY(0); /* Slide up from the bottom */
}

.save-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 2000;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
