/* AutoCAD-Inspired "Command Line" Bar */
:root {
    --bg-overlay: rgba(10, 10, 10, 0.95);
    --text-color: #fff;
    --border-color: #333;
    --input-bg: transparent;
}

body.light-mode {
    --bg-overlay: rgba(169, 169, 169, 0.95);
    --text-color: #333;
    --border-color: #999;
    --input-bg: #fff;
}

/* Update AutoCAD bar to use variables */
.autocad-bar {
    position: fixed;
    bottom: 310px;
    /* Above the carousel */
    left: 50%;
    transform: translateX(-50%);
    width: 690px;
    height: 56px;
    background: var(--bg-overlay);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    /* Slightly squarer like CAD tools */
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-family: 'Consolas', 'Monaco', monospace;
    /* CAD font */
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: box-shadow 0.2s, background 0.3s, border-color 0.3s;
    color: var(--text-color);
}

.autocad-prompt {
    color: var(--text-color);
    font-size: 0.85rem;
    margin-right: 12px;
    user-select: none;
    font-weight: 700;
}

body.light-mode .autocad-prompt {
    color: #555;
}

.autocad-input {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1rem;
    width: 100%;
    outline: none;
}

.autocad-input::placeholder {
    color: #555;
}

body.light-mode .autocad-input::placeholder {
    color: #888;
}


/* Blinking Cursor Effect */
.autocad-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* CAD Tool Suggestions (Floating above bar) */
.autocad-suggestions {
    position: absolute;
    bottom: 55px;
    /* Above the bar */
    left: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #333;
    border-radius: 4px;
    display: none;
    /* Hidden by default */
    flex-direction: column;
}

.cad-suggestion-item {
    padding: 10px 16px;
    color: #aaa;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid #222;
    transition: all 0.1s;
    display: flex;
    justify-content: space-between;
}

.cad-suggestion-item:last-child {
    border-bottom: none;
}

.cad-suggestion-item:hover,
.cad-suggestion-item.active {
    background: #FFAB00;
    color: #000;
}

.shortcut-key {
    font-size: 0.8rem;
    opacity: 0.6;
    border: 1px solid currentColor;
    padding: 0 4px;
    border-radius: 2px;
}

/* Draggable handle */
.drag-handle {
    width: 12px;
    height: 12px;
    background: #333;
    margin-right: 12px;
    cursor: grab;
    border-radius: 2px;
}

.drag-handle:hover {
    background: #555;
}