/* ============================================ */
/* Chat Commands (Slash Commands) Styles */
/* ============================================ */

.chat-input-container {
    position: relative;
}

.chat-slash-commands {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary, #fff);
    border: 1px solid var(--border-color, #ddd);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-bottom: 0;
}

.chat-command-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-color, #eee);
}

.chat-command-item:last-child {
    border-bottom: none;
}

.chat-command-item:hover,
.chat-command-item.selected {
    background-color: var(--bg-panel);
}

.chat-command-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.command-info {
    flex: 1;
}

.command-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.command-description {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Command help message */
.command-help {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    text-align: center;
}

.command-help h4 {
    margin: 20px;
    color: var(--accent);
    font-size: 1.1rem;
}

.help-command {
    border-bottom: solid 1px var(--border);
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-bottom: 20px;
    padding-top: 20px;
}

.help-command:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.help-command-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    width: -webkit-fill-available;
}

.help-command-header i {
    font-size: 1rem;
}

.help-command-header strong {
    font-family: 'Courier New', monospace;
    color: var(--text-main, #333);
}

.help-command-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    width: -webkit-fill-available;
    text-align: left;
}

/* System message styling */
.chat-message-system {
    background-color: transparent;
    border-left: solid 1px var(--accent);
    padding: 12px 16px;
    border-radius: 8px;
    margin: 8px 0;
    width: -webkit-fill-available;
    max-width: 100%;
}

.chat-message-system .message-content {
    color: var(--accent);
}

.chat-message-system i {
    margin-right: 8px;
}
