﻿/* === Base Layout === */
main {
    display: flex;
    flex-direction: row;
    min-height: 90%;
    scroll-behavior:auto;
    background-color: #f8fafc;
}


.doc-div {
    flex: 0 0 250px;
    border-right: 1px solid #e5e7eb;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.doc-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.doc-item {
    margin-bottom: 0.4rem;
}

.doc-link {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none !important; 
}

    .doc-link:hover {
        background-color: #e5e7eb;
        color: #111827;
    }

.doc-item.active > .doc-link {
    background-color: #C5D644;
    color: #fff;
}

/* === Main Content === */
.main-div {
    flex: 1;
    padding: 2rem 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

    .main-div .block {
        margin-bottom: 2rem;
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        padding: 1.5rem;
    }

/* === Scrollbar Styling (optional, for polish) === */
.doc-div::-webkit-scrollbar {
    width: 8px;
}

.doc-div::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* === Responsive Design === */
@media (max-width: 900px) {
    main {
        flex-direction: column;
    }

    .doc-div {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        position: relative;
        top: auto;
    }

    .main-div {
        padding: 1.5rem;
        max-width: 100%;
        margin: 0;
    }
}
