﻿
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f4f7fb;
    color: #263247;
    font-family: Arial, Helvetica, sans-serif;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 283px;
    flex-shrink: 0;
    background: #15243b;
    color: white;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 35px 5px;
}

.brand-icon {
    background: #20b486;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 23px;
}

.sidebar-label {
    color: #93a4bd;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.2px;
    padding: 0 10px 12px;
}

.nav-item-custom {
    display: block;
    color: #d4deec;
    padding: 13px 12px;
    margin-bottom: 5px;
    text-decoration: none;
    border-radius: 8px;
    transition: background .2s;
}

    .nav-item-custom span {
        display: inline-block;
        width: 27px;
    }

    .nav-item-custom:hover,
    .nav-item-custom:focus {
        background: #253b5b;
        color: white;
    }

.sidebar-bottom {
    margin-top: auto;
    padding: 22px 10px 0;
    line-height: 1.8;
}

.main-area {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    min-height: 76px;
    background: white;
    border-bottom: 1px solid #e5eaf1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px 28px;
}

.page-heading {
    font-size: 17px;
    font-weight: 700;
    margin-left: 10px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.content-area {
    padding: 28px;
    flex: 1;
}

.footer {
    padding: 18px 28px;
    color: #718096;
    font-size: 12px;
    border-top: 1px solid #e5eaf1;
    background: white;
}

@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -260px;
        z-index: 1000;
        transition: left .25s;
    }

    body.sidebar-open .sidebar {
        left: 0;
    }

    .topbar {
        padding: 14px;
        flex-wrap: wrap;
    }

    .content-area {
        padding: 16px;
    }

    .user-name {
        display: none;
    }
}
