/* ===== YÖNETİM MASAÜSTÜ SIDEBAR ===== */
.yms-overlay {
    position: fixed; top: 0; right: 0; bottom: 0; left: 260px;
    z-index: 1049;
    background: transparent; cursor: default;
}
.yms {
    position: fixed; top: 0; left: 0; bottom: 0;
    background: var(--t-sidebar, #1e293b); color: white; z-index: 1050;
    display: flex; flex-direction: column;
    transition: width 0.25s cubic-bezier(0.16,1,0.3,1);
    overflow: hidden;
}
.yms-collapsed { width: 64px; }
.yms-expanded { width: 260px; box-shadow: 4px 0 24px rgba(0,0,0,0.25); }

.yms-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px; background: var(--t-sidebar-head, #0f172a); flex-shrink: 0; gap: 8px;
    height: 56px; box-sizing: border-box;
}
.yms-title-wrap { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.yms-title {
    font-weight: 900; font-size: 1.15rem; letter-spacing: 2px;
    white-space: nowrap; line-height: 1;
    background: linear-gradient(135deg, #e2e8f0 0%, #ffffff 50%, #93c5fd 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.yms-subtitle { font-size: 0.62rem; font-weight: 700; letter-spacing: 3px; color: #64748b; line-height: 1; }
.yms-toggle {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; color: #fff; font-size: 20px;
    cursor: pointer; border-radius: 6px; flex-shrink: 0;
}
.yms-toggle:hover { background: rgba(255,255,255,0.1); }

.yms-search { padding: 10px; flex-shrink: 0; }
.yms-search input {
    width: 100%; padding: 9px 12px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; color: #fff; font-size: 0.88rem; outline: none;
    box-sizing: border-box;
}
.yms-search input::placeholder { color: rgba(255,255,255,0.4); }
.yms-search input:focus { border-color: #38bdf8; background: rgba(255,255,255,0.12); }

.yms-nav {
    flex: 1; overflow-y: auto; padding: 4px 0;
    scrollbar-width: none;
}
.yms-nav::-webkit-scrollbar { width: 0; display: none; }
.yms-expanded .yms-nav { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.yms-expanded .yms-nav::-webkit-scrollbar { width: 3px; display: block; }
.yms-expanded .yms-nav::-webkit-scrollbar-track { background: transparent; }
.yms-expanded .yms-nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 20px; }
.yms-expanded .yms-nav:hover { scrollbar-color: rgba(255,255,255,0.08) transparent; }
.yms-expanded .yms-nav:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }
.yms-expanded .yms-nav:hover::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }
.yms-nav.scroll-active { scrollbar-color: rgba(255,255,255,0.12) transparent !important; }
.yms-nav.scroll-active::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12) !important; }

.yms-link {
    display: flex; align-items: center; gap: 12px;
    padding: 0 16px; height: 44px;
    text-decoration: none; color: rgba(255,255,255,0.85);
    font-size: 0.92rem; font-weight: 500;
    border-radius: 8px; margin: 2px 6px;
    transition: background 0.15s;
    white-space: nowrap; overflow: hidden;
}
.yms-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.yms-link.active { background: var(--t-sidebar-active, #0ea5e9); color: #fff; }
.yms-link-icon { width: 28px; min-width: 28px; font-size: 18px; text-align: center; flex-shrink: 0; }
.yms-link-text { overflow: hidden; text-overflow: ellipsis; }
.yms-collapsed .yms-link { padding: 0; justify-content: center; margin: 2px 8px; }

.yms-footer {
    flex-shrink: 0; padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.yms-switch { color: #93c5fd !important; }
.yms-switch:hover { background: rgba(99,102,241,0.15) !important; }
.yms .yms-logout { color: #fca5a5 !important; }
.yms .yms-logout:hover { background: rgba(239,68,68,0.2) !important; color: #fecaca !important; }

@media (max-width: 768px) {
    .yms { display: none !important; }
    .yms-overlay { display: none !important; }
}

/* ===== YÖNETİM MOBİL MENÜ ===== */

/* ═══ PEEK İPUCU (YÖNETİM) ═══ */
.ymm-peek-hint {
    position: fixed; top: 0; left: 0; bottom: 0; width: 52px;
    z-index: 9997; cursor: pointer; display: none;
    animation: ymm-peek-anim 3s ease-in-out forwards;
}
@keyframes ymm-peek-anim {
    0%   { transform: translateX(-100%); opacity: 0; }
    12%  { transform: translateX(0); opacity: 1; }
    70%  { transform: translateX(0); opacity: 1; }
    85%  { transform: translateX(8px); opacity: 1; }
    100% { transform: translateX(-100%); opacity: 0; }
}
.ymm-peek-bar {
    position: absolute; top: 50%; right: 0;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white; border-radius: 0 14px 14px 0;
    padding: 14px 10px 14px 8px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    box-shadow: 4px 0 20px rgba(99,102,241,0.35);
}
.ymm-peek-arrow {
    font-size: 1.2rem; font-weight: 900; line-height: 1;
    animation: ymm-peek-pulse 0.8s ease-in-out infinite alternate;
}
@keyframes ymm-peek-pulse {
    from { transform: translateX(0); }
    to   { transform: translateX(4px); }
}
.ymm-peek-text {
    font-size: 0.62rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1px; writing-mode: vertical-rl; text-orientation: mixed;
}

.ymm-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 9998; backdrop-filter: blur(2px);
    animation: ymmFadeIn 0.25s ease;
}
.ymm-overlay.closing {
    animation: ymmFadeOut 0.22s ease forwards;
}
@keyframes ymmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ymmFadeOut { from { opacity: 1; } to { opacity: 0; } }
.ymm-panel {
    position: fixed; top: 0; left: 0; bottom: 0; width: 280px;
    background: var(--t-sidebar, #1e293b); color: white; z-index: 9999;
    display: flex; flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
    animation: ymmSlideIn 0.25s ease;
}
.ymm-panel.closing {
    animation: ymmSlideOut 0.22s ease forwards;
}
@keyframes ymmSlideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes ymmSlideOut { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.ymm-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px; background: var(--t-sidebar-head, #0f172a); flex-shrink: 0; gap: 8px;
    height: 56px; box-sizing: border-box;
}
.ymm-title-wrap { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ymm-title {
    font-weight: 900; font-size: 1.15rem; letter-spacing: 2px;
    white-space: nowrap; line-height: 1;
    background: linear-gradient(135deg, #e2e8f0 0%, #ffffff 50%, #93c5fd 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ymm-subtitle { font-size: 0.62rem; font-weight: 700; letter-spacing: 3px; color: #64748b; line-height: 1; }
.ymm-close {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; color: #fff;
    font-size: 20px; cursor: pointer; border-radius: 6px; flex-shrink: 0;
}
.ymm-close:hover { background: rgba(255,255,255,0.1); }

.ymm-search { padding: 10px; flex-shrink: 0; }
.ymm-search input {
    width: 100%; padding: 9px 12px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; color: #fff; font-size: 0.88rem; outline: none;
    box-sizing: border-box;
}
.ymm-search input::placeholder { color: rgba(255,255,255,0.4); }
.ymm-search input:focus { border-color: #38bdf8; background: rgba(255,255,255,0.12); }

.ymm-nav { flex: 1; overflow-y: auto; padding: 4px 0; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.ymm-nav::-webkit-scrollbar { width: 3px; }
.ymm-nav::-webkit-scrollbar-track { background: transparent; }
.ymm-nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 20px; }
.ymm-nav.scroll-active { scrollbar-color: rgba(255,255,255,0.10) transparent; }
.ymm-nav.scroll-active::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); }

.ymm-link {
    display: flex; align-items: center; gap: 12px;
    padding: 0 16px; height: 44px;
    text-decoration: none; color: rgba(255,255,255,0.85);
    font-size: 0.92rem; font-weight: 500;
    border-radius: 8px; margin: 2px 6px;
    transition: background 0.15s;
    white-space: nowrap; overflow: hidden;
}
.ymm-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.ymm-link.active { background: var(--t-sidebar-active, #0ea5e9); color: #fff; }
/* Drawer açılınca aktif öğeye dikkat çeken pulse */
.ymm-link.drawer-highlight {
    animation: ymm-drawer-pulse 1.4s ease-out;
}
@keyframes ymm-drawer-pulse {
    0%   { box-shadow: inset 0 0 0 0 rgba(255,255,255,0.4), 0 0 14px rgba(14,165,233,0.5); }
    30%  { box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25), 0 0 20px rgba(14,165,233,0.3); }
    100% { box-shadow: none; }
}
.ymm-link-icon { width: 28px; min-width: 28px; font-size: 18px; text-align: center; flex-shrink: 0; }
.ymm-link-text { overflow: hidden; text-overflow: ellipsis; }

.ymm-footer {
    flex-shrink: 0; padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.ymm-back-home { color: rgba(255,255,255,0.85) !important; }
.ymm-back-home:hover { background: rgba(255,255,255,0.08) !important; }
.ymm-back-user { color: #93c5fd !important; }
.ymm-back-user:hover { background: rgba(99,102,241,0.15) !important; }
.ymm-panel .ymm-logout { color: #fca5a5 !important; }
.ymm-panel .ymm-logout:hover { background: rgba(239,68,68,0.2) !important; color: #fecaca !important; }

@media (max-width: 768px) {
    .ymm-peek-hint { display: block; }
}
