.app-panel {
    min-height: 100vh;
}

.sidebar {
    position: fixed;

    left: 0;
    top: 0;
    bottom: 0;

    width: 245px;

    background: white;

    border-right:
        1px solid #ececec;

    display: flex;

    flex-direction: column;

    z-index: 20;
}

.sidebar-header {
    height: 84px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 19px;

    border-bottom:
        1px solid #eeeeee;
}

.sidebar-logo {
    width: 44px;
    height: 44px;

    min-width: 44px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #c50000;

    color: white;

    font-weight: 800;
}

.sidebar-header > div:last-child {
    display: flex;

    flex-direction: column;
}

.sidebar-header strong {
    font-size: calc(16px * var(--text-scale, 1));
}

.sidebar-header span {
    color: #999;

    font-size: calc(12px * var(--text-scale, 1));

    margin-top: 3px;
}

.sidebar-menu {
    flex: 1;

    padding: 18px 12px;
}

.menu-item {
    width: 100%;

    border: none;

    background: transparent;

    padding: 13px;

    margin-bottom: 5px;

    border-radius: 11px;

    display: flex;

    align-items: center;

    gap: 12px;

    color: #555;

    font-size: calc(14px * var(--text-scale, 1));

    font-weight: 600;

    text-align: left;
}

.menu-item span {
    width: 21px;

    text-align: center;

    font-size: calc(18px * var(--text-scale, 1));
}

.menu-item:hover {
    background: #f7f7f7;
}

.menu-item.active {
    background: #fff0f0;

    color: #b90000;
}

.sidebar-footer {
    padding: 14px 12px;

    border-top:
        1px solid #eeeeee;
}

.sidebar-footer button {
    width: 100%;

    border: none;

    background: transparent;

    padding: 13px;

    border-radius: 10px;

    text-align: left;

    font-weight: 600;

    color: #c50000;
}

.sidebar-footer button:hover {
    background: #fff0f0;
}

.main-content {
    min-height: 100vh;

    margin-left: 245px;

    padding: 28px;

    background: #f5f6f8;
}


@media (max-width: 700px) {

    .sidebar {
        width: 185px;
    }

    .main-content {
        margin-left: 185px;

        padding: 17px;
    }

    .sidebar-header {
        padding: 0 12px;
    }

    .sidebar-menu {
        padding: 14px 7px;
    }

    .menu-item {
        padding: 11px 9px;

        font-size: calc(12px * var(--text-scale, 1));

        gap: 7px;
    }

}


@media (max-width: 430px) {

    .sidebar {
        width: 160px;
    }

    .main-content {
        margin-left: 160px;

        padding: 11px;
    }

    .sidebar-logo {
        width: 37px;
        height: 37px;

        min-width: 37px;
    }

    .sidebar-header strong {
        font-size: calc(13px * var(--text-scale, 1));
    }

    .sidebar-header span {
        font-size: calc(10px * var(--text-scale, 1));
    }

}

/* =========================
KULLANICI PROFİL ALANI
========================= */

.user-header {
    gap: 11px;
}


.user-avatar {
    width: 46px;
    height: 46px;

    min-width: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #d50000,
            #950000
        );

    color: white;

    font-size: calc(15px * var(--text-scale, 1));

    font-weight: 800;

    box-shadow:
        0 4px 12px
        rgba(180, 0, 0, 0.2);
}


.user-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.sidebar-user {
    min-width: 0;

    flex: 1;
}


.sidebar-user > strong {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: calc(14px * var(--text-scale, 1));
}


.sidebar-user-meta {
    display: flex;

    align-items: center;

    gap: 4px;

    margin-top: 4px;

    font-size: calc(10px * var(--text-scale, 1));
}


.sidebar-user-meta span {
    margin: 0;

    color: #888;
}


.sidebar-user-meta .dot {
    color: #bbb;
}


.sidebar-user-meta strong {
    color: #c00000;

    font-size: calc(10px * var(--text-scale, 1));
}