﻿/* OperandTreeModernStyles.css */
.operand-tree {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    padding: 1rem;
    font-size: 1rem;
    color: #1f1f1f;
}

.operand-list {
    list-style-type: none;
    padding-left: 1.25rem;
    margin: 0;
    width: 500px;
}

.operand-node {
    margin-bottom: 10px;
}

.operand-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* trennt Name links / Checkboxen rechts */
    gap: 0.75rem;
}


    .operand-header:hover {
        background-color: #f5faff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

.toggle-button {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

    .toggle-button:hover {
        background-color: #e1eaff;
    }

.operand-name {
    font-weight: 500;
    flex-grow: 1;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0; 
}

    .checkbox-label + .checkbox-label {
        margin-left: 0.5rem; /* Abstand zwischen beiden Checkboxen */
    }

    .checkbox-label input {
        width: 1rem;
        height: 1rem;
        accent-color: #007bff;
        cursor: pointer;
    }

        .checkbox-label input:disabled {
            opacity: 0.4;
            cursor: default;
        }

.material-symbol {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 1.2rem;
    display: inline-block;
    line-height: 1;
    margin-left: 0.15rem;
    user-select: none;
    color: #007bff;
}

    .material-symbol.disabled {
        opacity: 0.4;
        color: #999;
    }

.dialog-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}


.highlighted {
    background-color: #fff5cc !important;
    border: 2px solid #ffc107;
}


@media (max-width: 600px) {
    .operand-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
