/* ===== COMET MODULE (TRAJECTORY-BASED EFFECTS) - CSS OVERRIDES ===== */

/* COMET-specific value display color (ice blue theme) */
.comet-instance .value-display {
    color: #00E8FF !important; /* Ice blue for comet theme */
}

/* COMET-specific slider styling (ice blue theme) */
.comet-instance input[type="range"]::-webkit-slider-thumb {
    background: linear-gradient(45deg, #00E8FF, #0099CC) !important;
    border: 2px solid #004466 !important;
}

.comet-instance input[type="range"]::-moz-range-thumb {
    background: linear-gradient(45deg, #00E8FF, #0099CC) !important;
    border: 2px solid #004466 !important;
}

.comet-instance input[type="range"]::-webkit-slider-thumb:hover {
    background: linear-gradient(45deg, #33EEFF, #00BBDD) !important;
    transform: scale(1.1) !important;
}

.comet-instance input[type="range"]::-moz-range-thumb:hover {
    background: linear-gradient(45deg, #33EEFF, #00BBDD) !important;
    transform: scale(1.1) !important;
}

/* COMET-specific dropdown styling (ice blue theme) */
.comet-instance select {
    color: #00E8FF !important;
}

.comet-instance select:hover {
    border-color: #00E8FF !important;
}

.comet-instance select:focus {
    border-color: #00E8FF !important;
}

.comet-instance select option {
    color: #00E8FF !important;
}

/* COMET Audio Input Styling */
.comet-instance .patching-field input {
    color: #FFAA00 !important;
}

.comet-instance .patch-connection-indicator.connected {
    background: #FFAA00 !important;
    border-color: #FFAA00 !important;
    box-shadow: 0 0 6px rgba(255, 170, 0, 0.6) !important;
}

/* COMET Module Layout Optimization - Fit components within module bounds */
.comet-instance .comet-space {
    height: 18px; /* Reduced from 20px to save space */
    width: 100%;
}

.comet-instance .component {
    margin-bottom: 8px; /* Reduced from 15px to save space */
}

/* COMET Button (Start/Stop) */
.comet-button .comet-btn {
    width: 100%;
    padding: 6px 0;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #333;
    color: #fff;
    transition: background 0.2s, border 0.2s;
}

.comet-button .comet-btn:hover {
    background: #555;
}

.comet-button .comet-btn.active {
    background: #00E8FF;
    border: 1px solid #111;
    color: #000;
}

/* Output Indicator */
.comet-output-indicator-field {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 5px;
    height: 25px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.comet-output-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comet-output-right .comet-output-led {
    width: 10px;
    height: 10px;
    background: #444;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
}

.comet-output-right .comet-output-led.active {
    background: #00E8FF;
    box-shadow: 0 0 8px #00E8FF;
}

/* Responsive adjustments */
@media (max-width: 300px) {
    .comet-slider-pot-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .comet-value-display {
        align-self: flex-end;
    }
}