body { background: #f6f7fa; }

/* ---- SIDEBAR GENİŞ HALİ (varsayılan) ---- */
.admin-sidebar {
    width: 220px;
    min-height: 100vh;
    background: #232a31;
    color: #fff;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    transition: width 0.2s cubic-bezier(.5,1.8,.7,.8);
    box-shadow: 0 0 16px 0 rgba(20,32,43,0.06);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.admin-sidebar .logo {
    background: #1a1f23;
    text-align: center;
    padding: 20px 0 16px 0;
}
.admin-sidebar .logo img {
    width: auto;
    height: 32px;
    max-width: 100%;
    display: inline-block;
    object-fit: contain;
    transition: height .2s, width .2s;
}
.admin-sidebar ul {
    list-style: none; padding: 0; margin: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}
.admin-sidebar ul li {
    border-bottom: 1px solid #22272e;
}
.admin-sidebar ul li a {
    display: flex; align-items: center; justify-content: flex-start;
    color: #d7dee9;
    padding: 16px 28px;
    text-decoration: none;
    font-size: 1.05rem;
    transition: background 0.16s, color 0.16s;
}
.admin-sidebar ul li a.active, 
.admin-sidebar ul li a:hover {
    background: #323e48;
    color: #fff;
}
.admin-sidebar ul li a.inactive, 
.admin-sidebar ul li a.inactive:visited {
    opacity: .5;
    cursor: not-allowed;
    background: none !important;
    color: #d7dee9 !important;
}
.admin-sidebar ul li a i {
    margin-right: 12px; 
    min-width: 18px; 
    text-align: center;
    font-size: 1.18rem;
}
.menu-label {
    display: inline;
    transition: opacity .2s, margin .2s;
}

/* ---- ANA İÇERİK ---- */
.admin-main-content {
    margin-left: 220px;
    min-height: 100vh;
    transition: margin-left 0.2s cubic-bezier(.5,1.8,.7,.8);
}
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: .8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-topbar .admin-user {
    font-weight: 500;
    color: #232a31;
}
.admin-panel-content {
    padding: 2.5rem 2rem;
}

/* ---- SIDEBAR DAR (collapsed) HALİ ---- */
.admin-sidebar.collapsed {
    width: 64px !important;
}
.admin-sidebar.collapsed .logo img {
    height: 20px;
}
.admin-sidebar.collapsed ul li a {
    justify-content: center;
    font-size: 0;
    padding: 20px 0;
}
.admin-sidebar.collapsed ul li a i {
    margin: 0;
    font-size: 1.35rem;
}
.admin-sidebar.collapsed .menu-label {
    display: none !important;
}
.admin-main-content.collapsed {
    margin-left: 64px !important;
}

/* ---- SIDEBAR AÇIK (expanded) HALİ ---- */
.admin-sidebar.expanded {
    width: 220px !important;
}
.admin-sidebar.expanded .logo img {
    height: 32px;
}
.admin-sidebar.expanded ul li a {
    justify-content: flex-start;
    font-size: 1.05rem;
    padding: 16px 28px;
}
.admin-sidebar.expanded ul li a i {
    margin-right: 12px;
    font-size: 1.18rem;
}
.admin-sidebar.expanded .menu-label {
    display: inline !important;
}
.admin-main-content.expanded {
    margin-left: 220px !important;
}

/* ---- RESPONSIVE (Mobilde başta dar, açılırsa genişler) ---- */
@media (max-width: 800px) {
    .admin-sidebar {
        width: 64px;
        min-width: 64px;
        box-shadow: 2px 0 12px 0 rgba(50, 60, 85, 0.09);
    }
    .admin-sidebar .logo img {
        height: 20px;
    }
    .admin-main-content {
        margin-left: 64px;
    }
    .admin-sidebar.expanded {
        width: 220px !important;
        min-width: 220px !important;
    }
    .admin-sidebar.expanded .logo img {
        height: 32px;
    }
    .admin-sidebar.expanded ul li a {
        font-size: 1.05rem;
        justify-content: flex-start;
        padding: 16px 28px;
    }
    .admin-sidebar.expanded ul li a i {
        margin-right: 12px;
        font-size: 1.18rem;
    }
    .admin-sidebar.expanded .menu-label {
        display: inline !important;
    }
    .admin-main-content.expanded {
        margin-left: 220px !important;
    }
    .admin-sidebar.collapsed {
        width: 64px !important;
        min-width: 64px !important;
    }
    .admin-sidebar.collapsed .logo img {
        height: 20px;
    }
    .admin-sidebar.collapsed ul li a {
        font-size: 0;
        padding: 20px 0;
        justify-content: center;
    }
    .admin-sidebar.collapsed ul li a i {
        margin: 0;
        font-size: 1.35rem;
    }
    .admin-sidebar.collapsed .menu-label {
        display: none !important;
    }
    .admin-main-content.collapsed {
        margin-left: 64px !important;
    }
}


