.sivusta-content .site-structure,
.sivusta-content .database-structure {
    margin-bottom: 30px;
}

.tree-container {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 15px;
}

.tree-item {
    padding: 5px 0 5px 15px;
    position: relative;
}

.tree-item.folder > span {
    cursor: pointer;
    font-weight: bold;
    color: #2c3e50;
    position: relative;
    padding-left: 20px;
    display: inline-block; 
    width: 100%;
}

.site-structure-detail,
.database-structure-detail {
    display: none;
    background-color: #2c3e50;
    color: #ecf0f1;
    font-family: monospace;
    padding: 15px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.site-structure-detail.visible,
.database-structure-detail.visible {
    display: block;
}

.show-structure-btn,
.show-database-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    cursor: pointer;
}

.project-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.tree-item.folder > span::before {
    content: '▶';
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

.tree-item.folder.expanded > span::before {
    transform: rotate(90deg);
}

.tree-item.folder > .children {
    display: none;
}

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

.project-links {
    margin-bottom: 30px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.link-item {
    display: block;
    padding: 10px;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.link-item:hover {
    background-color: #219a52;
}

.test-users {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.users-list {
    display: flex;
    justify-content: space-between;
}

.user-item {
    background-color: #ecf0f1;
    padding: 10px;
    border-radius: 5px;
    flex-grow: 1;
    margin: 0 10px;
    text-align: center;
}

.sivusta {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    margin: 100px auto 40px;
}

@media screen and (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
    }

    .users-list {
        flex-direction: column;
    }

    .user-item {
        margin: 10px 0;
    }

    .sivusta {
        max-width: 90%;
    }

}
