* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --bg: #eef2fb;
    --card-bg: #fff;
    --card-shadow: 0 2px 14px rgba(79,70,229,.07);
    --card-border: #e8edf6;
    --text-main: #111827;
    --text-sub: #6b7280;
    --text-light: #9ca3af;
    --blue: #4f46e5;
    --blue-rgb: 79,70,229;
    --blue-light: #eef2ff;
    --blue-dark: #4338ca;
    --green: #16a34a;
    --green-light: #f0fdf4;
    --red: #dc2626;
    --red-light: #fef2f2;
    --orange: #ea580c;
    --orange-light: #fff7ed;
    --purple: #7c3aed;
    --purple-light: #f5f3ff;
    --teal: #0d9488;
    --teal-light: #f0fdfa;
    --pink: #db2777;
    --pink-light: #fdf2f8;
    --radius: 14px;
    --radius-sm: 9px;
    --sidebar-w: 252px;
    --topbar-h: 52px;
    --sidebar-bg: #1a1f37;
    --sidebar-bg2: #131729;
    --sidebar-text: #b8c0d8;
    --sidebar-text-active: #fff;
    --sidebar-active-bg: rgba(79,70,229,.22);
    --sidebar-border: rgba(255,255,255,.07);
    --sidebar-accent: #6366f1;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap'); body {
    font-family: 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

a {
    color: var(--blue);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.main {
    animation: pageFadeIn .28s ease both
}

/* ═══════════════ LAYOUT ═══════════════ */
.layout {
    display: flex;
    min-height: 100vh
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg,var(--sidebar-bg) 0%,var(--sidebar-bg2) 100%);
    display: flex;
    flex-direction: column;
    z-index: 300;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    box-shadow: 4px 0 24px rgba(0,0,0,.18)
}

.sidebar-header {
    padding: 16px 12px 12px;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background .18s;
    margin-bottom: 6px;
    text-decoration: none!important
}

.sidebar-brand:hover {
    background: rgba(255,255,255,.06)
}

.sidebar-brand-logo {
    object-fit: contain;
    border-radius: 6px
}

.sidebar-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg,var(--blue),var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(99,102,241,.4)
}

.sidebar-brand-text {
    flex: 1;
    min-width: 0
}

.sidebar-brand-name {
    display: block;
    font-size: .82rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.sidebar-brand-sub {
    display: block;
    font-size: .63rem;
    color: rgba(255,255,255,.38);
    line-height: 1.2;
    margin-top: 1px
}

.sidebar-back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .69rem;
    color: rgba(255,255,255,.35);
    padding: 4px 10px;
    border-radius: 6px;
    transition: all .18s;
    text-decoration: none!important
}

.sidebar-back-link:hover {
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.07);
    text-decoration: none!important
}

.sidebar-back-link i {
    font-size: .63rem
}

/* NAV */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent
}

.sidebar-nav::-webkit-scrollbar {
    width: 3px
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.1);
    border-radius: 3px
}

.nav-section {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .9px;
    color: rgba(255,255,255,.22);
    text-transform: uppercase;
    padding: 12px 10px 4px
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 9px;
    color: var(--sidebar-text);
    font-size: .805rem;
    font-weight: 500;
    transition: all .16s;
    text-decoration: none!important;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 1px
}

.sidebar-nav a i {
    width: 18px;
    text-align: center;
    font-size: .8rem;
    color: rgba(255,255,255,.32);
    transition: color .16s,transform .2s;
    flex-shrink: 0
}

.sidebar-nav a .nav-badge {
    margin-left: auto;
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: .58rem;
    font-weight: 800;
    flex-shrink: 0
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
    text-decoration: none!important
}

.sidebar-nav a:hover i {
    color: rgba(255,255,255,.8)
}

.sidebar-nav a.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-text-active);
    font-weight: 600
}

.sidebar-nav a.active i {
    color: var(--sidebar-accent)
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: var(--sidebar-accent);
    border-radius: 0 3px 3px 0
}

.sidebar-nav a.nav-ext {
    color: #6ee7b7!important
}

.sidebar-nav a.nav-ext i {
    color: #6ee7b7!important
}

.sidebar-nav a.nav-ext:hover {
    background: rgba(52,211,153,.1)!important
}

/* SIDEBAR FOOTER */
.sidebar-footer {
    padding: 10px 12px;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px
}

.sidebar-footer .sf-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg,var(--blue),var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    color: #fff;
    flex-shrink: 0
}

.sidebar-footer .sf-info {
    flex: 1;
    min-width: 0
}

.sidebar-footer .sf-name {
    display: block;
    font-size: .77rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.sidebar-footer .sf-role {
    display: block;
    font-size: .63rem;
    color: rgba(255,255,255,.35)
}

.sidebar-footer .sf-logout {
    color: rgba(255,255,255,.3)!important;
    font-size: .88rem;
    padding: 6px;
    border-radius: 7px;
    display: flex;
    transition: all .18s;
    flex-shrink: 0;
    text-decoration: none!important
}

.sidebar-footer .sf-logout:hover {
    color: #f87171!important;
    background: rgba(239,68,68,.15)
}

/* CONTENT WRAP */
.content-wrap {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left .28s cubic-bezier(.4,0,.2,1)
}

/* TOPBAR */
.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--topbar-h);
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(79,70,229,.08);
    box-shadow: 0 2px 14px rgba(var(--blue-rgb),.06);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 0 14px;
    flex-shrink: 0
}

.topbar-toggle {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid var(--card-border);
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    color: var(--text-sub);
    transition: all .18s;
    flex-shrink: 0
}

.topbar-toggle:hover {
    background: var(--blue-light);
    color: var(--blue);
    border-color: var(--blue)
}

.topbar-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-main);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 7px
}

.topbar-title i {
    color: var(--blue);
    font-size: .82rem
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 299;
    backdrop-filter: blur(2px)
}

.sidebar-overlay.open {
    display: block
}

/* MAIN */
.main {
    flex: 1;
    padding: 22px 24px 28px;
    background: var(--bg)
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-border)
}

.page-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px
}

.page-header h2 i {
    color: var(--blue);
    font-size: 1rem
}

/* ═══════════════ STAT CARDS ═══════════════ */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
    gap: 14px;
    margin-bottom: 24px
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--card-shadow);
    transition: box-shadow .22s,transform .22s;
    position: relative;
    overflow: hidden
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(var(--blue-rgb),.06) 0%,transparent 70%);
    pointer-events: none
}

.stat-card:hover {
    box-shadow: 0 8px 28px rgba(var(--blue-rgb),.13);
    transform: translateY(-3px)
}

.stat-card.grad-blue {
    background: linear-gradient(135deg,var(--blue) 0%,#818cf8 100%);
    border: none;
    color: #fff
}

.stat-card.grad-blue .lbl,.stat-card.grad-blue .sub {
    color: rgba(255,255,255,.8)
}

.stat-card.grad-blue .val {
    color: #fff
}

.stat-card.grad-green {
    background: linear-gradient(135deg,var(--green) 0%,#4ade80 100%);
    border: none;
    color: #fff
}

.stat-card.grad-green .lbl,.stat-card.grad-green .sub {
    color: rgba(255,255,255,.8)
}

.stat-card.grad-green .val {
    color: #fff
}

.stat-card.grad-orange {
    background: linear-gradient(135deg,var(--orange) 0%,#fbbf24 100%);
    border: none;
    color: #fff
}

.stat-card.grad-orange .lbl,.stat-card.grad-orange .sub {
    color: rgba(255,255,255,.8)
}

.stat-card.grad-orange .val {
    color: #fff
}

.stat-card.grad-purple {
    background: linear-gradient(135deg,var(--purple) 0%,#c084fc 100%);
    border: none;
    color: #fff
}

.stat-card.grad-purple .lbl,.stat-card.grad-purple .sub {
    color: rgba(255,255,255,.8)
}

.stat-card.grad-purple .val {
    color: #fff
}

.stat-card.grad-red {
    background: linear-gradient(135deg,var(--red) 0%,#f87171 100%);
    border: none;
    color: #fff
}

.stat-card.grad-red .lbl,.stat-card.grad-red .sub {
    color: rgba(255,255,255,.8)
}

.stat-card.grad-red .val {
    color: #fff
}

.stat-card.grad-teal {
    background: linear-gradient(135deg,var(--teal) 0%,#34d399 100%);
    border: none;
    color: #fff
}

.stat-card.grad-teal .lbl,.stat-card.grad-teal .sub {
    color: rgba(255,255,255,.8)
}

.stat-card.grad-teal .val {
    color: #fff
}

.stat-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: transform .25s
}

.stat-card:hover .icon {
    transform: scale(1.1) rotate(-3deg)
}

.stat-card .icon-blue {
    background: linear-gradient(135deg,#eef2ff,#c7d2fe);
    color: #4f46e5
}

.stat-card .icon-green {
    background: linear-gradient(135deg,#f0fdf4,#bbf7d0);
    color: #16a34a
}

.stat-card .icon-orange {
    background: linear-gradient(135deg,#fff7ed,#fed7aa);
    color: #ea580c
}

.stat-card .icon-purple {
    background: linear-gradient(135deg,#faf5ff,#e9d5ff);
    color: #7c3aed
}

.stat-card .icon-red {
    background: linear-gradient(135deg,#fef2f2,#fecaca);
    color: #dc2626
}

.stat-card .icon-teal {
    background: linear-gradient(135deg,#f0fdfa,#99f6e4);
    color: #0d9488
}

.stat-card .icon-pink {
    background: linear-gradient(135deg,#fdf2f8,#fbcfe8);
    color: #db2777
}

.stat-card .icon-cyan {
    background: linear-gradient(135deg,#ecfeff,#a5f3fc);
    color: #0891b2
}

.stat-card.grad-blue .icon,.stat-card.grad-green .icon,.stat-card.grad-orange .icon,.stat-card.grad-purple .icon,.stat-card.grad-red .icon,.stat-card.grad-teal .icon {
    background: rgba(255,255,255,.2);
    color: #fff
}

.stat-card .text .lbl {
    font-size: .72rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 600
}

.stat-card .text .val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15
}

.stat-card .text .sub {
    font-size: .73rem;
    color: var(--text-light);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px
}

.trend-up {
    color: #fff;
}

.trend-up i {
    font-size: .65rem
}

.trend-down {
    color: #fff;
}

.trend-down i {
    font-size: .65rem
}

.stat-sparkline {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 36px;
    opacity: .35
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    line-height: 1.4;
    transition: all .18s;
    white-space: nowrap;
    position: relative;
    overflow: hidden
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle,rgba(255,255,255,.4) 0%,transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform .4s,opacity .4s;
    border-radius: inherit
}

.btn:active::after {
    transform: scale(2.5);
    opacity: 1;
    transition: none
}

.btn:hover {
    text-decoration: none;
    filter: brightness(1.07)
}

.btn:active {
    transform: scale(.97)
}

.btn i {
    font-size: .82rem;
    transition: transform .2s
}

.btn:hover i {
    transform: scale(1.1)
}

.btn-sm {
    padding: 5px 12px;
    font-size: .78rem
}

.btn-primary {
    background: linear-gradient(135deg,var(--blue),var(--blue-dark));
    color: #fff;
    box-shadow: 0 3px 10px rgba(var(--blue-rgb),.3)
}

.btn-primary:hover {
    color: #fff;
    box-shadow: 0 5px 16px rgba(var(--blue-rgb),.4)
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-sub);
    border: 1.5px solid var(--card-border)
}

.btn-secondary:hover {
    background: #f3f4f6;
    color: var(--text-main)
}

.btn-danger {
    background: linear-gradient(135deg,var(--red),#b91c1c);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220,38,38,.2)
}

.btn-danger:hover {
    color: #fff
}

.btn-success {
    background: linear-gradient(135deg,var(--green),#15803d);
    color: #fff
}

.btn-success:hover {
    color: #fff
}

.btn-warning {
    background: linear-gradient(135deg,#f59e0b,#d97706);
    color: #fff
}

.btn-warning:hover {
    color: #fff
}

.btn-info {
    background: linear-gradient(135deg,#0ea5e9,#0284c7);
    color: #fff
}

.btn-info:hover {
    color: #fff
}

/* ═══════════════ BADGES ═══════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2px
}

.badge-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0
}

.badge-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca
}

.badge-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a
}

.badge-info {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd
}

.badge-blue {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #c7d2fe
}

.badge-orange {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa
}

.badge-purple {
    background: #faf5ff;
    color: #6d28d9;
    border: 1px solid #e9d5ff
}

.badge-secondary {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb
}

.badge-teal {
    background: #f0fdfa;
    color: #0f766e;
    border: 1px solid #99f6e4
}

.badge-pink {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8
}

/* ═══════════════ SECTIONS ═══════════════ */
.bolum {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: var(--card-shadow);
    transition: box-shadow .2s
}

.bolum:hover {
    box-shadow: 0 4px 20px rgba(var(--blue-rgb),.09)
}

.bolum-baslik {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9
}

.bolum-baslik i {
    color: var(--blue);
    font-size: .9rem
}

/* ═══════════════ FORMS ═══════════════ */
.form-grup {
    margin-bottom: 14px
}

.form-grup label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .3px
}

.form-grup input,.form-grup select,.form-grup textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    color: var(--text-main);
    background: #fff;
    transition: border-color .22s,box-shadow .22s;
    outline: none;
    font-family: inherit
}

.form-grup input:focus,.form-grup select:focus,.form-grup textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3.5px rgba(var(--blue-rgb),.12)
}

.form-grup input:hover,.form-grup select:hover {
    border-color: #c7d2fe
}

.form-grup textarea {
    min-height: 80px;
    resize: vertical
}

.form-row {
    display: flex;
    gap: 16px
}

.form-row .form-grup {
    flex: 1
}

.form-float {
    position: relative;
    margin-bottom: 14px
}

.form-float input,.form-float select,.form-float textarea {
    width: 100%;
    padding: 18px 13px 8px;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    color: var(--text-main);
    background: #fff;
    transition: border-color .22s,box-shadow .22s;
    outline: none;
    font-family: inherit
}

.form-float label {
    position: absolute;
    left: 14px;
    top: 6px;
    font-size: .78rem;
    color: var(--text-sub);
    transition: all .18s ease;
    pointer-events: none;
    font-weight: 500
}

.form-float input:focus,.form-float textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3.5px rgba(var(--blue-rgb),.12)
}

.form-float input:focus+label,.form-float input:not(:placeholder-shown)+label,.form-float textarea:focus+label,.form-float textarea:not(:placeholder-shown)+label {
    top: 5px;
    font-size: .66rem;
    color: var(--blue);
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase
}

/* ═══════════════ ALERTS ═══════════════ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: .87rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px
}

.alert-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac
}

.alert-danger,.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5
}

.alert-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a
}

.alert-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(110%)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

@keyframes toastOut {
    from {
        opacity: 1
    }

    to {
        opacity: 0;
        transform: translateX(110%)
    }
}

.mesaj {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: .87rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn .3s
}

.mesaj-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #86efac
}

.mesaj-error,.mesaj-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5
}

.mesaj-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a
}

.toast-container {
    position: fixed;
    top: 14px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none
}

.toast {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    min-width: 280px;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    border-left: 4px solid var(--blue);
    font-size: .87rem;
    font-weight: 500;
    animation: toastIn .3s ease;
    pointer-events: auto;
    position: relative
}

.toast.toast-success {
    border-left-color: var(--green)
}

.toast.toast-danger,.toast.toast-error {
    border-left-color: var(--red)
}

.toast.toast-warning {
    border-left-color: #f59e0b
}

.toast .toast-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1rem;
    padding: 0 2px;
    line-height: 1
}

.toast .toast-close:hover {
    color: var(--text-main)
}

/* ═══════════════ PROGRESS ═══════════════ */
.progress-bar-wrap {
    background: #f1f5f9;
    border-radius: 100px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 4px
}

.progress-bar {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg,var(--blue),var(--purple));
    transition: width .6s cubic-bezier(.4,0,.2,1)
}

/* ═══════════════ STATUS ═══════════════ */
@keyframes pulse {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}

.durum {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: .72rem;
    font-weight: 700
}

.durum::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0
}

.durum-aktif,.durum-tamamlandi,.durum-odendi,.durum-acik {
    background: #f0fdf4;
    color: #15803d
}

.durum-aktif::before,.durum-acik::before {
    background: #16a34a;
    animation: pulse 2s infinite
}

.durum-tamamlandi::before,.durum-odendi::before {
    background: #16a34a
}

.durum-bekliyor,.durum-devam,.durum-surec,.durum-devam_ediyor {
    background: #fffbeb;
    color: #b45309
}

.durum-bekliyor::before,.durum-devam::before,.durum-devam_ediyor::before {
    background: #f59e0b;
    animation: pulse 2s infinite
}

.durum-iptal,.durum-kapali,.durum-gecikti {
    background: #fef2f2;
    color: #b91c1c
}

.durum-iptal::before,.durum-kapali::before {
    background: #dc2626
}

.durum-yeni,.durum-hazirlaniyor {
    background: #eef2ff;
    color: #4338ca
}

.durum-yeni::before,.durum-hazirlaniyor::before {
    background: #4f46e5;
    animation: pulse 2s infinite
}

/* ═══════════════ LOGIN ═══════════════ */
.giris-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg,#eef2fb 0%,#e0e7ff 50%,#ddd6fe 100%)
}

.giris-kart {
    background: rgba(255,255,255,.95);
    padding: 38px;
    border-radius: calc(var(--radius)*1.5);
    border: 1px solid rgba(255,255,255,.8);
    width: 390px;
    box-shadow: 0 20px 60px rgba(79,70,229,.15);
    backdrop-filter: blur(8px)
}

.giris-logo {
    text-align: center;
    margin-bottom: 26px
}

.giris-logo i {
    font-size: 2.6rem;
    color: var(--blue);
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 12px rgba(var(--blue-rgb),.3))
}

.giris-logo h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main)
}

.giris-logo p {
    font-size: .8rem;
    color: var(--text-light);
    margin-top: 4px
}

.giris-kart h2 {
    text-align: center;
    margin-bottom: 22px;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 700
}

.giris-kart p {
    text-align: center;
    font-size: .78rem;
    color: var(--text-light);
    margin-top: 14px
}

/* ═══════════════ TABLE ═══════════════ */
.tablo-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    box-shadow: var(--card-shadow)
}

.tablo {
    width: 100%;
    border-collapse: collapse;
    font-size: .855rem
}

.tablo thead {
    background: linear-gradient(to right,#f8f9ff,#f5f0ff);
    position: sticky;
    top: 0;
    z-index: 1
}

.tablo thead tr {
    border-bottom: 1.5px solid var(--card-border)
}

.tablo th {
    padding: 11px 14px;
    text-align: left;
    font-size: .695rem;
    font-weight: 700;
    color: #7c82a0;
    text-transform: uppercase;
    letter-spacing: .8px;
    white-space: nowrap
}

.tablo td {
    padding: 12px 14px;
    color: var(--text-main);
    border-bottom: 1px solid #f4f6fb;
    vertical-align: middle
}

.tablo tbody tr:nth-child(even) {
    background: #fafbff
}

.tablo tbody tr:last-child td {
    border-bottom: none
}

.tablo tbody tr {
    transition: background .12s,box-shadow .12s
}

.tablo tbody tr:hover {
    background: var(--blue-light);
    box-shadow: inset 3px 0 0 var(--blue)
}

.tablo .bos {
    text-align: center;
    color: var(--text-light);
    padding: 36px;
    font-size: .9rem;
    font-style: italic
}

.tablo code {
    background: #f0f2ff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .79rem;
    color: #4f46e5;
    font-family: 'SF Mono',monospace
}

.tablo .amount-pos {
    color: #16a34a;
    font-weight: 700
}

.tablo .amount-neg {
    color: #dc2626;
    font-weight: 700
}

.tablo .amount-cell {
    text-align: right;
    font-family: 'SF Mono','Courier New',monospace;
    font-size: .875rem
}

/* ═══════════════ KANBAN ═══════════════ */
.kanban {
    display: flex;
    gap: 16px;
    overflow-x: auto
}

.kanban-kolon {
    flex: 1;
    min-width: 240px;
    background: #f8fafc;
    border-radius: var(--radius);
    padding: 14px;
    border: 1px solid var(--card-border)
}

.kanban-baslik {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
    color: var(--text-sub)
}

.kanban-kart {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    border: 1.5px solid var(--card-border);
    box-shadow: var(--card-shadow);
    transition: box-shadow .15s,transform .15s
}

.kanban-kart:hover {
    box-shadow: 0 4px 16px rgba(var(--blue-rgb),.1);
    transform: translateY(-1px)
}

/* ═══════════════ MISC ═══════════════ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 16px
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: box-shadow .22s,transform .22s
}

.card:hover {
    box-shadow: 0 8px 28px rgba(var(--blue-rgb),.11);
    transform: translateY(-2px)
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px
}

.card-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-main)
}

.card-body {
    font-size: .87rem;
    color: var(--text-sub)
}

.lider-listesi {
    list-style: none
}

.lider-listesi li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
    transition: background .12s
}

.lider-listesi li:hover {
    background: #fafbff
}

.lider-no {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 800;
    background: #f1f5f9;
    color: #6b7280;
    flex-shrink: 0
}

.lider-no.gold {
    background: linear-gradient(135deg,#fef3c7,#fde68a);
    color: #d97706
}

.lider-no.silver {
    background: linear-gradient(135deg,#f1f5f9,#e2e8f0);
    color: #9ca3af
}

.lider-no.bronze {
    background: linear-gradient(135deg,#fff7ed,#fed7aa);
    color: #c2410c
}

.sayfalama {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap
}

.sayfa-bilgi {
    font-size: .8rem;
    color: var(--text-light)
}

.sidebar-user {
    padding: 14px 16px;
    border-top: 1px solid var(--sidebar-border);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg,var(--blue),var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(var(--blue-rgb),.3)
}

.user-info {
    flex: 1;
    min-width: 0
}

.user-name {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.user-role {
    display: block;
    font-size: .7rem;
    color: var(--text-light)
}

.user-logout {
    color: var(--text-light);
    font-size: .95rem;
    transition: color .2s;
    flex-shrink: 0
}

.user-logout:hover {
    color: var(--red);
    text-decoration: none
}

.d-flex {
    display: flex
}

.align-center {
    align-items: center
}

.justify-between {
    justify-content: space-between
}

.gap-8 {
    gap: 8px
}

.gap-4 {
    gap: 4px
}

.mb-0 {
    margin-bottom: 0
}

.mb-1 {
    margin-bottom: 6px
}

.mb-2 {
    margin-bottom: 12px
}

.mb-3 {
    margin-bottom: 18px
}

.mt-2 {
    margin-top: 12px
}

.w-100 {
    width: 100%
}

.text-success {
    color: var(--green)!important
}

.text-danger {
    color: var(--red)!important
}

.text-muted {
    color: var(--text-light)!important
}

.text-center {
    text-align: center
}

.font-bold {
    font-weight: 700
}

.font-mono {
    font-family: monospace
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media(max-width: 900px) {
    .sidebar {
        transform:translateX(-100%)
    }

    .sidebar.open {
        transform: translateX(0)
    }

    .content-wrap {
        margin-left: 0
    }

    .topbar-toggle {
        display: flex
    }
}

@media(max-width: 768px) {
    .main {
        padding:18px 14px 20px
    }

    .stat-cards {
        grid-template-columns: repeat(2,1fr)
    }

    .form-row {
        flex-direction: column;
        gap: 0
    }

    .kanban {
        flex-direction: column
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start
    }
}

@media(max-width: 480px) {
    .stat-cards {
        grid-template-columns:1fr 1fr
    }

    .giris-kart {
        width: 90vw;
        padding: 28px 20px
    }

    .stat-card .text .val {
        font-size: 1.3rem
    }
}

/* ═══════════════ UPLOAD WIDGET ═══════════════ */
.upload-widget {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.uw-preview-wrap {
    position: relative;
    width: 100%;
    max-width: 260px;
    height: 120px;
    border: 2px dashed var(--card-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s
}

.uw-preview-wrap:hover {
    border-color: var(--blue)
}

.uw-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none
}

.uw-preview.has-img {
    display: block
}

.uw-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: .82rem;
    text-align: center
}

.uw-placeholder i {
    font-size: 1.8rem;
    color: var(--blue-light)
}

.uw-placeholder.hidden {
    display: none
}

.uw-controls {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.uw-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap
}

.uw-btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    background: var(--blue-light);
    color: var(--blue);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid rgba(79,70,229,.2);
    transition: all .18s;
    white-space: nowrap
}

.uw-btn-upload:hover {
    background: var(--blue);
    color: #fff
}

.uw-btn-upload input[type=file] {
    display: none
}

.uw-url-input {
    flex: 1;
    min-width: 160px;
    padding: 7px 11px;
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: .83rem;
    outline: none;
    color: var(--text-main);
    background: #fff;
    transition: border-color .18s
}

.uw-url-input:focus {
    border-color: var(--blue)
}

.uw-progress {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: var(--text-sub)
}

.uw-progress.show {
    display: flex
}

.uw-progress-bar-wrap {
    flex: 1;
    height: 5px;
    background: var(--bg);
    border-radius: 3px;
    overflow: hidden
}

.uw-progress-bar {
    height: 100%;
    background: var(--blue);
    border-radius: 3px;
    width: 0%;
    transition: width .2s
}

.uw-error {
    display: none;
    font-size: .78rem;
    color: var(--red);
    margin-top: 3px
}

.uw-error.show {
    display: block
}

/* ═══════════════ QUILL EDITOR ═══════════════ */
.quill-wrap {
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: #fff;
    overflow: hidden
}

.quill-wrap .ql-toolbar {
    border: none;
    border-bottom: 1px solid var(--card-border);
    background: var(--bg)
}

.quill-wrap .ql-container {
    border: none;
    font-family: 'Inter',sans-serif;
    font-size: .9rem;
    min-height: 120px
}

.quill-wrap .ql-editor {
    min-height: 120px;
    padding: 12px 14px;
    line-height: 1.7
}

.quill-hidden {
    display: none!important
}

/* ═══════════════ RAPOR EXPORT BUTTONS ═══════════════ */
.rapor-export-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 18px
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .18s,transform .1s;
    text-decoration: none!important
}

.btn-export:active {
    transform: scale(.97)
}

.btn-export-pdf {
    background: #ef4444;
    color: #fff
}

.btn-export-pdf:hover {
    background: #dc2626
}

.btn-export-excel {
    background: #16a34a;
    color: #fff
}

.btn-export-excel:hover {
    background: #15803d
}

.btn-export-print {
    background: #6b7280;
    color: #fff
}

.btn-export-print:hover {
    background: #4b5563
}

/* ═══════════════ PRINT STYLES ═══════════════ */
@media print {
    .sidebar,.topbar,.rapor-export-bar,.sidebar-overlay,.toast-container, form,.btn,.page-header {
        display: none!important
    }

    .content-wrap {
        margin-left: 0!important;
        padding: 0!important
    }

    .main {
        padding: 16px!important
    }

    body {
        background: #fff!important;
        color: #000!important;
        font-size: 11pt
    }

    .bolum {
        border: 1px solid #ccc;
        margin-bottom: 14pt;
        padding: 10pt;
        break-inside: avoid;
        box-shadow: none
    }

    .bolum-baslik {
        font-size: 11pt;
        font-weight: 700;
        margin-bottom: 8pt;
        border-bottom: 1px solid #ddd;
        padding-bottom: 4pt
    }

    .stat-cards {
        display: grid;
        grid-template-columns: repeat(5,1fr);
        gap: 8pt;
        margin-bottom: 14pt
    }

    .stat-card {
        border: 1px solid #ccc;
        padding: 8pt;
        border-radius: 6pt;
        box-shadow: none
    }

    .stat-card .lbl {
        font-size: 8pt;
        color: #555
    }

    .stat-card .val {
        font-size: 14pt;
        font-weight: 700
    }

    .tablo {
        width: 100%;
        border-collapse: collapse;
        font-size: 9pt
    }

    .tablo th {
        background: #f0f0f0!important;
        color: #000!important;
        border: 1px solid #ccc;
        padding: 5pt 7pt;
        text-align: left
    }

    .tablo td {
        border: 1px solid #ddd;
        padding: 4pt 7pt
    }

    .tablo tr:nth-child(even) td {
        background: #fafafa
    }

    canvas {
        max-width: 100%!important
    }

    .print-report-header {
        display: block!important;
        text-align: center;
        margin-bottom: 18pt;
        border-bottom: 2px solid #333;
        padding-bottom: 10pt
    }

    .print-report-header h1 {
        font-size: 18pt;
        font-weight: 800;
        margin-bottom: 4pt
    }

    .print-report-header p {
        font-size: 10pt;
        color: #555
    }

    a {
        color: #000!important;
        text-decoration: none!important
    }

    .badge {
        background: #eee!important;
        color: #333!important;
        border: 1px solid #ccc
    }

    .progress-bar-wrap,.progress-bar {
        display: none
    }
}

.print-report-header {
    display: none
}
