* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: #ddd;
}

body {
    background: #f4f4f4;
    color: #333;
}

header {
    background: #111;
    color: white;
    padding: 25px;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.wiki-container {
    display: flex;
    height: calc(100vh - 110px);
    margin-bottom: 60px;
}

.sidebar {
    width: 260px;
    background: #181818;
    padding: 15px;
    overflow-y: auto;
    border-right: 1px solid #333;
}

.tree {
    list-style: none;
}

.tree li {
    margin: 6px 0;
}

.folder {
    font-weight: bold;
    display: block;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.folder:hover {
    background: #333;
}

.tree ul {
    list-style: none;
    margin-left: 15px;
    display: none;
}

.tree ul.open {
    display: block;
}

.tree li[data-page] {
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.tree li[data-page]:hover {
    background: #333;
}

.tree li.active {
    background: #007bff;
    color: white;
}

.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: #252525;
}

.content h2 {
    margin-bottom: 15px;
    color: white;
}

.content p, .content ul {
    margin-bottom: 12px;
    line-height: 1.6;
}

.content ul {
    padding-left: 20px;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.footer a {
    color: white;
    font-size: 1.5rem;
    transition: 0.3s;
}

.footer a:hover {
    color: #1da1f2;
}