﻿.listview-container {
    font-family: sans-serif;
}

.listview {
    list-style: none;
    padding: 0;
}

.listview-item {
    border-bottom: 1px solid #ccc;
}

.listview-item-header {
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: #f0f0f0;
}

.main-item > .listview-item-header {
    background-color: #ddd;
}

.item-label {
    flex-grow: 1;
    margin-left: 5px;
}

.listview-children {
    list-style: none;
    padding-left: 20px;
    display: none;
}

.listview-item.expanded > .listview-children {
    display: block;
}

.edit-button,
.delete-button,
.add-button {
    cursor: pointer;
    margin-left: 5px;
    background-color: #4CAF50;
    /* Green */
    border: none;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    border-radius: 5px;
}

.add-object-button {
    background-color: #008CBA;
    /* Blue */
}

.edit-button {
    background-color: #f9e076;
    color: black;
}

.delete-button {
    background-color: #f44336;
}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Styles for the expand/collapse indicators */
.listview-item-header::before {
    content: "\25B6";
    /* Unicode for a right-pointing triangle */
    display: inline-block;
    margin-right: 5px;
    transition: transform 0.2s ease-in-out;
}

.listview-item.expanded > .listview-item-header::before {
    transform: rotate(90deg);
    /* Rotate the triangle when expanded */
}

.listview-scrollable {
    width: 600px;
    height: 600px;
    overflow: auto;
}