
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.6;
}

#menu {
    grid-area: menu; 
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    height: auto;
    position: sticky;
    top: 20px;
    margin-left: 20px; 
    margin-right: 20px;
}

#menu dl {
    margin-bottom: 15px;
}

#menu details {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#menu summary {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    color: #333;
}

#menu .arrow {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.2em;
    margin-right: 8px;
    color: #555;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1); 
    transition: color 0.2s ease-in-out;
}

#menu .summary-text {
    flex-grow: 1; 
}

#menu summary:hover {
    background-color: #ddd;
}

#menu summary:hover .arrow {
    color: #007bff;
}

#menu details > summary::marker {
    display: none; 
}

#menu .daughter {
    margin-left: 15px;
    margin-top: 5px;
}

#menu .daughter summary {
    font-size: 0.9rem;
    padding: 8px;
    background-color: #f8f9fa;
    color: #555;
}

#menu .daughter summary:hover {
    background-color: #f1f3f5;
}

#menu dd {
    padding: 8px 15px;
    margin-left: 0;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    color: #6c757d;
    font-size: 0.85rem;
}

#menu dd:hover {
    background-color: #007bff;
    color: white;
}

#preview {
    grid-area: preview; 
    padding: 20px;
}


#preview iframe {
    width: 100%;
    height: 80vh; 
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}


#content {
    grid-area: content; 
    padding: 20px;
}


#container {
    display: grid;
    grid-template-areas:
        "menu preview"
        "menu content"; 
    grid-template-columns: 320px 1fr;
    grid-template-rows: auto 1fr; 
    min-height: calc(100vh - 130px);
    margin-top: 20px;
}

.footer {
    padding: 20px 0;
    margin-top: auto;
}

.social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
}