/* ════════════════════════════════════════════════════════════════════
   DENTAL UTS — Tasarım Sistemi v2
   Koyu lacivert sidebar + altın vurgu + açık içerik alanı
   ════════════════════════════════════════════════════════════════════ */
:root {
    --navy-950: #06121f;
    --navy-900: #081c2e;
    --navy-850: #0b2238;
    --navy-800: #0e2a44;
    --navy-700: #14385c;
    --navy-600: #1c4a78;

    --primary: #1a6fb5;
    --primary-deep: #0f4c81;
    --blue-bright: #2e9fe0;
    --accent: #d9aa4f;
    --accent-soft: #e9c97f;

    --content-bg: #e9eef4;
    --glass-bg: rgba(255, 255, 255, 0.92);
    --sidebar-bg: linear-gradient(180deg, #0b2238 0%, #081c2e 60%, #06121f 100%);
    --card-bg: #ffffff;

    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-sidebar: #9db4c9;
    --error: #ef4444; --success: #10b981; --info: #3b82f6; --warning: #f59e0b;

    --radius: 14px;
    --shadow-card: 0 6px 24px -8px rgba(8, 28, 46, 0.12), 0 2px 6px rgba(8, 28, 46, 0.06);
    --shadow-pop: 0 25px 60px -15px rgba(8, 28, 46, 0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { overflow: hidden; height: 100vh; display: flex; justify-content: center; align-items: center; background: var(--content-bg); position: relative; }

/* ── ARKA PLAN (auth sayfaları: animasyonlu lacivert atmosfer) ── */
.bg-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.bg-image {
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(26, 111, 181, 0.22), transparent 60%),
        radial-gradient(ellipse 70% 55% at 20% 85%, rgba(217, 170, 79, 0.10), transparent 60%),
        linear-gradient(160deg, #0b2238 0%, #081c2e 45%, #06121f 100%);
}
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(ellipse at center, transparent 0%, rgba(6, 18, 31, 0.45) 100%); z-index: 1; }
#atmosphere-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; }

/* ════════════════════════════════════════════════════════════════════
   TOAST BİLDİRİM SİSTEMİ — sağ üst, X ile kapanan, süre çubuklu
   ════════════════════════════════════════════════════════════════════ */
#toast-container { position: fixed; top: 24px; right: 24px; z-index: 99999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; max-width: min(400px, calc(100vw - 30px)); }
.ui-toast {
    position: relative; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(14px);
    border-radius: 14px; box-shadow: 0 16px 40px -10px rgba(8, 28, 46, 0.35), 0 3px 10px rgba(8, 28, 46, 0.12);
    padding: 14px 40px 14px 14px; display: flex; align-items: flex-start; gap: 12px;
    min-width: 300px; pointer-events: auto; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    transform: translateX(120%) scale(0.95); opacity: 0;
    transition: transform .45s cubic-bezier(.21, 1.02, .55, 1.01), opacity .35s ease;
}
.ui-toast.show { transform: translateX(0) scale(1); opacity: 1; }
.ui-toast.hide { transform: translateX(120%) scale(0.92); opacity: 0; }
.ui-toast .t-icon {
    width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.ui-toast .t-body { flex: 1; min-width: 0; padding-top: 1px; }
.ui-toast .t-title { font-size: 0.92rem; font-weight: 700; color: var(--text-dark); line-height: 1.25; }
.ui-toast .t-msg { font-size: 0.82rem; color: var(--text-muted); margin-top: 3px; line-height: 1.45; word-wrap: break-word; }
.ui-toast .t-close {
    position: absolute; top: 9px; right: 9px; width: 26px; height: 26px; border: none; cursor: pointer;
    border-radius: 8px; background: transparent; color: #94a3b8; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center; transition: .2s;
}
.ui-toast .t-close:hover { background: #f1f5f9; color: var(--text-dark); transform: rotate(90deg); }
.ui-toast .t-progress { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; transform-origin: left; border-radius: 0 3px 3px 0; }
.ui-toast.toast-success .t-icon { background: #d1fae5; color: #059669; }
.ui-toast.toast-success .t-progress { background: linear-gradient(90deg, #10b981, #34d399); }
.ui-toast.toast-error .t-icon { background: #fee2e2; color: #dc2626; }
.ui-toast.toast-error .t-progress { background: linear-gradient(90deg, #ef4444, #f87171); }
.ui-toast.toast-warning .t-icon { background: #fef3c7; color: #d97706; }
.ui-toast.toast-warning .t-progress { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ui-toast.toast-info .t-icon { background: #dbeafe; color: #2563eb; }
.ui-toast.toast-info .t-progress { background: linear-gradient(90deg, #3b82f6, #60a5fa); }

/* Eski .glass-toast sınıfı geriye dönük uyumluluk */
.glass-toast { background: rgba(255,255,255,.95); padding: 15px 25px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); border-left: 5px solid var(--primary); display: flex; align-items: center; gap: 15px; min-width: 300px; pointer-events: auto; }

/* ════════════════════════════════════════════════════════════════════
   GİRİŞ EKRANI
   ════════════════════════════════════════════════════════════════════ */
.login-wrapper { position: relative; z-index: 10; display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; perspective: 1400px; }
.login-panel {
    background: linear-gradient(165deg, rgba(255,255,255,.97), rgba(241,246,251,.94));
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 24px; padding: 38px 40px 34px; width: 100%; max-width: 420px; text-align: center;
    box-shadow: 0 30px 80px -10px rgba(2, 10, 20, 0.65), 0 0 0 1px rgba(46, 159, 224, 0.08), inset 0 1px 0 rgba(255,255,255,.9);
    animation: loginEnter .8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform;
    position: relative;
}
.login-panel::before {
    content: ''; position: absolute; inset: -1px; border-radius: 25px; padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, rgba(46,159,224,.55), transparent 35%, transparent 65%, rgba(217,170,79,.55));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.logo-box img { max-height: 84px; margin-bottom: 4px; filter: drop-shadow(0 4px 10px rgba(8,28,46,.18)); }
.login-3d-stage { width: 100%; height: 150px; margin: 2px auto 6px; display: block; position: relative; }
.login-3d-stage canvas { width: 100%; height: 100%; display: block; }
.login-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.42rem;
    letter-spacing: .035em;
    text-transform: uppercase;
    margin: 4px 0 24px;
    background: linear-gradient(95deg, #0f4c81 0%, #1a6fb5 30%, #2e9fe0 50%, #d9aa4f 78%, #b8862e 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: loginTitleShine 7s ease-in-out infinite alternate;
}
@keyframes loginTitleShine {
    0%   { background-position: 0% center; }
    100% { background-position: 100% center; }
}

.login-input-group { position: relative; margin-bottom: 16px; }
.login-input-group input {
    width: 100%; padding: 13px 46px 13px 46px; border-radius: 14px;
    border: 2px solid #e2e8f0; font-size: .95rem; outline: none; transition: .3s;
    background: #f8fafc; color: var(--text-dark);
}
.login-input-group input::placeholder { color: #94a3b8; }
.login-input-group > i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--primary); transition: .3s; }
.login-input-group input:focus { border-color: var(--blue-bright); background: #fff; box-shadow: 0 0 0 4px rgba(46, 159, 224, 0.14); }
.login-input-group input:focus ~ i { color: var(--accent); }
.pass-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: none; background: transparent; color: #94a3b8; cursor: pointer; border-radius: 10px; font-size: .95rem; transition: .2s; }
.pass-eye:hover { color: var(--primary); background: #eef5fb; }

.btn-login {
    width: 100%; padding: 14px; border: none; border-radius: 14px; cursor: pointer;
    font-size: .95rem; font-weight: 700; letter-spacing: .04em; color: #fff;
    background: linear-gradient(135deg, #2e9fe0, #1a6fb5 55%, #0f4c81);
    box-shadow: 0 10px 25px -6px rgba(26, 111, 181, 0.55), inset 0 1px 0 rgba(255,255,255,.25);
    position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.btn-login::after {
    content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg); animation: btnShine 3.6s ease-in-out infinite;
}
.btn-login:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 30px -6px rgba(26, 111, 181, 0.7); }
.btn-login:disabled { opacity: .75; cursor: wait; }
@keyframes btnShine { 0%, 55% { left: -80%; } 85%, 100% { left: 130%; } }
@keyframes loginEnter { 0% { opacity: 0; transform: translateY(35px) scale(.92); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

.login-alt-link {
    display: block; width: 100%; padding: 12px; border-radius: 14px; border: 2px solid rgba(26,111,181,.35);
    background: rgba(255,255,255,.6); color: var(--primary); font-weight: 600; font-size: .88rem;
    text-decoration: none; text-align: center; transition: .3s;
}
.login-alt-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 8px 20px -6px rgba(26,111,181,.5); }
.login-forgot { color: var(--text-muted); font-size: .83rem; text-decoration: none; font-weight: 500; transition: .25s; }
.login-forgot:hover { color: var(--accent); }
.shield-anim { font-size: 3.2rem; color: var(--accent); animation: rotate3D 8s infinite linear; margin-bottom: 16px; display: inline-block; }

/* ════════════════════════════════════════════════════════════════════
   UYGULAMA YAPISI — koyu sidebar + açık içerik
   ════════════════════════════════════════════════════════════════════ */
body.app-shell { background: var(--content-bg); }
.app-container { position: relative; z-index: 10; width: 100vw; height: 100vh; display: flex; overflow: hidden; animation: fadeIn .6s ease; background: var(--content-bg); }

.sidebar {
    width: 278px; background: var(--sidebar-bg); color: var(--text-sidebar);
    display: flex; flex-direction: column; padding: 0;
    box-shadow: 6px 0 30px rgba(4, 14, 24, 0.35); position: relative; z-index: 20;
    border-right: 1px solid rgba(46, 159, 224, 0.12);
}
.sidebar::after {
    content: ''; position: absolute; top: 0; right: -1px; width: 1px; height: 100%;
    background: linear-gradient(180deg, rgba(46,159,224,.35), rgba(217,170,79,.25), transparent);
    pointer-events: none;
}
.sidebar-header {
    text-align: center; padding: 22px 20px 18px;
    background: rgba(4, 14, 24, 0.45);
    border-bottom: 1px solid rgba(157, 180, 201, 0.1);
    position: relative;
}
.sidebar-header::after {
    content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--blue-bright), var(--accent));
    opacity: .8;
}
.sidebar-logo { max-height: 62px; margin-bottom: 8px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.4)); }
.sidebar-logo-link { cursor: pointer; transition: transform .2s, opacity .2s; }
.sidebar-logo-link:hover { transform: scale(1.04); opacity: .9; }
.admin-badge {
    background: linear-gradient(135deg, rgba(217,170,79,.16), rgba(46,159,224,.14));
    color: var(--accent-soft); border: 1px solid rgba(217, 170, 79, 0.35);
    padding: 4px 16px; border-radius: 20px; font-size: .72rem; font-weight: 700;
    display: inline-block; letter-spacing: .08em; text-transform: uppercase;
}

.nav-menu { list-style: none; flex: 1; padding: 16px 14px; }
.nav-section {
    margin: 18px 4px 7px; font-size: .68rem; color: var(--accent);
    font-weight: 700; padding-left: 12px; letter-spacing: .12em; text-transform: uppercase;
    display: flex; align-items: center; gap: 8px; opacity: .92;
}
.nav-section::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(217,170,79,.35), transparent); }

.nav-link {
    display: flex; align-items: center; gap: 13px; padding: 11px 14px;
    color: var(--text-sidebar); text-decoration: none; border-radius: 11px;
    font-weight: 500; font-size: .89rem; transition: .25s; margin-bottom: 4px;
    position: relative; border: 1px solid transparent;
}
.nav-link:hover { background: rgba(46, 159, 224, 0.1); color: #e7f2fb; transform: translateX(4px); }
.nav-link:hover i { color: var(--accent-soft); }
.nav-link.active {
    background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
    color: #fff; border-color: rgba(46, 159, 224, 0.35);
    box-shadow: 0 6px 18px -4px rgba(4, 14, 24, 0.6), inset 0 1px 0 rgba(255,255,255,.06);
    font-weight: 600;
}
.nav-link.active::before {
    content: ''; position: absolute; left: 0; top: 18%; height: 64%; width: 3.5px;
    border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--blue-bright), var(--accent));
}
.nav-link.active i { color: var(--accent-soft); }
.nav-link i { font-size: 1.05rem; width: 24px; text-align: center; color: #5e7d9a; transition: .25s; }
.nav-link small { color: inherit; opacity: .6; }

.nav-switch {
    display: flex; align-items: center; gap: 13px; padding: 11px 14px; margin-top: 14px; margin-bottom: 4px;
    color: #7fc4ee !important; background: rgba(46, 159, 224, 0.12) !important;
    border: 1px dashed rgba(46, 159, 224, 0.4); border-radius: 11px; text-decoration: none;
    font-weight: 600; font-size: .89rem; transition: .25s;
}
.nav-switch:hover { background: rgba(46, 159, 224, 0.22) !important; transform: translateX(4px); }
.nav-switch i { width: 24px; text-align: center; }

.nav-logout-m {
    display: flex; align-items: center; gap: 13px; padding: 11px 14px; width: 100%; text-align: left;
    color: #fca5a5 !important; background: rgba(239, 68, 68, 0.12) !important;
    border: 1px dashed rgba(239, 68, 68, 0.35); border-radius: 11px; cursor: pointer;
    font-weight: 600; font-size: .89rem; font-family: inherit; transition: .25s; margin: 5px 0 10px;
}
.nav-logout-m:hover { background: rgba(239, 68, 68, 0.22) !important; }
.nav-logout-m i { width: 24px; text-align: center; }

.sidebar-footer { padding: 16px 18px 12px; border-top: 1px solid rgba(157, 180, 201, 0.12); background: rgba(4, 14, 24, 0.35); }
.sf-account {
    width: 100%; margin-bottom: 9px; display: flex; justify-content: center; align-items: center; gap: 8px;
    background: rgba(255,255,255,.06); color: #cfe3f3; border: 1px solid rgba(157,180,201,.22);
    padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .85rem; transition: .25s;
}
.sf-account:hover { background: rgba(255,255,255,.12); border-color: rgba(46,159,224,.45); }
.logout-btn {
    width: 100%; padding: 11px; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5; border-radius: 10px; font-weight: 600; font-size: .85rem;
    display: flex; align-items: center; justify-content: center; gap: 9px; transition: .25s; text-decoration: none;
}
.logout-btn:hover { background: rgba(239, 68, 68, 0.24); color: #fecaca; }
.sidebar-copyright { text-align: center; color: #51718c; font-size: .67rem; line-height: 1.55; margin-top: 12px; }
.mobile-logout-item { display: none; }

/* ── ANA İÇERİK ── */
.main-content {
    flex: 1; padding: 0 36px 40px; overflow-y: auto; position: relative;
    background: var(--content-bg);
    scrollbar-width: thin; scrollbar-color: #b6c5d4 transparent;
}
.main-content::before {
    content: ''; position: sticky; top: 0; display: block; height: 4px; margin: 0 -36px 26px;
    background: linear-gradient(90deg, var(--navy-800), var(--blue-bright) 35%, var(--accent) 100%);
    z-index: 50; box-shadow: 0 2px 10px rgba(8, 28, 46, 0.2);
}
.main-content::-webkit-scrollbar { width: 9px; }
.main-content::-webkit-scrollbar-thumb { background: #b6c5d4; border-radius: 10px; }
.main-content::-webkit-scrollbar-thumb:hover { background: #94a9bd; }
.page-section { display: none; animation: fadeInSection .5s forwards; opacity: 0; }
.page-section.active { display: block; opacity: 1; }

/* Sayfa başlığı kartı */
.page-header {
    background: linear-gradient(135deg, #ffffff, #f4f8fc);
    border: 1px solid #dde7f0; border-radius: var(--radius);
    padding: 20px 26px; margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;
    position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 5px;
    background: linear-gradient(180deg, var(--blue-bright), var(--accent));
}
.page-title { font-size: 1.55rem; color: var(--navy-800); font-weight: 700; display: flex; align-items: center; gap: 13px; }
.page-welcome { color: var(--text-muted); font-weight: 500; font-size: .92rem; margin-top: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-welcome b { color: var(--navy-700); }
.member-chip { font-size: .72rem; background: rgba(26, 111, 181, .1); color: var(--primary); border: 1px solid rgba(26, 111, 181, .22); padding: 2px 10px; border-radius: 20px; font-weight: 600; }
.date-chip {
    background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
    color: #e7f2fb; padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: .88rem;
    box-shadow: 0 6px 16px -4px rgba(8, 28, 46, 0.4); display: inline-flex; align-items: center; gap: 9px;
}
.date-chip i { color: var(--accent-soft); }

/* ── ORTAK FORMLAR VE KARTLAR ── */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-bottom: 40px; }
.dash-card {
    background: var(--card-bg); border-radius: var(--radius); padding: 32px 24px; text-align: center;
    cursor: pointer; transition: .3s; text-decoration: none; color: var(--text-dark);
    box-shadow: var(--shadow-card); border: 1px solid #e3ebf3; position: relative; overflow: hidden;
}
.dash-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--blue-bright), var(--accent)); opacity: 0; transition: .3s; }
.dash-card:hover { transform: translateY(-7px); box-shadow: 0 18px 40px -10px rgba(8, 28, 46, .22); border-color: rgba(46,159,224,.4); }
.dash-card:hover::after { opacity: 1; }
.dash-card i { font-size: 3.2rem; color: var(--primary); margin-bottom: 15px; transition: .3s; }
.dash-card:hover i { color: var(--accent); transform: scale(1.06); }
.dash-card h3 { font-size: 1.15rem; color: var(--navy-800); font-weight: 700; margin-bottom: 5px; }
.dash-card p { font-size: .88rem; color: var(--text-muted); font-weight: 500; }

.shortcut-card { background: var(--card-bg); border: 1px solid #e3ebf3; border-radius: 12px; padding: 20px; text-align: center; color: var(--navy-800); display: flex; flex-direction: column; align-items: center; gap: 10px; transition: .3s; text-decoration: none; box-shadow: var(--shadow-card); }
.shortcut-card:hover { transform: translateY(-5px); border-color: rgba(46,159,224,.45); }
.shortcut-card i { font-size: 2rem; color: var(--accent); }
.group-title { color: var(--navy-800); font-size: 1rem; margin-bottom: 15px; font-weight: 700; border-left: 4px solid var(--accent); padding-left: 10px; }

.tool-panel { background: var(--card-bg); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); border: 1px solid #e3ebf3; }
.two-col-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.form-control { width: 100%; padding: 12px 18px; border-radius: 10px; border: 2px solid #e2e8f0; font-size: .93rem; outline: none; transition: .3s; background: #f8fafc; color: var(--text-dark); }
.form-control:focus { border-color: var(--blue-bright); background: #fff; box-shadow: 0 0 0 4px rgba(46, 159, 224, 0.12); }
.btn { padding: 12px 24px; border-radius: 10px; border: none; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: .3s; font-size: .88rem; }
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(8, 28, 46, 0.18); }
.btn:disabled { opacity: .7; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-deep)); color: #fff; }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.btn-outline { background: #fff; border: 2px solid #cbd5e1; color: var(--text-muted); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ── VİDEO STÜDYOSU ── */
.video-studio-wrapper { display: flex; flex-direction: column; gap: 0; }
.upload-zone-large { border: 3px dashed #cbd5e1; background: #f8fafc; border-radius: 20px; padding: 80px 20px; text-align: center; cursor: pointer; transition: .3s; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; }
.upload-zone-large:hover { border-color: var(--primary); background: #f0f9ff; }
.upload-zone-large i { font-size: 5rem; color: var(--primary); margin-bottom: 20px; transition: .3s; }
.upload-zone-large:hover i { transform: scale(1.1); color: var(--accent); }
.studio-workspace { display: none; }
.preview-wrapper { position: relative; display: flex; justify-content: center; align-items: center; background: #000; border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,.2); }
#studioVideo { max-height: 500px; max-width: 100%; display: block; margin: 0 auto; object-fit: contain; }
.timeline-attached-box { background: #fff; border: 1px solid #e2e8f0; border-top: none; border-radius: 0 0 12px 12px; padding: 20px 25px; box-shadow: 0 10px 20px rgba(0,0,0,.1); margin-bottom: 25px; }
#cropBox { position: absolute; border: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(0,0,0,.6); cursor: move; display: flex; align-items: center; justify-content: center; box-sizing: border-box; z-index: 5; }
#cropBox::before { content: ''; position: absolute; top: 33.33%; left: 0; width: 100%; height: 33.33%; border-top: 1px dashed rgba(255,255,255,.5); border-bottom: 1px dashed rgba(255,255,255,.5); pointer-events: none; }
#cropBox::after { content: ''; position: absolute; left: 33.33%; top: 0; height: 100%; width: 33.33%; border-left: 1px dashed rgba(255,255,255,.5); border-right: 1px dashed rgba(255,255,255,.5); pointer-events: none; }
.resize-handle { position: absolute; width: 14px; height: 14px; background: var(--accent); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 5px rgba(0,0,0,.5); z-index: 10; }
.handle-tl { top: -7px; left: -7px; cursor: nwse-resize; } .handle-tr { top: -7px; right: -7px; cursor: nesw-resize; }
.handle-bl { bottom: -7px; left: -7px; cursor: nesw-resize; } .handle-br { bottom: -7px; right: -7px; cursor: nwse-resize; }
.handle-t { top: -7px; left: 50%; transform: translateX(-50%); cursor: ns-resize; } .handle-b { bottom: -7px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.handle-l { top: 50%; left: -7px; transform: translateY(-50%); cursor: ew-resize; } .handle-r { top: 50%; right: -7px; transform: translateY(-50%); cursor: ew-resize; }
.controls-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.control-group { background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; }
.control-label { font-weight: 700; color: var(--primary); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.ratio-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.ratio-btn { padding: 8px 15px; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 8px; font-weight: 600; cursor: pointer; transition: .2s; color: var(--text-dark); }
.ratio-btn.active, .ratio-btn:hover { border-color: var(--primary); background: #f0f9ff; color: var(--primary); }
.time-inputs { display: flex; gap: 15px; margin-top: 25px; }
.time-inputs input { text-align: center; font-family: monospace; font-size: 1.1rem; font-weight: bold; }
.vol-wrapper { display: flex; align-items: center; gap: 15px; }
input[type=range] { flex: 1; accent-color: var(--primary); cursor: pointer; }
#volLabel { font-weight: bold; font-family: monospace; color: var(--primary); width: 45px; text-align: right; }
.noUi-connect { background: var(--primary); }
.noUi-handle { border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.2); cursor: grab; }
.noUi-handle:active { cursor: grabbing; }

/* ── DİĞER ARAÇLAR ── */
.editor-box { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; height: 500px; }
.editor-pane { display: flex; flex-direction: column; height: 100%; }
.editor-area { flex: 1; padding: 15px; border: 2px solid #e2e8f0; border-radius: 10px; resize: none; font-family: 'Courier New', monospace; outline: none; transition: .3s; background: #f8fafc; color: var(--text-dark); font-weight: 500; }
.editor-toolbar { background: #f1f5f9; padding: 10px; border-radius: 10px; margin-bottom: 15px; display: flex; gap: 10px; flex-wrap: wrap; border: 1px solid #e2e8f0; }
.collage-uploader { border: 2px dashed #cbd5e1; background: #f8fafc; padding: 40px; border-radius: 15px; text-align: center; cursor: pointer; transition: .3s; margin-bottom: 20px; }
.collage-uploader:hover { border-color: var(--primary); background: #f0f9ff; }
.collage-grid-view { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; padding: 15px; background: #f1f5f9; border-radius: 15px; min-height: 100px; }
.collage-cell { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,.05); cursor: grab; position: relative; animation: zoomIn .3s ease; }
.collage-img { width: 100%; height: 120px; object-fit: cover; display: block; }
.cell-del { position: absolute; top: 5px; right: 5px; background: #fff; color: var(--error); width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,.1); }
.preview-container { text-align: center; background: #f1f5f9; padding: 20px; border-radius: 10px; min-height: 250px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; border: 1px solid #e2e8f0; }
.size-selector { display: flex; gap: 10px; margin-bottom: 20px; }
.size-opt { flex: 1; padding: 12px; border: 2px solid #e2e8f0; background: #fff; border-radius: 8px; cursor: pointer; text-align: center; transition: .2s; font-weight: 600; color: var(--text-dark); }
.size-opt.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 10px rgba(26, 111, 181, .3); }
.result-box { margin-top: 10px; padding: 15px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; color: #15803d; font-family: monospace; font-weight: bold; display: none; justify-content: space-between; align-items: center; }
.batch-list { list-style: none; margin-top: 10px; border: 1px solid #e2e8f0; border-radius: 8px; max-height: 200px; overflow-y: auto; display: none; }
.batch-item { padding: 10px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; background: #fff; font-size: .85rem; color: var(--text-dark); }

@keyframes rotate3D { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInSection { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }

/* ════════════════════════════════════════════════════════════════════
   MOBİL UYUMLULUK
   ════════════════════════════════════════════════════════════════════ */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.7rem; color: var(--accent-soft) !important; cursor: pointer; }

body.mobile-menu-open { overflow: hidden !important; height: 100vh !important; }
@media (max-width: 900px) {
    body.mobile-menu-open .sidebar {
        position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
        width: 100% !important; height: 100vh !important; max-height: 100vh !important;
        overflow-y: auto !important; z-index: 10000 !important;
        background: var(--sidebar-bg) !important; padding: 15px !important;
    }
    body.mobile-menu-open .nav-menu { max-height: calc(100vh - 80px) !important; overflow-y: auto !important; background: transparent !important; }
    body.mobile-menu-open .sidebar-header {
        position: sticky; top: 0; background: var(--navy-900); z-index: 10001;
        padding-bottom: 12px; border-bottom: 1px solid rgba(157,180,201,.15);
    }
    body.mobile-menu-open .main-content, body.mobile-menu-open #mobileNavOverlay { visibility: hidden; }
}

@media (max-width: 900px) {
    body, html { overflow: auto !important; height: auto !important; }
    .app-container { flex-direction: column !important; height: auto !important; min-height: 100vh !important; overflow: visible !important; padding-bottom: 20px !important; }
    .main-content { overflow: visible !important; height: auto !important; padding: 0 15px 20px !important; }
    .main-content::before { margin: 0 -15px 18px; }

    .login-wrapper { padding: 20px !important; box-sizing: border-box !important; height: auto !important; min-height: 100vh !important; }
    .login-panel { width: 100% !important; max-width: 400px !important; padding: 30px 22px !important; margin: auto !important; }

    .sidebar { width: 100% !important; padding: 12px 15px !important; border-right: none !important; flex-direction: column !important; position: sticky !important; top: 0 !important; z-index: 9999 !important; height: auto !important; box-shadow: 0 4px 15px rgba(4,14,24,.35) !important; background: var(--navy-900) !important; }
    .sidebar-header { margin: 0 !important; padding: 0 !important; display: flex !important; width: 100% !important; justify-content: space-between !important; align-items: center !important; background: transparent !important; border: none !important; }
    .sidebar-header::after { display: none; }
    .sidebar-logo { max-height: 35px !important; margin: 0 !important; }
    .admin-badge { font-size: .62rem !important; margin: 0 !important; padding: 3px 10px !important; }
    .mobile-menu-btn { display: block !important; }
    .sidebar-footer { display: none !important; }

    .nav-menu { display: none !important; flex-direction: column !important; width: 100% !important; margin-top: 15px !important; padding: 0 !important; max-height: calc(100vh - 80px) !important; overflow-y: auto !important; }
    .nav-menu.active-mobile-menu { display: flex !important; animation: fadeIn .3s ease; }
    .nav-link { flex-direction: row !important; justify-content: flex-start !important; width: 100% !important; height: auto !important; padding: 12px 15px !important; margin-bottom: 6px !important; border-radius: 12px !important; }
    .nav-link i { font-size: 1.15rem !important; margin-bottom: 0 !important; margin-right: 12px !important; width: 24px !important; }
    .nav-link span { display: inline !important; text-align: left !important; font-size: .92rem !important; white-space: normal !important; overflow: visible !important; width: auto !important; }
    .mobile-logout-item { display: block !important; border-top: 1px solid rgba(157,180,201,.15) !important; padding-top: 10px !important; margin-top: 10px !important; }

    .dashboard-grid, .two-col-layout, .editor-box { grid-template-columns: 1fr !important; gap: 15px !important; height: auto !important; }
    .page-header { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; padding: 16px 18px !important; }
    .page-header > div { width: 100% !important; }
    .page-title { font-size: 1.25rem !important; }

    #toast-container { top: 14px; right: 14px; left: 14px; max-width: none; }
    .ui-toast { min-width: 0; }
}

/* ── LOKAL DÜZELTMELER ── */
.header-logo-box { display: flex; flex-direction: column; align-items: center; gap: 5px; }

@media (max-width: 900px) {
    .header-logo-box { flex-direction: row; gap: 10px; }
    .login-panel { padding: 26px 20px !important; max-width: 340px !important; }
    .logo-box img { max-height: 50px !important; margin-bottom: 4px !important; }
    .login-3d-stage { height: 110px !important; }
    .shield-anim { font-size: 2.2rem !important; margin-bottom: 10px !important; }
    .login-input-group { margin-bottom: 13px !important; }
    .login-input-group input { padding: 11px 42px 11px 42px !important; font-size: .9rem !important; }
}
