/* --- Chat History --- */
#chat-history {
    flex: 1 1 0;
    min-height: 150px;
    max-height: 30vh;
    overflow-y: auto;
    border: 2px solid var(--border-color);
    padding: 10px;
    background-color: #080600;
    font-family: 'Courier New', monospace;
}

.chat-msg {
    color: #ccc;
}

.system-msg {
    color: #ffb700;
    font-style: italic;
}

.error-msg {
    color: #ff3333;
}

.highlight-name {
    color: #e0e0ff;
    text-shadow: 0 0 5px #ffffff;
}

.highlight-cmd {
    color: #00ff00;
    font-weight: bold;
}

/* --- Combat Highlights --- */
.combat-log-breakdown {
    cursor: help;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    transition: filter 0.2s ease;
    text-decoration: underline dotted #555;
    position: relative;
}

.combat-log-breakdown:hover {
    filter: brightness(1.3);
}

.combat-log-breakdown strong {
    font-weight: bold;
}

/* Damage Type Colors with Black Outlines */
.dmg-slashing,
.dmg-piercing,
.dmg-bludgeoning,
.dmg-physical {
    color: #ff3333;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.dmg-fire {
    color: #ffa500;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.dmg-frost {
    color: #0000ff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.dmg-electric {
    color: #add8e6;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.dmg-holy {
    color: #ffd700;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.dmg-arcane {
    color: #800080;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

/* --- Input Area --- */
#input-area {
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    background-color: #1a1500;
    border: 2px solid var(--phosphor-primary);
    padding: 0 15px;
    font-family: 'Courier New', monospace;
}

#input-area span {
    font-size: 1.5em;
    margin-right: 10px;
    color: var(--phosphor-primary);
}

#command-input {
    background: transparent;
    border: none;
    color: var(--phosphor-primary);
    font-family: inherit;
    font-size: 1.2em;
    flex-grow: 1;
    outline: none;
}