#custom_dropdown {
    z-index: 30000;
    backdrop-filter: blur(--SmartThemeBlurStrength);
}

/* Game Modal Styles */
#rpg-modal-overlay {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 36, 29, 0.85); 
    z-index: 40000; 
    display: flex;
    justify-content: center;
    align-items: center;
}

#rpg-modal-content {
    background-color: #5A4B3E; 
    color: #EFEBE0; 
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); 
    min-width: 90%;
    min-height: 90%; 
    max-width: 96%;
    max-height: 96%;
    display: flex;
    flex-direction: column;
    position: relative; 
    border: 2px solid #3B322C; 
}

#rpg-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #8C6D56; 
    padding-bottom: 0px;
    margin-bottom: 5px;
}

#rpg-modal-header-controls {
    display: flex;
    align-items: center;
}

#rpg-modal-title {
    font-size: 0.8em; 
    color: #EFEBE0; 
    font-weight: bold;
}

#rpg-editor-button {
    background: none;
    border: none;
    color: #EFEBE0;
    font-size: 1.3em; 
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin-right: 5px; 
}

#rpg-editor-button:hover {
    background-color: #8C6D56;
    color: #3B322C;
}

#rpg-light-editor-button {
    background: none;
    border: none;
    color: #EFEBE0;
    font-size: 1.3em; 
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin-right: 5px; 
}

#rpg-light-editor-button:hover {
    background-color: #8C6D56;
    color: #3B322C;
}

#rpg-npc-creator-button {
    background: none;
    border: none;
    color: #EFEBE0;
    font-size: 1.3em; 
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin-right: 5px; 
}

#rpg-npc-creator-button img {
    width: 24px;
    height: 24px;
}

#rpg-npc-creator-button:hover {
    background-color: #8C6D56;
    color: #3B322C;
}

#rpg-close-button {
    background: none;
    border: none;
    color: #EFEBE0; 
    font-size: 1.5em; 
    cursor: pointer;
    line-height: 1;
    width: 30px; 
    height: 30px;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 0; 
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#rpg-close-button:hover {
    background-color: #8C6D56; 
    color: #3B322C; 
}

#rpg-canvas-container {
    flex-grow: 1; 
    display: flex; 
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    background-color: #3B322C; 
    border-radius: 8px; 
}

#rpg-canvas {
    border: 1px solid #8C6D56; 
    background-color: #D4C8A0; 
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated; 
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Map Editor Styles */

/* Panel styles moved to game/editor/editor_ui_manager.css */


#rpg-editor-tools-panel button {
    background-color: #8C6D56; 
    color: #FFFFFF;
    border: 1px solid #5A4B3E;
    padding: 8px;
    font-size: 0.9em;
    font-weight: normal;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: block; 
    width: 100%; 
    margin-bottom: 6px; 
    text-align: center;
}

#rpg-editor-tools-panel button:hover {
    background-color: #A07D65;
}

#rpg-editor-tools-panel button:active {
    background-color: #785C4A;
}

#rpg-editor-tools-panel h4 {
    font-size: 0.95em;
    margin-top: 12px; 
    margin-bottom: 6px;
    border-bottom: 1px solid #725c4d; 
    padding-bottom: 4px;
}

#rpg-editor-tools-panel h3 {
    font-size: 1em;
    margin-top: 0;
    margin-bottom: 5px;
    border-bottom: 1px solid #8C6D56;
    padding-bottom: 5px;
}

.rpg-editor-layer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rpg-editor-layer-nav button {
    width: auto !important; /* Override general button width */
    padding: 5px 10px !important;
    margin: 0 5px !important;
    flex-grow: 0;
}

.rpg-editor-layer-display {
    flex-grow: 1;
    text-align: center;
    font-weight: bold;
    color: #D4C8A0;
}

#rpg-editor-spritesheet-container {
    background-color: #3B322C;
    border: 1px solid #5A4B3E;
    overflow: auto; 
    cursor: pointer;
    max-height: 400px; 
}

#rpg-editor-spritesheet-canvas {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    display: block; 
}

#rpg-editor-tile-preview-container {
    text-align: center;
}

#rpg-editor-tile-preview-canvas {
    width: 64px;
    height: 64px;
    border: 1px dashed #8C6D56;
    background-color: #5A4B3E;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.rpg-editor-info {
    font-size: 0.8em;
    color: #D4C8A0;
}

/* NPC Creator Panel Styles */

/* NPC Creator Panel styles handled by game/editor/editor_ui_manager.css */


#rpg-npc-creator-panel h4 {
    font-size: 0.95em;
    margin: 0;
    border-bottom: 1px solid #725c4d;
    padding-bottom: 4px;
}

#rpg-npc-creator-panel label {
    display: block;
    margin-top: 8px;
    margin-bottom: 2px;
    font-weight: bold;
    color: #D4C8A0;
}
#rpg-npc-creator-panel .abilities-form-row label {
    display: inline-block;
    margin: 0;
    font-weight: normal;
    font-size: 0.85em;
    color: #D4C8A0;
    flex: 1;
}
#rpg-npc-creator-panel h4 + label,
#rpg-npc-creator-panel .npc-creator-section > label:first-of-type {
    margin-top: 2px;
}

#rpg-npc-creator-panel input[type="text"],
#rpg-npc-creator-panel textarea {
    width: 100%;
    background-color: #3B322C;
    color: #EFEBE0;
    border: 1px solid #8C6D56;
    border-radius: 4px;
    padding: 5px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95em;
}

#rpg-npc-creator-panel .abilities-form-row input[type="text"],
#rpg-npc-creator-panel .abilities-form-row input[type="number"],
#rpg-npc-creator-panel .abilities-form-row select {
    width: auto;
    flex: 1.2;
    padding: 3px 6px;
    font-size: 0.9em;
    background-color: #3B322C;
    border: 1px solid #8C6D56;
    border-radius: 4px;
    color: #EFEBE0;
    box-sizing: border-box;
}

#rpg-npc-creator-panel textarea {
    min-height: 60px;
    resize: vertical;
}

#rpg-npc-creator-panel .npc-creator-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}
#rpg-npc-creator-panel .npc-creator-section:first-child {
    margin-top: 0;
}

#rpg-npc-creator-panel button {
    background-color: #8C6D56;
    color: #FFFFFF;
    border: 1px solid #5A4B3E;
    padding: 6px 10px;
    font-size: 0.9em;
    border-radius: 4px;
    cursor: pointer;
}
#rpg-npc-creator-panel button:hover {
    background-color: #A07D65;
}

.npc-creator-sprite-picker, .npc-creator-avatar-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.npc-sprite-preview-container, .npc-avatar-preview-container {
    width: 64px;
    height: 64px;
    border: 1px dashed #8C6D56;
    background-color: #5A4B3E;
    display: flex;
    justify-content: center;
    align-items: center;
}
.npc-sprite-preview-container canvas, .npc-avatar-preview-container img {
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
}

#npc-sprite-selector-canvas {
    border: 1px solid #5A4B3E;
    cursor: pointer;
    background-color: #3B322C;
}

.npc-reactive-avatar-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #4a3c30;
    padding: 5px;
    border-radius: 4px;
}

.npc-reactive-avatar-entry input[type="text"] {
    flex-grow: 1;
}


/* Light Editor Mask List and Editor Panel styles handled by game/editor/editor_ui_manager.css */


.light-mask-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 5px;
    background-color: #4a3c30;
    font-size: 0.9em;
}

.light-mask-list-item.selected {
    background-color: #A07D65;
    border: 1px solid #EFEBE0;
    font-weight: bold;
}

.light-mask-list-item > span {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.light-mask-list-item > div { /* Controls container */
    display: flex;
}

.light-mask-list-item button {
    background: #785C4A !important;
    border: none !important;
    color: white !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    margin-left: 3px !important;
    font-size: 1em !important;
    line-height: 20px !important;
    text-align: center !important;
    min-width: unset !important;
    flex-shrink: 0;
}

.light-mask-list-item button:hover {
    background: #8C6D56 !important;
}

.light-mask-list-item button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* Light Editor parent structures handled by game/editor/editor_ui_manager.css */


#rpg-light-editor-panel h4 {
    font-size: 0.95em;
    margin: 0;
    border-bottom: 1px solid #725c4d;
    padding-bottom: 4px;
}

#rpg-light-editor-panel label {
    display: block;
    margin-bottom: 2px;
    font-weight: bold;
    color: #D4C8A0;
}

#rpg-light-editor-panel input[type="color"],
#rpg-light-editor-panel input[type="range"],
#rpg-light-editor-panel input[type="number"] {
    width: 100%;
    box-sizing: border-box;
}

#rpg-light-editor-panel button {
    background-color: #8C6D56;
    color: #FFFFFF;
    border: 1px solid #5A4B3E;
    padding: 6px 10px;
    font-size: 0.9em;
    border-radius: 4px;
    cursor: pointer;
}
#rpg-light-editor-panel button:hover {
    background-color: #A07D65;
}

#rpg-light-editor-panel .light-editor-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Tool Selection Styles */
.rpg-editor-tool-selection {
    display: flex;
    justify-content: center; /* Center buttons */
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.rpg-editor-tool-selection button,
.rpg-editor-tool-selection .rpg-file-label {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    cursor: pointer;
    background-color: #8C6D56;
    border: 1px solid #5A4B3E;
    border-radius: 4px;
    color: #EFEBE0;
    text-align: center;
    transition: background-color 0.1s ease;
}

.rpg-editor-tool-selection button:hover,
.rpg-editor-tool-selection .rpg-file-label:hover {
    background-color: #A07D65;
    border-color: #8C6D56;
}

.rpg-editor-tool-selection button.active {
    background-color: #413328 !important; /* Visual pressed-down active toggle style */
    border-color: #D4C8A0 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    font-weight: bold;
}

/* Snap to Grid Label Style */
.rpg-editor-snap-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9em;
    cursor: pointer;
}

.rpg-editor-snap-label input[type="checkbox"] {
    margin-right: 5px;
}

/* Load Maps List Styles */
#rpg-editor-load-maps-list {
    background-color: #4a3c30; /* Slightly darker than panel content */
    border-radius: 4px;
    padding: 8px;
}
.rpg-editor-load-map-item {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
}

.rpg-editor-load-map-item button { /* General style for buttons in the item */
    background-color: #8C6D56;
    color: white;
    border: 1px solid #5A4B3E;
    border-radius: 3px;
    padding: 5px;
    font-size: 0.85em;
    text-align: center;
}
.rpg-editor-load-map-item button:hover {
    background-color: #A07D65;
}

.rpg-editor-load-map-item > button:first-child { /* The main load button */
    flex-grow: 1;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-file-size {
    font-size: 0.8em;
    color: #d4c8a0;
    opacity: 0.8;
}

.rpg-editor-delete-map-button {
    flex-shrink: 0;
    width: 25px !important;
    height: 25px !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: #c0392b !important;
    color: white !important;
    font-size: 1.1em !important;
    line-height: 25px !important;
}

.rpg-editor-delete-map-button:hover {
    background-color: #e74c3c !important;
}

/* Zoom UI Controls */
#rpg-zoom-controls {
    position: absolute;
    bottom: 15px; 
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 40001; 
}

#rpg-zoom-controls button {
    background-color: #8C6D56; 
    color: #FFFFFF;
    border: 1px solid #5A4B3E;
    width: 30px;
    height: 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

#rpg-zoom-controls button:hover {
    background-color: #A07D65;
}

#rpg-zoom-controls button:active {
    background-color: #785C4A;
}


/* NPC Sprite Selector Popup */
#npc-sprite-selector-overlay {
    position: fixed; /* Use fixed to cover the whole screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 40004; /* Above creator panel */
    display: flex;
    justify-content: center;
    align-items: center;
}

#npc-sprite-selector-popup {
    background-color: #5A4B3E;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #3B322C;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

#npc-sprite-selector-popup h4 {
    margin-top: 0;
    color: #EFEBE0;
}

#npc-sprite-selector-popup-canvas {
    border: 1px solid #8C6D56;
    cursor: pointer;
    background-color: #3B322C;
}

/* JRPG Slide-up Windows */
.rpg-slideup-window {
    position: absolute;
    bottom: calc(20px + min(35%, 300px)); /* Sits right above the dialogue box */
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    width: calc(100% - 40px); /* Exactly matching the width of the dialogue box */
    max-width: 900px; /* Exactly matching the max-width of the dialogue box */
    height: 400px; /* Much more compact and robust layout */
    max-height: calc(100% - 45px - min(35%, 300px)); /* Prevents overlapping top bar/overflow on small viewports */
    background-color: rgba(65, 52, 42, 0.98); /* Original warm RPG wood/bronze theme */
    border: 3px solid #3B322C;
    border-radius: 12px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    z-index: 40020;
    user-select: none;
    -webkit-user-select: none;
}

.rpg-slideup-window.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.rpg-window-header {
    background-color: #3B322C; /* Original dark wood */
    padding: 6px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #8C6D56; /* Original warm bronze header border */
    flex-shrink: 0;
}

.rpg-window-title {
    color: #FFD700; /* Original rich gold gold brand color */
    font-weight: bold;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    -webkit-user-select: none;
}

.rpg-window-close {
    background: none;
    border: none;
    color: #EFEBE0;
    font-size: 1.4em;
    line-height: 1;
    cursor: pointer;
    text-shadow: 0 1px 2px black;
    padding: 0;
}

.rpg-window-close:hover {
    color: #ff4d4d;
}

.rpg-window-content {
    flex-grow: 1;
    padding: 10px;
    overflow-y: hidden; /* Avoid double scrollbars, children scroll internally */
    color: #EFEBE0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    background-color: rgba(45, 34, 27, 0.96); /* Original RPG inner dark warmth */
}

/* Shop and Inventory layout */
.rpg-two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    height: 100%;
}

.rpg-scroll-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    background-color: rgba(30, 24, 20, 0.6); /* Traditional deep dark parchment */
    border: 1.5px solid #3B322C;
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-box;
}

.rpg-section-title {
    font-size: 0.85em;
    font-weight: bold;
    color: #D4C8A0; /* Original cream gold */
    margin-bottom: 4px;
    border-bottom: 1.5px solid #5A4B3E;
    padding-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}

.rpg-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(20, 15, 12, 0.75); /* Original clean warm item block */
    padding: 8px 10px;
    border-radius: 6px;
    border: 1.5px solid #3B322C;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.rpg-item-row:hover {
    transform: translateY(-1px);
    background-color: rgba(30, 24, 20, 0.85);
}

.rpg-btn-buy, .rpg-btn-sell, .rpg-btn-use, .rpg-btn-equip, .rpg-btn-quest {
    padding: 4px 12px;
    color: white;
    border: 1.5px solid #3B322C;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: bold;
    transition: all 0.12s ease-in-out;
}

.rpg-btn-buy { background-color: #27ae60; border-color: #2ecc71; }
.rpg-btn-buy:hover { background-color: #2ecc71; transform: translateY(-1px); }
.rpg-btn-sell { background-color: #c0392b; border-color: #e74c3c; }
.rpg-btn-sell:hover { background-color: #e74c3c; transform: translateY(-1px); }
.rpg-btn-use { background-color: #2980b9; border-color: #3498db; }
.rpg-btn-use:hover { background-color: #3498db; transform: translateY(-1px); }
.rpg-btn-equip { background-color: #8e44ad; border-color: #9b59b6; }
.rpg-btn-equip:hover { background-color: #9b59b6; transform: translateY(-1px); }
.rpg-btn-quest { background-color: #e67e22; border-color: #f39c12; }
.rpg-btn-quest:hover { background-color: #f39c12; transform: translateY(-1px); }

/* Custom JRPG Scrollbar Styling - Wood & Bronze Theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #2B231D;
    border-radius: 4px;
    border: 1px solid #3B322C;
}
::-webkit-scrollbar-thumb {
    background: #8C6D56;
    border: 1px solid #3B322C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A07D65;
}


/* Quest Editor parent styles handled by game/editor/editor_ui_manager.css */


.quest-editor-section {
    border-bottom: 1px solid #5A4B3E;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.quest-editor-section h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #D4C8A0;
    font-size: 1em;
}

/* Header style for Quest button is identical to others */
#rpg-quest-editor-button {
    background: none;
    border: none;
    color: #EFEBE0;
    font-size: 1.3em; 
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.15s ease;
    margin-right: 5px; 
}

#rpg-quest-editor-button:hover {
    background-color: #8C6D56;
    color: #3B322C;
}


/* Abilities Editor parent styles handled by game/editor/editor_ui_manager.css */


.abilities-editor-section {
    border-bottom: 1px solid #5A4B3E;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.abilities-editor-section h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #D4C8A0;
    font-size: 1em;
}

#rpg-abilities-editor-button {
    background: none;
    border: none;
    color: #EFEBE0;
    font-size: 1.3em; 
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.15s ease;
    margin-right: 5px; 
}

#rpg-abilities-editor-button:hover {
    background-color: #8C6D56;
    color: #3B322C;
}


/* Item Editor and Bank Editor parent styles managed by game/editor/editor_ui_manager.css */


/* Custom Bulk file uploader labels styling */
.rpg-file-label {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.82em;
    font-weight: bold;
    background-color: #8c765c;
    color: white;
    border: 1px solid #5a4b3e;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.15s ease;
}

.rpg-file-label:hover {
    background-color: #a48a6a !important;
}

.item-editor-section {
    border-bottom: 1px solid #5A4B3E;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.item-editor-section h4 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #D4C8A0;
    font-size: 1em;
}

#rpg-projectile-creator-button, #rpg-item-editor-button, #rpg-event-editor-button, #rpg-bank-editor-button {
    background: none;
    border: none;
    color: #EFEBE0;
    font-size: 1.3em; 
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.15s ease;
    margin-right: 5px; 
}

#rpg-projectile-creator-button:hover, #rpg-item-editor-button:hover, #rpg-event-editor-button:hover, #rpg-bank-editor-button:hover {
    background-color: #8C6D56;
    color: #3B322C;
}

.item-btn-action {
    background-color: #5A4B3E;
    color: #EFEBE0;
    border: 1px solid #8C6D56;
    padding: 6px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.15s;
}
.item-btn-action:hover {
    background-color: #8C6D56;
    color: #1F1915;
}

/* Editor form layout */
.abilities-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}

.abilities-form-row label {
    font-size: 0.85em;
    color: #D4C8A0;
    flex: 1;
}

.abilities-form-row input[type="text"],
.abilities-form-row input[type="number"],
.abilities-form-row select {
    background-color: #3B322C;
    border: 1px solid #8C6D56;
    border-radius: 4px;
    color: #EFEBE0;
    padding: 3px 6px;
    font-size: 0.9em;
    flex: 1.2;
    box-sizing: border-box;
}

.abilities-form-row input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #8C6D56;
}

.abilities-btn {
    background-color: #8C6D56;
    color: white;
    border: 1px solid #5A4B3E;
    border-radius: 4px;
    padding: 6px 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.abilities-btn:hover {
    background-color: #A07D65;
}

.abilities-btn-danger {
    background-color: #c0392b;
    color: white;
    border: 1px solid #962d22;
    border-radius: 4px;
    padding: 6px 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.abilities-btn-danger:hover {
    background-color: #e74c3c;
}

.abilities-btn-equip {
    background-color: #27ae60;
    color: white;
    border: 1px solid #1e8449;
    border-radius: 4px;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.abilities-btn-equip:hover {
    background-color: #2ecc71;
}


/* Custom file labels that act as native trusted trigger buttons overlaying file inputs */
.rpg-file-label {
    display: inline-block;
    background-color: #8C6D56;
    color: #FFFFFF;
    border: 1px solid #5A4B3E;
    padding: 6px 10px;
    font-size: 0.9em;
    font-weight: normal;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    user-select: none;
    transition: background-color 0.1s ease;
}
.rpg-file-label:hover {
    background-color: #A07D65;
}
.rpg-file-label:active {
    background-color: #785C4A;
}


