﻿@media (max-width: 991.98px) {
    .sidebar21 {
        position: fixed !important;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar21.show {
        transform: translateX(0);
    }

    /* 🔥 Burası eksik: içerik sola yaslansın */
    .layout-wrapper {
        flex-direction: column !important;
    }

    .main-content {
        width: 100% !important;
    }
}

.sidebar21 {
    transform: translateX(-100%);
}

    .sidebar21.show {
        transform: translateX(0);
    }

@media (min-width: 992px) {
    .sidebar21 {
        transform: none !important;
    }
}

.layout-wrapper {
    display: flex;
    min-height: 100vh;
}
.sidebar21 {
    width: 240px;
    background-color: #1f1f2e;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1050;
}
.sidebar21.show {
    transform: translateX(0);
}
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0,0,0,0.5);
    z-index: -50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-overlay.show {
    opacity: 1;
    pointer-events: all;
}
 

@media (max-width: 991.98px) {
    .sidebar21 {
        position: fixed !important;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 911050;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        .sidebar21.show {
            transform: translateX(0);
        }

    /* 🔥 Burası eksik: içerik sola yaslansın */
    .layout-wrapper {
        flex-direction: column !important;
    }

    .main-content {
        width: 100% !important;
    }
}
 

@media (min-width: 992px) {
    .layout-wrapper {
        display: flex;
        flex-direction: row;
    }

    .main-content {
        flex-grow: 1;
    }

    .sidebar21 {
        position: static !important;
        transform: none !important;
        width: 240px;
        z-index: 911050;
    }
}

.main-content {
    padding: 1.5rem 1.5rem;
}

.sidebar21 {
    min-width: 190px; /* Bunu 260-280px yaparsan daha ferah olur */
    max-width: 190px;
}

@media (max-width: 992px) {
    .sidebar21 {
        min-width: 190px;
        max-width: 190px;
    }
}

@media (min-width: 992px) {
    .sidebar21 {
        min-width: 190px;
        max-width: 190px;
    }
}


.nav-link {
    cursor: pointer;
}