/* =========================================================
   Musteri (uye) layout — sade, modern, ozellik odakli
   ========================================================= */

.ms-shell {
    min-height: 100vh;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, #F1F5F9 0%, #FFFFFF 100%);
}

/* TOPBAR */
.ms-topbar {
    display: flex; align-items: center;
    padding: 12px 28px;
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 2px 12px rgba(15,23,42,0.04);
    position: sticky; top: 0; z-index: 50;
}

.ms-brand {
    display: flex; align-items: center; gap: 12px;
}
.ms-brand img { height: 36px; }
.ms-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.ms-brand-text b {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.3px;
}
.ms-brand-text small {
    font-size: 10.5px;
    color: #64748B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 2px;
}

.ms-nav { display: flex; gap: 4px; margin-left: 24px; }
.ms-nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
}
.ms-nav-link:hover { background: #F1F5F9; color: #0F172A; }
.ms-nav-link.is-aktif {
    background: linear-gradient(135deg, #14B8A6, #6366F1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(20,184,166,0.30);
}

.ms-spacer { flex: 1; }

.ms-user {
    display: flex; align-items: center; gap: 12px;
}
.ms-avatar {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366F1, #10B981);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(99,102,241,0.30);
}
.ms-userblock { display: flex; flex-direction: column; line-height: 1.1; }
.ms-user-name { font-size: 13px; font-weight: 700; color: #0F172A; }
.ms-user-role {
    font-size: 10.5px;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
    margin-top: 2px;
}
.ms-cikis {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
    margin-left: 6px;
}
.ms-cikis:hover {
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.20);
    color: #DC2626;
}

/* İÇERİK */
.ms-icerik {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 28px;
}

/* FOOTER */
.ms-footer {
    padding: 14px 28px;
    background: #fff;
    border-top: 1px solid #E2E8F0;
    color: #94A3B8;
    font-size: 11px;
    display: flex; justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* HAMBURGER (mobile-only) */
.ms-burger {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px;
    padding: 10px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    margin-left: auto;
}
.ms-burger:hover { background: #E2E8F0; }
.ms-burger span {
    display: block;
    height: 2px;
    background: #0F172A;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.ms-burger.is-acik {
    background: linear-gradient(135deg, #14B8A6, #6366F1);
    border-color: transparent;
}
.ms-burger.is-acik span { background: #fff; }
.ms-burger.is-acik span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ms-burger.is-acik span:nth-child(2) { opacity: 0; }
.ms-burger.is-acik span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* DRAWER BACKDROP */
.ms-drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 60;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
.ms-drawer-backdrop.is-acik { opacity: 1; pointer-events: auto; }

/* DRAWER */
.ms-drawer {
    position: fixed; top: 0; right: 0;
    width: 84%; max-width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 30px rgba(15, 23, 42, 0.18);
    z-index: 61;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.ms-drawer.is-acik { transform: translateX(0); }

.ms-drawer-user {
    display: flex; align-items: center; gap: 12px;
    padding: 22px 20px;
    background: linear-gradient(135deg, #14B8A6 0%, #6366F1 100%);
    color: #fff;
}
.ms-drawer-user .ms-avatar { background: rgba(255, 255, 255, 0.2); box-shadow: none; }
.ms-drawer-user b { display: block; font-size: 14.5px; line-height: 1.2; }
.ms-drawer-user small { display: block; font-size: 11px; opacity: 0.85; margin-top: 3px; }

.ms-drawer-nav {
    flex: 1;
    padding: 14px 12px;
    display: flex; flex-direction: column; gap: 4px;
}
.ms-drawer-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
}
.ms-drawer-link:hover { background: #F1F5F9; color: #0F172A; }
.ms-drawer-link.is-aktif {
    background: linear-gradient(135deg, #14B8A6, #6366F1);
    color: #fff;
    box-shadow: 0 6px 14px rgba(20, 184, 166, 0.28);
}
.ms-drawer-link svg { flex-shrink: 0; }

.ms-drawer-cikis {
    display: flex; align-items: center; gap: 10px;
    margin: 10px 16px 18px;
    padding: 12px 14px;
    border: 1px solid #FCA5A5;
    background: rgba(254, 226, 226, 0.45);
    border-radius: 10px;
    color: #DC2626;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
}
.ms-drawer-cikis:hover { background: #FEE2E2; }

@media (max-width: 860px) {
    .ms-topbar { padding: 10px 14px; }
    .ms-nav { display: none; }
    .ms-user { display: none; }
    .ms-burger { display: flex; }
    .ms-brand-text small { display: none; }
    .ms-icerik { padding: 16px; }
}
@media (max-width: 480px) {
    .ms-brand img { height: 30px; }
    .ms-brand-text b { font-size: 14px; }
}
