﻿.main-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    box-sizing: border-box;
}
.body-content {
    padding-left: 11%;
    padding-right: 2%;
}
@media (max-width: 480px) {
    .body-content {
        padding-left: 6px;
        padding-right: 6px;
    }
}
.sidebar {
    min-width: 220px;
    max-width: 260px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    margin-right: 12px;
    padding: 0;
    box-sizing: border-box;
    /* Prevent sidebar from growing too much */
    flex-shrink: 0;
    margin-top: 3%;
}

.navbar3-container {
    padding: 0;
    margin: 0;
}

.navbar3-title {
    padding: 10px 17px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background: #fafafa;
    border-bottom: 1px solid #e9ecef;
}

.navbar3-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .navbar3-list li a {
        display: block;
        color: #007bff;
        text-decoration: none;
        padding: 8px 16px;
        font-size: 15px;
        border-bottom: 1px solid #e9ecef;
        transition: background 0.2s;
    }

        .navbar3-list li a:hover {
            background: #f2f6fc;
        }

.content {
    flex: 1;
    min-width: 0;
    padding: 8px;
    box-sizing: border-box;
    /* add overflow hidden if needed */
}

/* Responsive Design for tablets & phones */
@media (max-width: 969px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        max-width: none;
        min-width: 0;
        margin-right: 0;
        margin-bottom: 18px;
        border-radius: 6px;
        box-shadow: 0 0 6px rgba(0,0,0,0.05);
    }

    .content {
        padding: 8px 0;
    }
}
