﻿
.tree-container {
    max-width: 600px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}



.tree-view,
.nested {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .tree-view li {
        background: #fff;
        margin-bottom: 10px;
/*        padding: 12px;*/
        border-radius: 12px;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        line-height:20px;
/*        box-shadow: 0 2px 6px rgba(0,0,0,.06);*/
    }

    .tree-view label {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        font-size: 16px;
        cursor: pointer;
    }

.star {
    font-size: 24px;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
    user-select: none;
    margin-left: 10px; /* النجمة على الشمال */
}

    .star.filled {
        color: #f5b301;
    }

.nested {
    width: 100%;
    margin-top: 8px;
    padding-right: 20px;
    border-right: 2px solid #e3e6ea;
}

.toggler {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fdb813;
    color: #000000;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    margin-left: 10px;
}
.spanTogglar {
    width: 28px;
    height: 28px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

    .toggler.collapsed::after {
        content: "›";
    }

    .toggler.expanded::after {
        content: "⌄";
        height:100%;
    }
.category-checkbox {
    width: 18px;
    height: 18px;
}

/*button {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    font-size: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    cursor: pointer;
}

    button:hover {
        opacity: .9;
    }*/

@media (max-width: 768px) {
/*    body {
        padding: 10px;
    }

    h2 {
        font-size: 18px;
    }*/

/*    .star {
        font-size: 28px;
    }*/
}
