/* ============================================================
   Aethermoor - Panel Styles
   Draggable game panels: inventory, character, skill tree, quests, map, chat,
   minimap, skill bar, and all other game panels
   ============================================================ */

/* === Base Panel === */
.game-panel {
    position: absolute;
    background: rgba(26, 10, 46, 0.95);
    border: 2px solid #4a0e4e;
    border-radius: 10px;
    min-width: 280px;
    min-height: 200px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 200;
    user-select: none;
    transition: box-shadow 0.2s;
    pointer-events: auto;
}

.game-panel.dragging {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    opacity: 0.95;
    z-index: 9999;
}

.game-panel.minimized .panel-body {
    display: none;
}

.game-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(180deg, #2d0a30, #1a0a2e);
    border-bottom: 1px solid #4a0e4e;
    border-radius: 8px 8px 0 0;
    cursor: grab;
}

.game-panel .panel-header:active {
    cursor: grabbing;
}

.game-panel .panel-title {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: Georgia, serif;
}

.game-panel .panel-controls {
    display: flex;
    gap: 4px;
}

.game-panel .panel-controls button {
    width: 22px;
    height: 22px;
    background: rgba(74, 14, 78, 0.5);
    border: 1px solid #4a0e4e;
    border-radius: 4px;
    color: #e0d0f0;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.game-panel .panel-controls button:hover {
    background: #4a0e4e;
    color: #ffd700;
    border-color: #ffd700;
}

.game-panel .panel-body {
    flex: 1;
    padding: 0.75rem;
    overflow: auto;
}

/* === Inventory Panel === */
#panel-inventory {
    width: 380px;
    height: 480px;
    top: 60px;
    right: 220px;
}

.inventory-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.inventory-toolbar .search-input {
    flex: 1;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
    margin-bottom: 0.5rem;
}

.inventory-slot {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(42, 21, 64, 0.8);
    border: 1px solid #4a0e4e;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inventory-slot:hover {
    border-color: #ffd700;
}

.inventory-slot.drag-over {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.inventory-slot .item-icon {
    width: 80%;
    height: 80%;
    image-rendering: pixelated;
}

.inventory-slot .item-count {
    position: absolute;
    bottom: 1px;
    right: 3px;
    font-size: 0.6rem;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    font-family: Consolas, monospace;
}

.inventory-slot.equipped {
    border-color: #2ecc71;
    box-shadow: inset 0 0 5px rgba(46, 204, 113, 0.3);
}

.inventory-slot.rarity-magic { border-color: #4a90d9; }
.inventory-slot.rarity-rare { border-color: #ffd700; }
.inventory-slot.rarity-unique { border-color: #ff8c00; }
.inventory-slot.rarity-legendary { border-color: #a335ee; box-shadow: 0 0 8px rgba(163, 53, 238, 0.4); }

.inventory-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #a090b0;
    padding-top: 0.5rem;
    border-top: 1px solid #4a0e4e;
}

/* === Character Panel === */
#panel-character {
    width: 500px;
    height: 550px;
    top: 60px;
    left: 20px;
}

.character-layout {
    display: flex;
    gap: 1rem;
}

.paper-doll {
    width: 180px;
    height: 350px;
    position: relative;
    background: rgba(42, 21, 64, 0.5);
    border: 1px solid #4a0e4e;
    border-radius: 8px;
    flex-shrink: 0;
}

.equip-slot {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(26, 10, 46, 0.8);
    border: 1px solid #4a0e4e;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equip-slot:hover {
    border-color: #ffd700;
}

.equip-slot.has-item {
    border-color: #2ecc71;
}

.equip-slot[data-slot="head"] { top: 5px; left: 50%; transform: translateX(-50%); }
.equip-slot[data-slot="chest"] { top: 55px; left: 50%; transform: translateX(-50%); }
.equip-slot[data-slot="legs"] { top: 105px; left: 50%; transform: translateX(-50%); }
.equip-slot[data-slot="feet"] { top: 155px; left: 50%; transform: translateX(-50%); }
.equip-slot[data-slot="hands"] { top: 105px; left: 5px; }
.equip-slot[data-slot="mainhand"] { top: 55px; right: 5px; }
.equip-slot[data-slot="offhand"] { top: 105px; right: 5px; }
.equip-slot[data-slot="ring1"] { top: 205px; left: 5px; }
.equip-slot[data-slot="ring2"] { top: 205px; right: 5px; }
.equip-slot[data-slot="amulet"] { top: 5px; left: 5px; }
.equip-slot[data-slot="belt"] { top: 155px; right: 5px; }
.equip-slot[data-slot="cloak"] { top: 5px; right: 5px; }

.character-stats {
    flex: 1;
    overflow-y: auto;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(74, 14, 78, 0.3);
}

.stat-row .stat-name {
    color: #a090b0;
}

.stat-row .stat-value {
    color: #ffd700;
    font-family: Consolas, monospace;
}

.stat-row .stat-value.positive { color: #2ecc71; }
.stat-row .stat-value.negative { color: #e74c3c; }

/* === Skill Tree Panel === */
#panel-skill-tree {
    width: 800px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.skill-tree-toolbar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.skill-tree-toolbar #skill-points {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: auto;
}

.skill-tree-canvas {
    width: 100%;
    height: 500px;
    background: rgba(26, 10, 46, 0.5);
    border: 1px solid #4a0e4e;
    border-radius: 6px;
    cursor: grab;
}

.skill-tree-canvas:active {
    cursor: grabbing;
}

/* === Quest Panel === */
#panel-quests {
    width: 380px;
    height: 500px;
    top: 60px;
    right: 20px;
}

.quest-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 0.75rem;
}

.quest-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quest-item {
    background: rgba(42, 21, 64, 0.6);
    border: 1px solid #4a0e4e;
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
}

.quest-item:hover {
    border-color: #ffd700;
}

.quest-item.active {
    border-color: #ffd700;
    background: rgba(74, 14, 78, 0.4);
}

.quest-item .quest-title {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.quest-item .quest-desc {
    color: #a090b0;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.quest-item .quest-progress {
    font-size: 0.75rem;
    color: #e0d0f0;
}

.quest-detail {
    padding: 0.75rem;
    background: rgba(42, 21, 64, 0.4);
    border-radius: 6px;
    margin-top: 0.5rem;
}

.quest-detail h4 {
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.quest-detail .quest-objective {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.85rem;
}

.quest-detail .quest-objective .check {
    color: #2ecc71;
}

.quest-detail .quest-objective .uncheck {
    color: #808080;
}

/* === Map Panel === */
#panel-map {
    width: 700px;
    height: 550px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.map-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.world-map-canvas {
    width: 100%;
    height: 450px;
    background: rgba(26, 10, 46, 0.5);
    border: 1px solid #4a0e4e;
    border-radius: 6px;
}

.map-info {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #a090b0;
}

/* === Chat Panel === */
#panel-chat {
    width: 350px;
    height: 250px;
    bottom: 10px;
    left: 10px;
}

.chat-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 0.5rem;
    overflow-x: auto;
}

.chat-messages {
    height: calc(100% - 70px);
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(26, 10, 46, 0.5);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.chat-message {
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message .timestamp {
    color: #808080;
    font-size: 0.7rem;
    margin-right: 0.35rem;
}

.chat-message .sender {
    font-weight: 600;
    margin-right: 0.35rem;
}

.chat-message.system { color: #ffd700; }
.chat-message.trade { color: #2ecc71; }
.chat-message.guild { color: #9b59b6; }
.chat-message.whisper { color: #e67e22; }
.chat-message.party { color: #3498db; }

.chat-input-container {
    display: flex;
}

.chat-input-container input {
    flex: 1;
    background: rgba(42, 21, 64, 0.8);
    border: 1px solid #4a0e4e;
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
    color: #e0d0f0;
    font-size: 0.85rem;
}

.chat-input-container input:focus {
    outline: none;
    border-color: #ffd700;
}

/* === Vendor Panel === */
#panel-vendor {
    width: 420px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.vendor-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 0.75rem;
}

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    max-height: 350px;
    overflow-y: auto;
}

.vendor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #4a0e4e;
    font-size: 0.8rem;
    color: #a090b0;
}

/* === Crafting Panel === */
#panel-crafting {
    width: 500px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.crafting-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.crafting-recipes {
    grid-column: 1 / -1;
    max-height: 150px;
    overflow-y: auto;
}

.crafting-preview {
    background: rgba(42, 21, 64, 0.5);
    border: 1px solid #4a0e4e;
    border-radius: 6px;
    padding: 0.75rem;
    text-align: center;
}

.crafting-materials {
    background: rgba(42, 21, 64, 0.5);
    border: 1px solid #4a0e4e;
    border-radius: 6px;
    padding: 0.75rem;
}

/* === Trade Panel === */
#panel-trade {
    width: 550px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.trade-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.trade-offer h3 {
    color: #ffd700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.trade-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    min-height: 120px;
    background: rgba(42, 21, 64, 0.5);
    border: 1px solid #4a0e4e;
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

/* === Guild Panel === */
#panel-guild {
    width: 450px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.guild-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 0.75rem;
}

.guild-content {
    overflow-y: auto;
    max-height: 400px;
}

.guild-member {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(74, 14, 78, 0.3);
    font-size: 0.85rem;
}

.guild-member .member-name { color: #e0d0f0; }
.guild-member .member-rank { color: #ffd700; font-size: 0.75rem; }

/* === Housing Panel === */
#panel-housing {
    width: 400px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.housing-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.housing-content {
    overflow-y: auto;
    max-height: 350px;
}

/* === Fishing Panel === */
#panel-fishing {
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fishing-minigame {
    text-align: center;
    margin-bottom: 0.75rem;
}

#fishing-canvas {
    width: 100%;
    border: 1px solid #4a0e4e;
    border-radius: 6px;
    background: rgba(42, 21, 64, 0.5);
}

#fishing-status {
    margin-top: 0.5rem;
    color: #a090b0;
    font-size: 0.85rem;
}

.fishing-log {
    max-height: 150px;
    overflow-y: auto;
    font-size: 0.8rem;
}

.fishing-log-entry {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(74, 14, 78, 0.2);
}

/* === Cooking Panel === */
#panel-cooking {
    width: 400px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cooking-recipes {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 0.75rem;
}

.cooking-preview {
    background: rgba(42, 21, 64, 0.5);
    border: 1px solid #4a0e4e;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    min-height: 80px;
}

/* === Challenges Panel === */
#panel-challenges {
    width: 400px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.challenge-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 0.75rem;
}

.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 350px;
    overflow-y: auto;
}

.challenge-item {
    background: rgba(42, 21, 64, 0.6);
    border: 1px solid #4a0e4e;
    border-radius: 6px;
    padding: 0.75rem;
}

.challenge-item .challenge-title {
    color: #ffd700;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.challenge-item .challenge-desc {
    color: #a090b0;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.challenge-item .challenge-reward {
    color: #2ecc71;
    font-size: 0.8rem;
}

.challenge-item.completed {
    opacity: 0.6;
    border-color: #2ecc71;
}

/* === Filter Config Panel === */
#panel-filter-config {
    width: 450px;
    height: 550px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.filter-config-content {
    max-height: 450px;
    overflow-y: auto;
}

.filter-rule {
    background: rgba(42, 21, 64, 0.5);
    border: 1px solid #4a0e4e;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.filter-rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* === Bug Report Panel === */
#panel-bug-report {
    width: 450px;
    height: 550px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.bug-report-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bug-report-form select,
.bug-report-form input,
.bug-report-form textarea {
    background: rgba(42, 21, 64, 0.8);
    border: 1px solid #4a0e4e;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    color: #e0d0f0;
    font-size: 0.85rem;
    font-family: inherit;
}

.bug-report-form select:focus,
.bug-report-form input:focus,
.bug-report-form textarea:focus {
    outline: none;
    border-color: #ffd700;
}

.bug-reports-list {
    max-height: 150px;
    overflow-y: auto;
    border-top: 1px solid #4a0e4e;
    padding-top: 0.5rem;
}

/* === Settings Panel === */
#panel-settings {
    width: 550px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.settings-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.settings-content {
    max-height: 400px;
    overflow-y: auto;
}

.setting-group {
    margin-bottom: 1rem;
}

.setting-group h4 {
    color: #ffd700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #4a0e4e;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

.setting-row label {
    color: #a090b0;
}

.setting-row input[type="range"] {
    width: 120px;
}

.setting-row input[type="checkbox"] {
    accent-color: #ffd700;
}

.keybinding-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.8rem;
}

.keybinding-row .key-name {
    color: #a090b0;
}

.keybinding-row .key-value {
    background: rgba(42, 21, 64, 0.8);
    border: 1px solid #4a0e4e;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    color: #ffd700;
    font-family: Consolas, monospace;
    font-size: 0.75rem;
    cursor: pointer;
    min-width: 60px;
    text-align: center;
}

.keybinding-row .key-value.listening {
    border-color: #ffd700;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.keybinding-row .key-value.conflict {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* === Codex Panel === */
#panel-codex {
    width: 500px;
    height: 550px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.codex-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

#codex-search {
    margin-bottom: 0.75rem;
}

.codex-content {
    max-height: 420px;
    overflow-y: auto;
}

.codex-entry {
    background: rgba(42, 21, 64, 0.5);
    border: 1px solid #4a0e4e;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
}

.codex-entry:hover {
    border-color: #ffd700;
}

.codex-entry.undiscovered {
    opacity: 0.4;
    border-style: dashed;
}

.codex-entry .entry-name {
    color: #ffd700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.codex-entry .entry-desc {
    color: #a090b0;
    font-size: 0.8rem;
}

/* === Proficiency Panel === */
#panel-proficiency {
    width: 400px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.proficiency-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 420px;
    overflow-y: auto;
}

.proficiency-item {
    background: rgba(42, 21, 64, 0.5);
    border: 1px solid #4a0e4e;
    border-radius: 6px;
    padding: 0.75rem;
}

.proficiency-item .prof-name {
    color: #ffd700;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    display: flex;
    justify-content: space-between;
}

.proficiency-item .prof-level {
    color: #e0d0f0;
    font-size: 0.8rem;
}

/* === Reputation Panel === */
#panel-reputation {
    width: 400px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.reputation-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.reputation-item {
    background: rgba(42, 21, 64, 0.5);
    border: 1px solid #4a0e4e;
    border-radius: 6px;
    padding: 0.75rem;
}

.reputation-item .rep-name {
    color: #ffd700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.reputation-item .rep-tier {
    color: #e0d0f0;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

/* === Mail Panel === */
#panel-mail {
    width: 400px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mail-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 0.75rem;
}

.mail-list {
    max-height: 350px;
    overflow-y: auto;
}

.mail-item {
    background: rgba(42, 21, 64, 0.5);
    border: 1px solid #4a0e4e;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.35rem;
    cursor: pointer;
    transition: all 0.15s;
}

.mail-item:hover { border-color: #ffd700; }
.mail-item.unread { border-left: 3px solid #ffd700; }
.mail-item.system { border-left: 3px solid #e74c3c; }

.mail-item .mail-sender {
    color: #ffd700;
    font-size: 0.85rem;
    font-weight: 600;
}

.mail-item .mail-subject {
    color: #e0d0f0;
    font-size: 0.8rem;
}

.mail-item .mail-date {
    color: #808080;
    font-size: 0.7rem;
}

.mail-compose {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* === Friends Panel === */
#panel-friends {
    width: 300px;
    height: 400px;
    top: 60px;
    left: 10px;
}

.friends-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 0.5rem;
}

.friends-list {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 0.5rem;
}

.friend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(74, 14, 78, 0.2);
}

.friend-item .friend-name { flex: 1; }
.friend-item .friend-zone { color: #808080; font-size: 0.75rem; }

.add-friend-form {
    display: flex;
    gap: 0.35rem;
}

.add-friend-form input {
    flex: 1;
    background: rgba(42, 21, 64, 0.8);
    border: 1px solid #4a0e4e;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    color: #e0d0f0;
    font-size: 0.8rem;
}

/* === Pet Panel === */
#panel-pet {
    width: 350px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pet-content {
    max-height: 400px;
    overflow-y: auto;
}

.pet-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.pet-stat {
    background: rgba(42, 21, 64, 0.5);
    border: 1px solid #4a0e4e;
    border-radius: 4px;
    padding: 0.5rem;
    text-align: center;
}

.pet-stat .stat-label {
    color: #a090b0;
    font-size: 0.7rem;
}

.pet-stat .stat-value {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
}

/* === Navigation Panel === */
#panel-navigation {
    width: 300px;
    height: 350px;
    top: 270px;
    right: 220px;
}

.navigation-content {
    max-height: 300px;
    overflow-y: auto;
}

.waypoint-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(74, 14, 78, 0.2);
}

.waypoint-item .wp-name { color: #e0d0f0; }
.waypoint-item .wp-distance { color: #a090b0; font-size: 0.75rem; }

/* === Minion Panel === */
#panel-minions {
    width: 300px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.minion-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.minion-item {
    background: rgba(42, 21, 64, 0.5);
    border: 1px solid #4a0e4e;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.minion-item .minion-name {
    color: #e0d0f0;
    font-size: 0.85rem;
    flex: 1;
}

.minion-item .minion-hp {
    width: 60px;
    height: 6px;
    background: #2a1540;
    border-radius: 3px;
    overflow: hidden;
}

.minion-item .minion-hp-fill {
    height: 100%;
    background: #e74c3c;
    border-radius: 3px;
    transition: width 0.3s;
}

/* === Game Guide Panel === */
#panel-game-guide {
    width: 550px;
    height: 550px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.game-guide-content {
    max-height: 450px;
    overflow-y: auto;
    line-height: 1.6;
}

.game-guide-content h3 {
    color: #ffd700;
    font-family: Georgia, serif;
    margin: 1rem 0 0.5rem;
}

.game-guide-content p {
    color: #e0d0f0;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* === Responsive Panel Adjustments === */
@media (max-width: 1200px) {
    #panel-chat {
        width: 280px;
        height: 200px;
    }

    #panel-inventory {
        width: 340px;
    }

    .inventory-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 768px) {
    .game-panel {
        width: 95vw !important;
        left: 2.5vw !important;
        transform: none !important;
    }

    .inventory-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
