body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6f9;
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: #1e3a5f;
    color: white;
    min-height: 100vh;
    padding-top: 10px;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
}

.sidebar h2 {
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 70px;
}

/* Menu */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu > li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.menu > li > a,
.parent-menu > span {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    background-color: #1e3a5f;
    box-sizing: border-box;
}

.menu > li > a:hover,
.parent-menu > span:hover {
    background-color: #29527a;
}

/* Submenu */
.submenu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #16324d;
}

.submenu li {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.submenu li a {
    display: block;
    color: #e6edf5;
    text-decoration: none;
    padding: 10px 36px;
    font-size: 14px;
    line-height: 1.3;
    box-sizing: border-box;
}

.submenu li a:hover {
    background-color: #29527a;
    color: #ffffff;
}

/* Main Area */
.main-area {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.top-header {
    height: 70px;
    background-color: #1e3a5f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-left h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: white;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.user-name {
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: white;
    white-space: nowrap;
}

.profile-photo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    display: block;
}

/* Content */
.content {
    flex: 1;
    background-color: #f4f6f9;
    padding: 25px 20px;
    box-sizing: border-box;
}

.content h1 {
    font-size: 30px;
    margin-top: 0;
    color: #111;
}

.content p {
    font-size: 15px;
    color: #444;
}

/* Mobile topbar hidden in desktop */
.mobile-topbar {
    display: none;
}

/* Mobile View */
@media screen and (max-width: 768px) {
    .container {
        display: block;
    }

    /* Sidebar mobile */
    .sidebar {
        position: fixed;
        top: 70px;
        left: -270px;
        width: 260px;
        height: calc(100vh - 70px);
        min-height: auto;
        z-index: 999;
        padding-top: 10px;
        transition: left 0.3s ease;
    }

    .sidebar.show {
        left: 0;
    }

    .sidebar h2 {
        display: none;
    }

    /* Main area full width */
    .main-area {
        margin-left: 0;
        width: 100%;
    }

    /* Fixed mobile header */
    .top-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px;
        z-index: 1000;
        padding: 0 14px;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .header-left h3 {
        font-size: 18px;
    }

    .header-right {
        gap: 8px;
    }

    .user-name {
        font-size: 13px;
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .profile-photo {
        width: 36px;
        height: 36px;
    }

    /* hamburger button */
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 0;
        margin: 0;
        width: 32px;
        height: 32px;
    }

    /* content নিচে নামবে কারণ header fixed */
    .content {
        padding: 95px 15px 20px 15px;
    }
}