/* ============================================================
   Palette Commands Styles for ControlCycle Studio
   ============================================================ */

.palette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    padding-top: 15vh;
    z-index: 9999;
    animation: paletteFadeIn 0.15s ease-out;
}

@keyframes paletteFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.palette-modal {
    background: #1e1e1e;
    border: 1px solid #3c3c3c;
    border-radius: 12px;
    width: 620px;
    max-height: 380px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: paletteSlideDown 0.15s ease-out;
}

@keyframes paletteSlideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.palette-input-wrapper {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #333;
    background: #252526;
}

.palette-icon {
    color: #888;
    font-size: 16px;
    font-family: monospace;
    margin-right: 10px;
}

.palette-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #d4d4d4;
    font-size: 15px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.palette-input::placeholder {
    color: #666;
}

.palette-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 4px 0;
}

.palette-list::-webkit-scrollbar {
    width: 6px;
}

.palette-list::-webkit-scrollbar-thumb {
    background: #424242;
    border-radius: 3px;
}

.palette-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.1s;
}

.palette-item:hover,
.palette-item.selected {
    background: #2a2d2e;
}

.palette-label {
    color: #cccccc;
    font-size: 14px;
}

.palette-label mark {
    background: transparent;
    color: #ffcc00;
}

.palette-shortcut {
    color: #666;
    font-size: 12px;
    font-family: 'Consolas', 'Monaco', monospace;
    background: #333;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 12px;
}
