/* Parameters Panel Styles */
/* TouchDesigner-style design following gatito-cheer specifications */

.parameters-panel {
    position: relative;
    width: 320px;
    min-width: 240px;
    max-width: 500px;
    background: #1e1e1e;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
}

.parameters-panel-header {
    padding: 12px;
    background: #252525;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.parameters-panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
}

.parameters-panel-subtitle {
    font-size: 13px;
    color: #ccc;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.parameters-panel-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
}

.parameters-panel-content::-webkit-scrollbar {
    width: 8px;
}

.parameters-panel-content::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.parameters-panel-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.parameters-panel-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.parameters-panel-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    text-align: center;
    padding: 40px 20px;
}

.parameters-panel-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.parameters-panel-empty-message {
    font-size: 14px;
    color: #666;
}

.parameters-section {
    margin-bottom: 16px;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
}

.parameters-section-header {
    height: 36px;
    background: #252525;
    padding: 8px 12px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.parameters-section-header:hover {
    background: #2a2a2a;
}

.parameters-section-toggle {
    font-size: 10px;
    color: #888;
    margin-right: 8px;
    transition: transform 0.2s;
    width: 12px;
    text-align: center;
}

.parameters-section.expanded .parameters-section-toggle {
    transform: rotate(90deg);
}

.parameters-section-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.parameters-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background: #1e1e1e;
}

.parameters-section.expanded .parameters-section-content {
    max-height: 2000px;
    transition: max-height 0.3s ease-in;
}

.parameters-section-content-inner {
    padding: 8px 12px;
}

.parameter-item {
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}

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

.parameter-label {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 4px;
    display: block;
}

.parameter-label.required::after {
    content: " *";
    color: #e74c3c;
}

.parameter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.parameter-input {
    width: 100%;
    height: 28px;
    background: #252525;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 8px;
    color: #fff;
    font-size: 13px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.parameter-input:focus {
    border-color: #4a9eff;
}

.parameter-input.invalid {
    border-color: #e74c3c;
}

.parameter-input.valid {
    border-color: #2ecc71;
}

.parameter-input[type="number"] {
    -moz-appearance: textfield;
}

.parameter-number-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.parameter-hint {
    font-size: 11px;
    font-style: italic;
    color: #888;
    opacity: 0.5;
    white-space: nowrap;
    flex-shrink: 0;
}

.parameter-input[type="number"]::-webkit-inner-spin-button,
.parameter-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.parameter-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.parameter-slider {
    flex: 1;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.parameter-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #4a9eff;
    border: 2px solid #1e1e1e;
    border-radius: 50%;
    cursor: pointer;
}

.parameter-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #4a9eff;
    border: 2px solid #1e1e1e;
    border-radius: 50%;
    cursor: pointer;
}

.parameter-slider-value {
    width: 60px;
    min-width: 60px;
}

.parameter-select {
    width: 100%;
    height: 28px;
    background: #252525;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 8px;
    color: #fff;
    font-size: 13px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.parameter-select:focus {
    border-color: #4a9eff;
}

.parameter-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.parameter-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #4a9eff;
}

.parameter-checkbox-label {
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.parameter-color-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.parameter-color-picker {
    width: 40px;
    height: 28px;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    background: none;
    padding: 0;
    outline: none;
}

.parameter-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.parameter-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 3px;
}

.parameter-color-value {
    flex: 1;
}

.parameter-file-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.parameter-file-input {
    flex: 1;
}

.parameter-file-button {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 6px 12px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.parameter-file-button:hover {
    background: #333;
}

.parameter-file-button:active {
    background: #3a3a3a;
}

.parameter-help {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}

.parameter-error {
    font-size: 11px;
    color: #e74c3c;
    margin-top: 4px;
}

.parameters-presets-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #333;
}

.parameters-presets-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
}

.parameters-presets-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.parameters-preset-select {
    width: 100%;
}

.parameters-preset-buttons {
    display: flex;
    gap: 8px;
}

.parameters-preset-button {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 6px 12px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.parameters-preset-button:hover {
    background: #333;
}

.parameters-preset-button:active {
    background: #3a3a3a;
}

.parameters-preset-button.primary {
    background: #4a9eff;
}

.parameters-preset-button.primary:hover {
    background: #3a8eef;
}

