/**
 * panel.css – Stile für das linke Eingabepanel
 * Version 2.1 – Labels vollständig sichtbar
 */

#input-panel {
    flex: 0 0 38%;
    min-width: 320px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    background: #faf3e8;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

#input-panel::-webkit-scrollbar {
    width: 5px;
}
#input-panel::-webkit-scrollbar-thumb {
    background: #d0c0b0;
    border-radius: 3px;
}

.panel-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-section {
    margin-bottom: 3px;
    padding-bottom: 3px;
    border-bottom: 1px solid #e8ddd0;
}
.input-section:last-child {
    border-bottom: none;
}
.input-section h2 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a3a2a;
    margin-bottom: 2px;
}

/* Radio & Select */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 10px;
}
.radio-group label {
    font-size: 0.78rem;
    cursor: pointer;
}
select {
    width: 100%;
    padding: 3px 6px;
    border: 1px solid #d0c0b0;
    border-radius: 3px;
    font-size: 0.78rem;
    background: #fff;
}

.weight-link {
    margin-top: 2px;
}
.weight-link a {
    font-size: 0.75rem;
    color: #4a7a9a;
    text-decoration: none;
}
.weight-link a:hover {
    text-decoration: underline;
}

#profile-name-display {
    margin-top: 3px;
    font-size: 0.8rem;
    color: #4a7a9a;
    min-height: 1.2em;
}

/* ===== PARAMETER-GRID ===== */
.parameter-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.parameter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
    border-left: 3px solid #d0c0b0;
    min-height: 28px;
}

.param-label {
    flex: 0 0 55%;
    font-size: 0.75rem;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    padding-right: 4px;
}

.param-name {
    font-weight: 400;
}

.param-block {
    font-size: 0.6rem;
    color: #999;
    margin-left: 3px;
    white-space: nowrap;
}

.param-inputs {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.param-inputs input {
    padding: 2px 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.8rem;
    text-align: right;
    background: #fff;
    width: 60px;
}

.param-inputs input.param-value {
    width: 65px;
}

/* Gewichte ausgeblendet */
.param-weight,
.param-separator {
    display: none !important;
}

/* ===== EBENEN-NAME ===== */
.level-name-input {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: 2px;
}
.level-name-input label {
    font-size: 0.78rem;
    color: #4a3a2a;
    white-space: nowrap;
}
.level-name-input input[type="text"] {
    flex: 1;
    padding: 3px 6px;
    border: 1px solid #d0c0b0;
    border-radius: 3px;
    font-size: 0.8rem;
    background: #fff;
}

/* ===== SKALIERUNG ===== */
.scaling-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.scaling-input input[type="number"] {
    width: 55px;
    padding: 2px 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.8rem;
}
.scaling-info {
    font-size: 0.75rem;
    color: #666;
}

/* ===== FARBEN ===== */
.color-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.color-picker-group {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
}
.color-picker-group input[type="color"] {
    width: 28px;
    height: 24px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 1px;
}
.color-picker-group input[type="range"] {
    width: 60px;
}

.color-preview {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
}
.preview-box {
    display: inline-block;
    width: 32px;
    height: 24px;
    border: 1px solid #ccc;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
        linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}
#color-preview-overlay {
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

/* ===== BUTTONS ===== */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.btn {
    padding: 3px 12px;
    border: none;
    border-radius: 3px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-primary {
    background: #4a7a9a;
    color: #fff;
}
.btn-primary:hover {
    background: #3a6a8a;
}
.btn-secondary {
    background: #b0a090;
    color: #fff;
}
.btn-secondary:hover {
    background: #a09080;
}
.btn-danger {
    background: #c05050;
    color: #fff;
}
.btn-danger:hover {
    background: #b04040;
}