﻿@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css');
@import 'shared/utilities.css';

/* ═══════════════════════════════════════════════════════════════
   GLOBAL SELECT / COMBOBOX — Tarayıcı okunu kaldır, Tabler oku koy
   Tüm sayfalarda tutarlı görünüm
   ═══════════════════════════════════════════════════════════════ */
/* select: tarayıcı varsayılan ok ikonu kullanılır */
select {
    cursor: pointer;
}

/* select-arrow SVG'leri görünmez */
.select-arrow { display: none !important; }



/* ═══════════════════════════════════════════════════════════════
   Multi-Theme Design System
   Theme Switcher | CSS Variables | 8px Grid
   Application Name: Customizable via Settings
   ═══════════════════════════════════════════════════════════════ */
/* Tema	Konsept	Ana Renk	Hedef Duygu
Sunset	Turuncu/Pembe gradient hissi	#f97316	Sıcaklık, enerji
Forest	Yeşil doğa tonları	#16a34a	Huzur, doğallık
Purple	Mor/Lavanta	#8b5cf6	Yaratıcılık, lüks
Rose	Pembe/Gül	#e11d48	Yumuşaklık, modern
Midnight	Derin mavi/Neon	#6366f1	Odaklanma, derinlik
Mint	Nane yeşili	#14b8a6	Tazelik, ferahlık
Cherry	Kiraz kırmızısı	#dc2626	Tutku, güç
Gold	Altın sarısı	#eab308	Lüks, başarı
Lavender	Lavanta moru	#c084fc	Sakinlik, zarafet
Coral	Mercan pembesi	#fb7185	Sıcaklık, canlılık
Slate	Gri profesyonel	#64748b	Ciddiyet, kurumsal
Emerald	Zümrüt yeşili	#10b981	Zenginlik, denge
Sky	Açık gök mavisi	#38bdf8	Özgürlük, açıklık
Noir	Saf siyah OLED	#000000	Şıklık, derinlik 
*/


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

/* ═══════════════════════════════════════════════════════════════
   THEME: LIGHT (Default)
   ═══════════════════════════════════════════════════════════════ */
:root,
[data-theme="light"] {
    --bg: #fafafa;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-hover: #f5f5f5;
    --border: #e5e5e5;
    --border-focus: #171717;
    --text: #171717;
    --text-secondary: #525252;
    --text-muted: #a3a3a3;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #ca8a04;
    --warning-light: #fefce8;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: DARK
   ═══════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-elevated: #171717;
    --surface: #171717;
    --surface-hover: #262626;
    --border: #262626;
    --border-focus: #525252;
    --text: #fafafa;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-light: rgba(59,130,246,0.15);
    --success: #22c55e;
    --success-light: rgba(34,197,94,0.15);
    --warning: #eab308;
    --warning-light: rgba(234,179,8,0.15);
    --danger: #ef4444;
    --danger-light: rgba(239,68,68,0.15);
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.4);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: WARM
   ═══════════════════════════════════════════════════════════════ */
[data-theme="warm"] {
    --bg: #faf8f5;
    --bg-elevated: #fffefa;
    --surface: #fffefa;
    --surface-hover: #f5f0e8;
    --border: #e8e0d5;
    --border-focus: #8b7355;
    --text: #3d3229;
    --text-secondary: #6b5c4d;
    --text-muted: #a89a8a;
    --accent: #b45309;
    --accent-hover: #92400e;
    --accent-light: #fef3e2;
    --success: #15803d;
    --success-light: #dcfce7;
    --warning: #a16207;
    --warning-light: #fef9c3;
    --danger: #b91c1c;
    --danger-light: #fee2e2;
    --shadow: 0 1px 3px rgba(139,115,85,0.1);
    --shadow-lg: 0 4px 12px rgba(139,115,85,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: OCEAN
   ═══════════════════════════════════════════════════════════════ */
[data-theme="ocean"] {
    --bg: #f0f9ff;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-hover: #e0f2fe;
    --border: #bae6fd;
    --border-focus: #0284c7;
    --text: #0c4a6e;
    --text-secondary: #0369a1;
    --text-muted: #7dd3fc;
    --accent: #0891b2;
    --accent-hover: #0e7490;
    --accent-light: #cffafe;
    --success: #059669;
    --success-light: #d1fae5;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --shadow: 0 1px 3px rgba(14,116,144,0.1);
    --shadow-lg: 0 4px 12px rgba(14,116,144,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: SUNSET - Enerjik turuncu/pembe tonları
   ═══════════════════════════════════════════════════════════════ */
[data-theme="sunset"] {
    --bg: #fff7ed;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-hover: #ffedd5;
    --border: #fed7aa;
    --border-focus: #ea580c;
    --text: #7c2d12;
    --text-secondary: #c2410c;
    --text-muted: #fb923c;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-light: #fff7ed;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --shadow: 0 1px 3px rgba(249,115,22,0.1);
    --shadow-lg: 0 4px 12px rgba(249,115,22,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: FOREST - Doğal yeşil tonları
   ═══════════════════════════════════════════════════════════════ */
[data-theme="forest"] {
    --bg: #f0fdf4;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-hover: #dcfce7;
    --border: #bbf7d0;
    --border-focus: #16a34a;
    --text: #14532d;
    --text-secondary: #166534;
    --text-muted: #4ade80;
    --accent: #22c55e;
    --accent-hover: #16a34a;
    --accent-light: #f0fdf4;
    --success: #15803d;
    --success-light: #dcfce7;
    --warning: #ca8a04;
    --warning-light: #fef9c3;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --shadow: 0 1px 3px rgba(34,197,94,0.1);
    --shadow-lg: 0 4px 12px rgba(34,197,94,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: PURPLE - Yaratıcı mor/lavanta
   ═══════════════════════════════════════════════════════════════ */
[data-theme="purple"] {
    --bg: #faf5ff;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-hover: #f3e8ff;
    --border: #e9d5ff;
    --border-focus: #9333ea;
    --text: #581c87;
    --text-secondary: #7e22ce;
    --text-muted: #c084fc;
    --accent: #a855f7;
    --accent-hover: #9333ea;
    --accent-light: #faf5ff;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #ca8a04;
    --warning-light: #fef9c3;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --shadow: 0 1px 3px rgba(168,85,247,0.1);
    --shadow-lg: 0 4px 12px rgba(168,85,247,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: ROSE - Modern pembe
   ═══════════════════════════════════════════════════════════════ */
[data-theme="rose"] {
    --bg: #fff1f2;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-hover: #ffe4e6;
    --border: #fecdd3;
    --border-focus: #e11d48;
    --text: #881337;
    --text-secondary: #be123c;
    --text-muted: #fb7185;
    --accent: #f43f5e;
    --accent-hover: #e11d48;
    --accent-light: #fff1f2;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #ca8a04;
    --warning-light: #fef9c3;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --shadow: 0 1px 3px rgba(244,63,94,0.1);
    --shadow-lg: 0 4px 12px rgba(244,63,94,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: MIDNIGHT - Derin mavi neon
   ═══════════════════════════════════════════════════════════════ */
[data-theme="midnight"] {
    --bg: #0f172a;
    --bg-elevated: #1e293b;
    --surface: #1e293b;
    --surface-hover: #334155;
    --border: #334155;
    --border-focus: #818cf8;
    --text: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-light: rgba(129,140,248,0.15);
    --success: #4ade80;
    --success-light: rgba(74,222,128,0.15);
    --warning: #fbbf24;
    --warning-light: rgba(251,191,36,0.15);
    --danger: #f87171;
    --danger-light: rgba(248,113,113,0.15);
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: MINT - Taze nane yeşili
   ═══════════════════════════════════════════════════════════════ */
[data-theme="mint"] {
    --bg: #f0fdfa;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-hover: #ccfbf1;
    --border: #99f6e4;
    --border-focus: #0d9488;
    --text: #134e4a;
    --text-secondary: #0f766e;
    --text-muted: #5eead4;
    --accent: #14b8a6;
    --accent-hover: #0d9488;
    --accent-light: #f0fdfa;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #ca8a04;
    --warning-light: #fef9c3;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --shadow: 0 1px 3px rgba(20,184,166,0.1);
    --shadow-lg: 0 4px 12px rgba(20,184,166,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: CHERRY - Kiraz kırmızısı, tutku
   ═══════════════════════════════════════════════════════════════ */
[data-theme="cherry"] {
    --bg: #fef2f2;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-hover: #fee2e2;
    --border: #fecaca;
    --border-focus: #dc2626;
    --text: #7f1d1d;
    --text-secondary: #b91c1c;
    --text-muted: #f87171;
    --accent: #ef4444;
    --accent-hover: #dc2626;
    --accent-light: #fef2f2;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #ca8a04;
    --warning-light: #fef9c3;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --shadow: 0 1px 3px rgba(239,68,68,0.1);
    --shadow-lg: 0 4px 12px rgba(239,68,68,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: GOLD - Altın sarısı, lüks
   ═══════════════════════════════════════════════════════════════ */
[data-theme="gold"] {
    --bg: #fefce8;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-hover: #fef9c3;
    --border: #fef08a;
    --border-focus: #ca8a04;
    --text: #713f12;
    --text-secondary: #a16207;
    --text-muted: #facc15;
    --accent: #eab308;
    --accent-hover: #ca8a04;
    --accent-light: #fefce8;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #d97706;
    --warning-light: #ffedd5;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --shadow: 0 1px 3px rgba(234,179,8,0.1);
    --shadow-lg: 0 4px 12px rgba(234,179,8,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: LAVENDER - Lavanta, sakinlik
   ═══════════════════════════════════════════════════════════════ */
[data-theme="lavender"] {
    --bg: #fdf4ff;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-hover: #fae8ff;
    --border: #f5d0fe;
    --border-focus: #a855f7;
    --text: #701a75;
    --text-secondary: #a21caf;
    --text-muted: #e879f9;
    --accent: #d946ef;
    --accent-hover: #c026d3;
    --accent-light: #fdf4ff;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #ca8a04;
    --warning-light: #fef9c3;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --shadow: 0 1px 3px rgba(217,70,239,0.1);
    --shadow-lg: 0 4px 12px rgba(217,70,239,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: CORAL - Mercan pembesi, sıcaklık
   ═══════════════════════════════════════════════════════════════ */
[data-theme="coral"] {
    --bg: #fff5f5;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-hover: #ffe4e6;
    --border: #fda4af;
    --border-focus: #f43f5e;
    --text: #9f1239;
    --text-secondary: #e11d48;
    --text-muted: #fb7185;
    --accent: #fb7185;
    --accent-hover: #f43f5e;
    --accent-light: #fff1f2;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #ca8a04;
    --warning-light: #fef9c3;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --shadow: 0 1px 3px rgba(251,113,133,0.1);
    --shadow-lg: 0 4px 12px rgba(251,113,133,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: SLATE - Gri profesyonel, kurumsal
   ═══════════════════════════════════════════════════════════════ */
[data-theme="slate"] {
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-hover: #f1f5f9;
    --border: #e2e8f0;
    --border-focus: #475569;
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent: #64748b;
    --accent-hover: #475569;
    --accent-light: #f1f5f9;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #ca8a04;
    --warning-light: #fef9c3;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --shadow: 0 1px 3px rgba(100,116,139,0.1);
    --shadow-lg: 0 4px 12px rgba(100,116,139,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: EMERALD - Zümrüt yeşili, zenginlik
   ═══════════════════════════════════════════════════════════════ */
[data-theme="emerald"] {
    --bg: #ecfdf5;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-hover: #d1fae5;
    --border: #a7f3d0;
    --border-focus: #059669;
    --text: #064e3b;
    --text-secondary: #047857;
    --text-muted: #34d399;
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-light: #ecfdf5;
    --success: #059669;
    --success-light: #d1fae5;
    --warning: #ca8a04;
    --warning-light: #fef9c3;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --shadow: 0 1px 3px rgba(16,185,129,0.1);
    --shadow-lg: 0 4px 12px rgba(16,185,129,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: SKY - Açık gök mavisi, özgürlük
   ═══════════════════════════════════════════════════════════════ */
[data-theme="sky"] {
    --bg: #f0f9ff;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface-hover: #e0f2fe;
    --border: #bae6fd;
    --border-focus: #0284c7;
    --text: #075985;
    --text-secondary: #0369a1;
    --text-muted: #38bdf8;
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --accent-light: #f0f9ff;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #ca8a04;
    --warning-light: #fef9c3;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --shadow: 0 1px 3px rgba(14,165,233,0.1);
    --shadow-lg: 0 4px 12px rgba(14,165,233,0.15);
}

/* ═══════════════════════════════════════════════════════════════
   THEME: NOIR - Saf siyah OLED, şıklık
   ═══════════════════════════════════════════════════════════════ */
[data-theme="noir"] {
    --bg: #000000;
    --bg-elevated: #0a0a0a;
    --surface: #0a0a0a;
    --surface-hover: #171717;
    --border: #262626;
    --border-focus: #fafafa;
    --text: #fafafa;
    --text-secondary: #d4d4d4;
    --text-muted: #737373;
    --accent: #fafafa;
    --accent-hover: #e5e5e5;
    --accent-light: rgba(250,250,250,0.1);
    --success: #4ade80;
    --success-light: rgba(74,222,128,0.15);
    --warning: #fbbf24;
    --warning-light: rgba(251,191,36,0.15);
    --danger: #f87171;
    --danger-light: rgba(248,113,113,0.15);
    --shadow: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.6);
}

/* ═══════════════════════════════════════════════════════════════
   SPACING & TYPOGRAPHY TOKENS
   ═══════════════════════════════════════════════════════════════ */
:root {
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════════════ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: var(--space-6);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-6);
}

/* ═══════════════════════════════════════════════════════════════
   THEME SWITCHER
   ═══════════════════════════════════════════════════════════════ */

.theme-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-wrap: wrap;
    max-width: 280px;
}

.theme-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    flex-shrink: 0;
}

.theme-btn:hover {
    transform: scale(1.15);
    z-index: 1;
}

.theme-btn.active {
    border-color: var(--text);
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
    transform: scale(1.1);
}

.theme-btn[data-theme="light"] {
    background: #fafafa;
    box-shadow: inset 0 0 0 1px #e5e5e5;
}

.theme-btn[data-theme="dark"] {
    background: #171717;
}

.theme-btn[data-theme="warm"] {
    background: linear-gradient(135deg, #faf8f5 50%, #d4a574 50%);
}

.theme-btn[data-theme="ocean"] {
    background: linear-gradient(135deg, #e0f2fe 50%, #0891b2 50%);
}

.theme-btn[data-theme="sunset"] {
    background: linear-gradient(135deg, #fed7aa 50%, #f97316 50%);
}

.theme-btn[data-theme="forest"] {
    background: linear-gradient(135deg, #bbf7d0 50%, #22c55e 50%);
}

.theme-btn[data-theme="purple"] {
    background: linear-gradient(135deg, #e9d5ff 50%, #a855f7 50%);
}

.theme-btn[data-theme="rose"] {
    background: linear-gradient(135deg, #fecdd3 50%, #f43f5e 50%);
}

.theme-btn[data-theme="midnight"] {
    background: linear-gradient(135deg, #1e293b 50%, #818cf8 50%);
}

.theme-btn[data-theme="mint"] {
    background: linear-gradient(135deg, #99f6e4 50%, #14b8a6 50%);
}

.theme-btn[data-theme="cherry"] {
    background: linear-gradient(135deg, #fecaca 50%, #ef4444 50%);
}

.theme-btn[data-theme="gold"] {
    background: linear-gradient(135deg, #fef08a 50%, #eab308 50%);
}

.theme-btn[data-theme="lavender"] {
    background: linear-gradient(135deg, #f5d0fe 50%, #d946ef 50%);
}

.theme-btn[data-theme="coral"] {
    background: linear-gradient(135deg, #fda4af 50%, #fb7185 50%);
}

.theme-btn[data-theme="slate"] {
    background: linear-gradient(135deg, #e2e8f0 50%, #64748b 50%);
}

.theme-btn[data-theme="emerald"] {
    background: linear-gradient(135deg, #a7f3d0 50%, #10b981 50%);
}

.theme-btn[data-theme="sky"] {
    background: linear-gradient(135deg, #bae6fd 50%, #0ea5e9 50%);
}

.theme-btn[data-theme="noir"] {
    background: #000000;
    box-shadow: inset 0 0 0 1px #333;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER - Two-Level Structure
   ═══════════════════════════════════════════════════════════════ */

.header {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding: var(--space-6) 0;
    margin-bottom: var(--space-6);
    border-bottom: 1px solid var(--border);
}

/* Primary Header: Title + Search + Main Action */
.header-primary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-primary-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
}

.header-primary-left > div {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.header-primary-left h1 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.025em;
    margin: 0;
}

.header-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
}

.header-primary-right {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
}

 .user-menu-trigger .user-name {
     font-size: 14px;
 }

.user-menu-trigger:hover {
    background: var(--bg-elevated);
    border-color: var(--accent);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-icon {
    transition: transform 0.2s ease;
}

.user-menu-trigger:hover .user-menu-icon {
    transform: translateY(2px);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
}

.user-menu-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    flex-shrink: 0;
}

.user-menu-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.user-menu-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-role {
    font-size: 13px;
    color: var(--text-muted);
}

.user-menu-id {
    font-size: 14px; /* Değer için biraz daha büyük ve belirgin bir boyut */
    color: #333; /* Değeri daha koyu yaparak odaklanmasını sağlıyoruz */
    font-family: monospace;
    font-weight: 600; /* Kalınlık ayarı */
}

.user-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0 var(--space-2);
}

.user-menu-items {
    padding: var(--space-2);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-3) var(--space-3);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.user-menu-item:hover {
    background: var(--bg);
}

.user-menu-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.user-menu-item-danger {
    color: var(--danger);
}

.user-menu-item-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}


/* Secondary Header: Navigation + Utility Actions */
.header-secondary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.header-nav {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.header-actions-secondary {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* Legacy support for old header structure */
.header-content h1 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.025em;
}

.header-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: var(--text-base);
}

.btn-icon:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: var(--text-muted);
}

.btn-icon.btn-danger:hover {
    background: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger);
}

/* ═══════════════════════════════════════════════════════════════
   STATS CARDS
   ═══════════════════════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.stat-card:hover {
    border-color: var(--text-muted);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
/* Ikonlar CSS content ile - encoding sorunu olmaz */
.stat-icon.total::before { content: "\1F4CA"; }
.stat-icon.completed::before { content: "\2705"; }
.stat-icon.pending::before { content: "\23F3"; }
.stat-icon.today::before { content: "\1F4C5"; }
.stat-icon.total > *, .stat-icon.completed > *, .stat-icon.pending > *, .stat-icon.today > * { display: none; }

.stat-icon.total { background: var(--accent-light); }
.stat-icon.completed { background: var(--success-light); }
.stat-icon.pending { background: var(--warning-light); }
.stat-icon.today { background: var(--accent-light); }

.stat-content h3 {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}

.stat-content p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* ═══════════════════════════════════════════════════════════════
   FILTERS
   ═══════════════════════════════════════════════════════════════ */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: end;
    padding: var(--space-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow);
}

.filters-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-2);
}

.filters-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quick-filters {
    display: flex;
    gap: var(--space-2);
}

.quick-filter {
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.quick-filter:hover {
    border-color: var(--text-muted);
}

.quick-filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 160px;
}

.filter-group label {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group input,
.filter-group select {
    width: 100%;
    min-width: 200px;
    padding: var(--space-3);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: var(--text-sm);
    transition: border-color 0.15s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   ACTIVITIES SECTION & CARDS
   ═══════════════════════════════════════════════════════════════ */

.activities-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ═══════════════════════════════════════════════════════════════
   ACTIVITIES LAYOUT - Grid Layout (Sol: Liste, Sağ: Kontrol Paneli)
   ═══════════════════════════════════════════════════════════════ */

.activities-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-5);
}

/* Tablo görünümünde layout'ı koru - control panel sağda kalsın */
.activities-layout.table-view-mode {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-5);
}

/* Responsive */
@media (max-width: 1024px) {
    .activities-layout {
        grid-template-columns: 1fr;
    }
    
    .activities-control-panel {
        position: static;
    }
}

/* Sol Panel - Aktiviteler Listesi */
.activities-main-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* Sağ Panel - Kontrol Paneli */
.activities-control-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: var(--space-5);
}

.activities-control-panel .panel-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.activities-control-panel .filter-section {
    margin-bottom: var(--space-5);
}

.activities-control-panel .filter-section label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.activities-control-panel .filter-section select {
    width: 100%;
    padding: var(--space-3);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: var(--text-sm);
    transition: border-color 0.15s ease;
}

.activities-control-panel .filter-section select:focus {
    outline: none;
    border-color: var(--accent);
}

.activities-control-panel .filter-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.activities-control-panel .filter-btn {
    padding: var(--space-3);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.activities-control-panel .filter-btn:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
}
.activities-control-panel .filter-icon-today::before { content: "\1F4C5 "; }
.activities-control-panel .filter-icon-week::before { content: "\1F4C5 "; }
.activities-control-panel .filter-icon-pending::before { content: "\23F3 "; }
.activities-control-panel .filter-icon-completed::before { content: "\2705 "; }

.activities-control-panel .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* İstatistikler */
.activities-stats {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
}

.activities-stats h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.activities-stats .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.activities-stats .stat-row strong {
    font-weight: 600;
    color: var(--accent);
    font-size: var(--text-base);
}

/* Responsive */
@media (max-width: 1024px) {
    .activities-layout {
        grid-template-columns: 1fr;
    }
    
    .activities-control-panel {
        position: static;
    }
}


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text);
}

.view-toggle {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.view-btn {
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--text-sm);
    transition: all 0.15s ease;
}

.view-btn:hover { color: var(--text-secondary); }
.view-btn.active { background: var(--accent); color: white; }

/* View Info - Admin tarafından belirlenen görünüm modu göstergesi */
.view-info {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

#viewModeIndicator {
    font-weight: 500;
}

/* Şifre Güç Göstergesi ve Önerileri */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.password-toggle-btn:hover {
    background: var(--surface-hover);
}

.toggle-icon {
    font-size: 16px;
    user-select: none;
}

.password-strength-container {
    margin-top: 8px;
}

.password-strength-bar {
    width: 100%;
    height: 6px;
    background: var(--surface);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 3px;
}

.password-strength-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.password-suggestions {
    margin-top: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.suggestions-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestion-item {
    font-size: 12px;
    color: #ef4444;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

.password-match-indicator {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
}

.match-icon {
    font-size: 14px;
}

/* Şifre Seçenekleri Stilleri */
.password-options-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin: var(--space-4) 0;
}

.options-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.option-group {
    margin-bottom: var(--space-3);
    padding: var(--space-3);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.option-group:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
}

.option-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.option-text {
    font-size: var(--text-sm);
}

.option-desc {
    display: block;
    margin-top: var(--space-1);
    margin-left: 34px;
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.4;
}

.custom-password-group {
    margin-top: var(--space-3);
}

.custom-password-group input {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    transition: border-color 0.2s ease;
}

.custom-password-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.password-strength-indicator {
    margin-top: var(--space-2);
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--surface);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--space-1);
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-muted);
}

.generated-password-group {
    margin-top: var(--space-3);
}

.generated-password-display {
    margin-top: var(--space-2);
}

.generated-password {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
}

.password-value {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent);
    word-break: break-all;
}

.copy-btn {
    padding: var(--space-1) var(--space-2);
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.copy-btn:hover {
    background: var(--accent-dark);
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--surface-hover);
    color: var(--text);
}
/* ── btn-outline-secondary (Bootstrap compat) ── */
.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-outline-secondary:hover {
    background: var(--surface-hover);
    color: var(--text);
    border-color: var(--text-muted);
}

/* ── btn-link (Bootstrap compat) ── */
.btn-link {
    background: transparent;
    color: var(--accent);
    border-color: transparent;
    text-decoration: none;
    padding-left: 0;
    padding-right: 0;
}
.btn-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ── btn-block ── */
.btn-block { width: 100%; justify-content: center; }

/* ── btn-escalate ── */
.btn-escalate {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid #f59e0b;
    background: #fefce8;
    color: #92400e;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-escalate:hover {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
}

/* ── btn-home (Settings header) ── */
.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}
.btn-home:hover {
    background: var(--surface-hover);
    color: var(--text);
}

/* ── btn-group ── */
.btn-group {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
/* ── Export panel butonları (sağ kontrol paneli) ── */
.export-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.export-panel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.export-panel-btn:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.export-panel-btn:active {
    transform: scale(0.97);
}
/* ── WhatsApp ayarlar butonu ── */
.modern-btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
}
.modern-btn-whatsapp:hover {
    background: #1ebc5a;
    color: #fff;
}

/* ── Settings info kutusu ── */
.modern-info-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 13px;
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 9px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── WhatsApp mesaj önizleme kutusu ── */
.wa-preview-box {
    padding: 11px 14px;
    background: #e7fce7;
    border: 1px solid rgba(37,211,102,0.35);
    border-radius: 10px;
    font-size: 13.5px;
    color: #1a5c2a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    word-break: break-word;
}



/* ═════════════════════════════════════════════════════════════
   PASSWORD RESET SETTINGS - Minimalist Tasarım
   ═════════════════════════════════════════════════════════════ */

.password-reset-settings {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-5);
    margin-top: var(--space-5);
}

.password-reset-settings h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-2);
}

.password-reset-settings p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

/* ═════════════════════════════════════════════════════════════
   ACTIVITIES LIST - Liste Görünümü (Default)
   ═════════════════════════════════════════════════════════════ */

.activities-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.activity-card {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.15s ease;
    box-shadow: var(--shadow);
}

.activity-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.activity-card.completed { opacity: 0.6; }
.activity-card.completed .activity-content h3 {
    text-decoration: line-through;
    color: var(--text-muted);
}

.activity-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 90px;
    padding: var(--space-2) var(--space-3);
    background: var(--bg);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.activity-time .time {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--accent);
}

.activity-time .date {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.activity-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.activity-content h3 {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text);
    margin-bottom: var(--space-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-height: 1.5em;
}

.activity-content p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Fallback for non-webkit browsers */
    display: block;
    max-height: 1.5em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Activity Description - HTML Content Support */
.activity-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Fallback for non-webkit browsers */
    display: block;
    max-height: 3em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-description p {
    margin: 0 0 var(--space-1) 0;
    display: inline;
}

.activity-description p:last-child {
    margin-bottom: 0;
}

.activity-description ul,
.activity-description ol {
    margin: var(--space-1) 0;
    padding-left: var(--space-4);
}

.activity-description li {
    margin-bottom: var(--space-1);
}

.activity-description strong {
    font-weight: 600;
    color: var(--text);
}

.activity-description em {
    font-style: italic;
}

.category {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--accent);
}

/* Activity Meta - Liste/Kart Görünümü Meta Bilgileri */
/* VERSION 4.0 - AVANT-GARDE DESIGN - Canlı, Dinamik, Estetik - 09.02.2026 */
.activity-meta-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* Glow efekti için pseudo-element */
.meta-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.meta-badge:hover::before {
    left: 100%;
}

/* Kategori Badge - Gradient & Glow */
.meta-badge.meta-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.meta-badge.meta-category:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

/* Öncelik Badge - Canlı Renkler & Animasyonlar */
.meta-badge.meta-priority {
    border: 2px solid;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.meta-badge.meta-priority.priority-low {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0c4a6e;
    border-color: #0ea5e9;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.meta-badge.meta-priority.priority-low:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.meta-badge.meta-priority.priority-medium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.meta-badge.meta-priority.priority-medium:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

.meta-badge.meta-priority.priority-high {
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    color: #7c2d12;
    border-color: #f97316;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
    animation: pulse-high 2s ease-in-out infinite;
}

.meta-badge.meta-priority.priority-high:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.5);
}

.meta-badge.meta-priority.priority-critical {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #7f1d1d;
    border-color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4), 0 0 20px rgba(239, 68, 68, 0.2);
    animation: pulse-critical 1.5s ease-in-out infinite;
}

.meta-badge.meta-priority.priority-critical:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.6), 0 0 30px rgba(239, 68, 68, 0.3);
}

/* Pulse Animasyonları */
@keyframes pulse-high {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
    }
    50% {
        box-shadow: 0 2px 12px rgba(249, 115, 22, 0.5);
    }
}

@keyframes pulse-critical {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4), 0 0 20px rgba(239, 68, 68, 0.2);
    }
    50% {
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.6), 0 0 30px rgba(239, 68, 68, 0.4);
    }
}

/* Durum Badge - Canlı & Dinamik */
.meta-badge.meta-status {
    border: 2px solid;
    font-weight: 800;
}

.meta-badge.meta-status.status-open {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #064e3b;
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.meta-badge.meta-status.status-open:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.5);
}

.meta-badge.meta-status.status-progress {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e3a8a;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    animation: pulse-progress 2s ease-in-out infinite;
}

.meta-badge.meta-status.status-progress:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

@keyframes pulse-progress {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 2px 12px rgba(59, 130, 246, 0.5);
    }
}

.meta-badge.meta-status.status-completed {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #1f2937;
    border-color: #9ca3af;
    box-shadow: 0 2px 8px rgba(156, 163, 175, 0.2);
    opacity: 0.85;
}

.meta-badge.meta-status.status-completed:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(156, 163, 175, 0.3);
    opacity: 1;
}

/* Kullanıcı Badge - Modern & Clean */
.meta-badge.meta-user {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    color: #111827;
    border: 2px solid #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.meta-badge.meta-user:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #9ca3af;
}

.user-avatar-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark Mode - Canlı & Kontrast */
[data-theme="dark"] .meta-badge.meta-category {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

[data-theme="dark"] .meta-badge.meta-priority.priority-low {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #bfdbfe;
    border-color: #60a5fa;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .meta-badge.meta-priority.priority-medium {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    color: #fde68a;
    border-color: #fbbf24;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .meta-badge.meta-priority.priority-high {
    background: linear-gradient(135deg, #7c2d12 0%, #9a3412 100%);
    color: #fdba74;
    border-color: #fb923c;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.4);
}

[data-theme="dark"] .meta-badge.meta-priority.priority-critical {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: #fca5a5;
    border-color: #f87171;
    box-shadow: 0 2px 8px rgba(248, 113, 113, 0.5), 0 0 20px rgba(248, 113, 113, 0.3);
}

[data-theme="dark"] .meta-badge.meta-status.status-open {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    color: #a7f3d0;
    border-color: #6ee7b7;
    box-shadow: 0 2px 8px rgba(110, 231, 183, 0.3);
}

[data-theme="dark"] .meta-badge.meta-status.status-progress {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #bfdbfe;
    border-color: #60a5fa;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .meta-badge.meta-status.status-completed {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: #d1d5db;
    border-color: #6b7280;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}

[data-theme="dark"] .meta-badge.meta-user {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: #f9fafb;
    border-color: #4b5563;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Eski Meta Stiller - Geriye Dönük Uyumluluk */
.activity-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: var(--space-1) var(--space-3);
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--accent);
    line-height: 1.5;
}

.meta-separator {
    color: var(--text-tertiary);
    font-weight: 400;
    margin: 0 4px;
}

/* Activity Footer - Meta + Actions */
.activity-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.activity-footer-meta {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.activity-footer-actions {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex-shrink: 0;
}

/* Settings Save Bar - Fixed Position */
.settings-save-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.settings-save-bar .btn-lg {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
}

.activity-actions {
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   ACTIVITIES LIST - Liste Görünümü (Geliştirilmiş)
   ═══════════════════════════════════════════════════════════════ */

.activities-list.list-view {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.activities-list.list-view .activity-card {
    display: grid;
    grid-template-columns: 100px 130px 1fr 140px;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    min-height: 80px;
    align-items: center;
}

.activities-list.list-view .activity-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: var(--accent);
}

/* Ticket ID Kolonu */
.activities-list.list-view .activity-ticket {
    font-family: 'Courier New', Courier, monospace;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent);
    text-align: center;
    padding: var(--space-2);
    background: var(--accent-light);
    border-radius: var(--radius);
    letter-spacing: 0.5px;
}

/* Tarih Kolonu */
.activities-list.list-view .activity-date-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.activities-list.list-view .activity-date {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    background: var(--bg-elevated);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
}

.activities-list.list-view .activity-clock {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
}

/* İçerik Kolonu */
.activities-list.list-view .activity-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
}

.activities-list.list-view .activity-content h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Fallback for non-webkit browsers */
    display: block;
    max-height: 2.8em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activities-list.list-view .activity-content p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Fallback for non-webkit browsers */
    display: block;
    max-height: 2.8em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Meta Bilgiler */
.activities-list.list-view .activity-meta {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    align-items: center;
}

.activities-list.list-view .activity-meta .category-badge,
.activities-list.list-view .activity-meta .status-badge,
.activities-list.list-view .activity-meta .priority-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.activities-list.list-view .activity-meta .category-badge {
    background: var(--accent-light);
    color: var(--accent);
}

.activities-list.list-view .activity-meta .status-badge {
    background: var(--success-light);
    color: var(--success);
}

.activities-list.list-view .activity-meta .priority-badge {
    background: var(--warning-light);
    color: var(--warning);
}

/* İşlemler Kolonu */
.activities-list.list-view .activity-actions {
    display: flex;
    gap: var(--space-2);
    justify-content: flex-end;
}

.activities-list.list-view .activity-actions .btn {
    padding: var(--space-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.activities-list.list-view .activity-actions .btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-1px);
}

.activities-list.list-view .activity-actions .btn.btn-complete:hover {
    background: var(--success);
    border-color: var(--success);
}

.activities-list.list-view .activity-actions .btn.btn-delete:hover {
    background: var(--danger);
    border-color: var(--danger);
}

/* Responsive Liste Görünümü */
@media (max-width: 1024px) {
    .activities-list.list-view .activity-card {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto auto;
        gap: var(--space-3);
    }
    
    .activities-list.list-view .activity-ticket {
        grid-column: 1;
        grid-row: 1;
    }
    
    .activities-list.list-view .activity-date-time {
        grid-column: 2;
        grid-row: 1;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
    
    .activities-list.list-view .activity-content {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    
    .activities-list.list-view .activity-actions {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .activities-list.list-view .activity-card {
        padding: var(--space-3);
        gap: var(--space-2);
    }
    
    .activities-list.list-view .activity-ticket {
        font-size: var(--text-xs);
        padding: var(--space-1);
    }
    
    .activities-list.list-view .activity-content h3 {
        font-size: var(--text-sm);
    }
    
    .activities-list.list-view .activity-content p {
        font-size: var(--text-xs);
    }
}

/* ═══════════════════════════════════════════════════════════════
   ACTIVITIES GRID - Kart Görünümü (Geliştirilmiş)
   ═══════════════════════════════════════════════════════════════ */

.activities-list.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-5);
}

.activities-list.grid-view .activity-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    height: 100%;
    min-height: 160px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activities-list.grid-view .activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--success));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activities-list.grid-view .activity-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    border-color: var(--accent);
}

.activities-list.grid-view .activity-card:hover::before {
    opacity: 1;
}

/* Kart Header - Ticket ve Tarih */
.activities-list.grid-view .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-2);
}

.activities-list.grid-view .activity-ticket {
    font-family: 'Courier New', Courier, monospace;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--accent);
    padding: var(--space-2) var(--space-3);
    background: var(--accent-light);
    border-radius: var(--radius);
    letter-spacing: 0.5px;
}

.activities-list.grid-view .activity-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-1);
}

.activities-list.grid-view .activity-date {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    background: var(--bg-elevated);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius);
}

.activities-list.grid-view .activity-clock {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
}

/* Kart İçeriği */
.activities-list.grid-view .activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.activities-list.grid-view .activity-content h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Fallback for non-webkit browsers */
    display: block;
    max-height: 2.6em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activities-list.grid-view .activity-content p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Fallback for non-webkit browsers */
    display: block;
    max-height: 6em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Meta Bilgiler */
.activities-list.grid-view .activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    align-items: center;
    padding: var(--space-2);
    background: var(--bg-elevated);
    border-radius: var(--radius);
}

.activities-list.grid-view .activity-meta .category-badge,
.activities-list.grid-view .activity-meta .status-badge,
.activities-list.grid-view .activity-meta .priority-badge,
.activities-list.grid-view .activity-meta .assigned-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.activities-list.grid-view .activity-meta .category-badge {
    background: var(--accent-light);
    color: var(--accent);
}

.activities-list.grid-view .activity-meta .status-badge {
    background: var(--success-light);
    color: var(--success);
}

.activities-list.grid-view .activity-meta .priority-badge {
    background: var(--warning-light);
    color: var(--warning);
}

.activities-list.grid-view .activity-meta .assigned-badge {
    background: var(--info-light);
    color: var(--info);
}

.activities-list.grid-view .activity-meta .assigned-badge::before {
    content: "👤";
    font-size: 10px;
}

/* Kart Footer - İşlemler */
.activities-list.grid-view .activity-actions {
    display: flex;
    gap: var(--space-1);
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-2);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.activities-list.grid-view .activity-actions .action-group {
    display: flex;
    gap: var(--space-1);
}

.activities-list.grid-view .activity-actions .btn {
    padding: var(--space-1) var(--space-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 500;
    min-height: 32px;
}

.activities-list.grid-view .activity-actions .btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.activities-list.grid-view .activity-actions .btn.btn-complete:hover {
    background: var(--success);
    border-color: var(--success);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.activities-list.grid-view .activity-actions .btn.btn-delete:hover {
    background: var(--danger);
    border-color: var(--danger);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Responsive Kart Görünümü */
@media (max-width: 1200px) {
    .activities-list.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: var(--space-4);
    }
}

@media (max-width: 768px) {
    .activities-list.grid-view {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .activities-list.grid-view .activity-card {
        padding: var(--space-4);
        min-height: 240px;
    }
    
    .activities-list.grid-view .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }
    
    .activities-list.grid-view .activity-time {
        align-items: flex-start;
    }
    
    .activities-list.grid-view .activity-content h3 {
        font-size: var(--text-base);
    }
    
    .activities-list.grid-view .activity-actions {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .activities-list.grid-view .activity-actions .action-group {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ACTIVITIES TABLE - Tablo Görünümü
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   ACTIVITIES LAYOUT - AYRIK TEST (AKTEPESÖZÜ)
   ═══════════════════════════════════════════════════════════════ */

.activities-layout-test {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-5);
    width: 100%;
}

.activities-main-panel-test {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.activities-control-panel-test {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: var(--space-5);
}

/* Responsive - küçük ekranlarda tek sütun */
@media (max-width: 1024px) {
    .activities-layout-test {
        grid-template-columns: 1fr;
    }
    
    .activities-control-panel-test {
        position: static;
    }
}

/* Tablo görünümünde layout'ı koru - control panel sağda kalsın */
.activities-layout:has(.activities-list.table-view) {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-5);
}

/* Fallback for browsers that don't support :has() */
@media (min-width: 1025px) {
    .activities-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: var(--space-5);
    }
}

.activities-list.table-view {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

.activities-list.table-view .activity-card {
    display: none; /* Kart yapısını gizle */
}

.activities-list.table-view .ticket-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    table-layout: auto; /* Auto layout - content-based sizing */
    border-spacing: 0;
}

.activities-list.table-view .ticket-table thead {
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.activities-list.table-view .ticket-table th {
    padding: var(--space-2) var(--space-3);
    text-align: left;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}


.activities-list.table-view .ticket-table td {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Optimized column widths - 7 Kolon (Atanan kaldırıldı) */
.activities-list.table-view .ticket-table th:nth-child(1), /* Ticket ID */
.activities-list.table-view .ticket-table td:nth-child(1) {
    width: 100px;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.activities-list.table-view .ticket-table th:nth-child(2), /* Date */
.activities-list.table-view .ticket-table td:nth-child(2) {
    width: 120px;
    text-align: center;
}

.activities-list.table-view .ticket-table th:nth-child(3), /* Title - Main content */
.activities-list.table-view .ticket-table td:nth-child(3) {
    width: auto;
    min-width: 350px;
    max-width: 450px;
}

/* Title kolonu için özel stil */
.activities-list.table-view .ticket-table td:nth-child(3) {
    white-space: normal; /* Title'da text wrap'e izin ver */
    overflow: visible;
    text-overflow: clip;
}

.activities-list.table-view .ticket-table th:nth-child(4), /* Category */
.activities-list.table-view .ticket-table td:nth-child(4) {
    width: 110px;
    text-align: center;
}

.activities-list.table-view .ticket-table th:nth-child(5), /* Priority */
.activities-list.table-view .ticket-table td:nth-child(5) {
    width: 90px;
    text-align: center;
}

.activities-list.table-view .ticket-table th:nth-child(6), /* Status */
.activities-list.table-view .ticket-table td:nth-child(6) {
    width: 100px;
    text-align: center;
}

.activities-list.table-view .ticket-table th:nth-child(7), /* Actions */
.activities-list.table-view .ticket-table td:nth-child(7) {
    width: 140px;
    text-align: center;
}

/* İşlem Butonları - Flex Container */
.activities-list.table-view .action-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Tüm satırların minimum yüksekliğini sabitle */
.activities-list.table-view .ticket-table tbody tr {
    height: 56px;
}

.activities-list.table-view .ticket-table tbody tr:last-child td {
    border-bottom: none;
}

.activities-list.table-view .ticket-table tbody tr:hover {
    background: var(--surface-hover);
}

.activities-list.table-view .ticket-row {
    transition: background 0.15s ease;
}

/* Başlık Kolonu - Normal TD (Flex Wrapper İçinde) */
.activities-list.table-view .ticket-table td:nth-child(3) {
    padding: var(--space-2) var(--space-3);
}

.activities-list.table-view .ticket-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.activities-list.table-view .ticket-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: auto;
    max-width: 100%;
    line-height: 1.4;
}

/* Meta Bilgiler Satırı (Kategori / Öncelik / Atanan) */
.activities-list.table-view .ticket-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.activities-list.table-view .meta-divider {
    color: var(--text-muted);
    font-weight: 300;
}

.activities-list.table-view .assigned-user {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.activities-list.table-view .assigned-user::before {
    content: "👤";
    font-size: 12px;
}

.activities-list.table-view .category-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--accent);
}

.activities-list.table-view .status-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.activities-list.table-view .status-badge.status-open {
    background: var(--warning-light);
    color: var(--warning);
}

.activities-list.table-view .status-badge.status-resolved {
    background: var(--success-light);
    color: var(--success);
}

.btn-icon-small {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-icon-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ── btn-view / btn-edit temel stilleri ── */
.btn-view {
    color: var(--text-secondary);
    border-color: var(--border);
}
.btn-view:hover {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}
.btn-edit {
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-icon-small.btn-complete:hover {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.btn-icon-small.btn-edit:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    color: #1d4ed8;
}

.btn-icon-small.btn-delete {
    color: #dc2626;
    border-color: #dc2626;
    font-size: 16px;
}

.btn-icon-small.btn-delete:hover {
    background: #fee2e2;
    border-color: #dc2626;
    color: #b91c1c;
}

/* Yatay Sıralı Action Butonları */
.action-buttons-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Responsive adjustments for table view */
@media (max-width: 1200px) {
    .activities-list.table-view .ticket-table th:nth-child(1),
    .activities-list.table-view .ticket-table td:nth-child(1) {
        width: 90px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(3),
    .activities-list.table-view .ticket-table td:nth-child(3) {
        min-width: 280px;
        max-width: 360px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(4),
    .activities-list.table-view .ticket-table td:nth-child(4) {
        width: 100px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(7),
    .activities-list.table-view .ticket-table td:nth-child(7) {
        width: 120px;
    }
}

@media (max-width: 1024px) {
    .activities-list.table-view .ticket-table {
        min-width: 800px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(1),
    .activities-list.table-view .ticket-table td:nth-child(1) {
        width: 80px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(3),
    .activities-list.table-view .ticket-table td:nth-child(3) {
        min-width: 250px;
        max-width: 320px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(4),
    .activities-list.table-view .ticket-table td:nth-child(4) {
        width: 90px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(5),
    .activities-list.table-view .ticket-table td:nth-child(5) {
        width: 80px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(6),
    .activities-list.table-view .ticket-table td:nth-child(6) {
        width: 85px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(7),
    .activities-list.table-view .ticket-table td:nth-child(7) {
        width: 110px;
    }
}

@media (max-width: 768px) {
    .activities-list.table-view .ticket-table {
        min-width: 700px;
    }
    
    .activities-list.table-view .ticket-table th,
    .activities-list.table-view .ticket-table td {
        padding: var(--space-1) var(--space-2);
        font-size: var(--text-xs);
    }
    
    .activities-list.table-view .ticket-table th:nth-child(1),
    .activities-list.table-view .ticket-table td:nth-child(1) {
        width: 70px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(2),
    .activities-list.table-view .ticket-table td:nth-child(2) {
        width: 80px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(3),
    .activities-list.table-view .ticket-table td:nth-child(3) {
        min-width: 130px;
        max-width: 170px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(4),
    .activities-list.table-view .ticket-table td:nth-child(4) {
        width: 70px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(5),
    .activities-list.table-view .ticket-table td:nth-child(5) {
        width: 65px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(6),
    .activities-list.table-view .ticket-table td:nth-child(6) {
        width: 60px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(7),
    .activities-list.table-view .ticket-table td:nth-child(7) {
        width: 80px;
    }
    
    .activities-list.table-view .ticket-table th:nth-child(8),
    .activities-list.table-view .ticket-table td:nth-child(8) {
        width: 85px;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    padding: var(--space-5) 0;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.15s ease;
}

.page-btn:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.page-info {
    margin: 0 var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.loading, .empty, .error {
    text-align: center;
    padding: var(--space-8);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.error { color: var(--danger); }

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(16px);
    transition: transform 0.2s ease;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5);
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.15s ease;
}

.modal-close:hover {
    background: var(--surface-hover);
    color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════ */

#activityForm { padding: var(--space-5); }

.form-group { margin-bottom: var(--space-4); }

.form-group label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-3);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: var(--text-sm);
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    background: var(--bg);
}

.form-fieldset legend {
    padding: 0 var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-fieldset .form-row { 
    margin-bottom: 0;
    gap: var(--space-4);
}

.form-fieldset .form-group { 
    margin-bottom: 0; 
}

/* ═══════════════════════════════════════════════════════════════
   COLLAPSIBLE FIELDSET (ACCORDION)
   ═══════════════════════════════════════════════════════════════ */

.form-fieldset-collapsible {
    overflow: hidden;
}

.fieldset-legend-collapsible {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: color 0.2s ease;
}

.fieldset-legend-collapsible:hover {
    color: var(--primary);
}

.fieldset-icon {
    display: inline-block;
    font-size: 12px;
    transition: transform 0.3s ease;
    width: 16px;
    text-align: center;
}

.fieldset-content {
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}

.fieldset-content-collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Time Sections - Planlanan & Görev Zamanı */
.time-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.time-section {
    position: relative;
}

.time-section-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 var(--space-3) 0;
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border);
}

.category-input { max-width: 200px; }

/* ═══════════════════════════════════════════════════════════════
   TOGGLE SWITCH
   ═══════════════════════════════════════════════════════════════ */

.toggle-group {
    display: flex;
    align-items: center;
    padding-top: var(--space-5);
}

/* Modern Checkbox Badge System */
.checkbox-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.checkbox-badge-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--success);
    flex-shrink: 0;
}

.checkbox-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
}

.checkbox-badge.active {
    background: var(--success-bg, #d1fae5);
    color: var(--success, #10b981);
    border: 1px solid var(--success, #10b981);
}

.checkbox-badge.inactive {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.checkbox-badge-icon {
    font-size: 1rem;
    line-height: 1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding-top: var(--space-4);
    margin-top: var(--space-4);
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   TOAST & CONFIRM
   ═══════════════════════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    top: var(--space-5);
    right: var(--space-5);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    min-width: 280px;
    max-width: 400px;
}

.toast.show { transform: translateX(0); }

.toast-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: var(--text-xs);
    font-weight: 600;
    flex-shrink: 0;
}

.toast-success .toast-icon { background: var(--success-light); color: var(--success); }
.toast-error .toast-icon { background: var(--danger-light); color: var(--danger); }
.toast-warning .toast-icon { background: var(--warning-light); color: var(--warning); }
.toast-info .toast-icon { background: var(--accent-light); color: var(--accent); }

.toast-message { flex: 1; font-size: var(--text-sm); color: var(--text); }

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

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

/* Toast Confirm Styles */
.toast-confirm {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    min-width: 320px;
}

.toast-confirm .toast-message {
    text-align: center;
    margin-bottom: var(--space-2);
}

.toast-actions {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    margin-top: var(--space-2);
}

.toast-btn {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    min-width: 80px;
}

.toast-btn-confirm {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.toast-btn-confirm:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.toast-btn-cancel {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.toast-btn-cancel:hover {
    background: var(--surface-hover);
}

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.confirm-overlay.active { opacity: 1; visibility: visible; }

.confirm-dialog {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    max-width: 360px;
    width: 90%;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.confirm-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-4);
    background: var(--warning-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--warning);
}

.confirm-message {
    color: var(--text);
    margin-bottom: var(--space-5);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
}

.confirm-actions .btn { min-width: 80px; }

/* ═══════════════════════════════════════════════════════════════
   REPORTS PAGE
   ═══════════════════════════════════════════════════════════════ */

.report-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.chart-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow);
}

.chart-card.full-width { grid-column: 1 / -1; }

.chart-header {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.chart-header h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-1);
}

.chart-header p {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.chart-container { position: relative; height: 240px; }

.report-table-section { margin-top: var(--space-6); }

.table-container {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.report-table { width: 100%; border-collapse: collapse; }

.report-table th {
    background: var(--bg);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.report-table td {
    padding: var(--space-4);
    color: var(--text);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--border);
}

.report-table tr:last-child td { border-bottom: none; }
.report-table tr.completed { opacity: 0.6; }
.report-table tr:hover { background: var(--bg); }

.status {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
}

.status.completed { background: var(--success-light); color: var(--success); }
.status.pending { background: var(--warning-light); color: var(--warning); }

.efficiency { font-weight: 600; }
.efficiency.success { color: var(--success); }
.efficiency.warning { color: var(--warning); }
.efficiency.danger { color: var(--danger); }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT CONTAINERS
   ═══════════════════════════════════════════════════════════════ */

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-6);
    background: var(--bg);
    min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════════════
   LAYOUT STRUCTURES
   ═══════════════════════════════════════════════════════════════ */

/* Filters and Actions Layout */
.filters-actions-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.filters-section {
    width: 100%;
}

/* Activities Layout */
.activities-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-5);
    align-items: start;
}

.activities-main-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow);
}

/* Panel Sections */
.panel-section {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

/* Quick Filter Buttons */
.quick-filter-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .activities-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-actions-layout {
        grid-template-columns: 1fr;
    }
    
    .container-wide {
        padding: var(--space-4);
    }
}

@media (max-width: 768px) {
    .quick-filter-buttons {
        grid-template-columns: 1fr;
    }
    
    .container-wide { 
        padding: var(--space-3); 
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .stats-grid, .report-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: var(--space-4); }

    .header {
        flex-direction: column;
        gap: var(--space-4);
        align-items: stretch;
        text-align: center;
    }

    .header-actions { justify-content: center; flex-wrap: wrap; }

    .stats-grid, .report-stats { grid-template-columns: 1fr 1fr; }

    .filters { flex-direction: column; }
    .filter-group { width: 100%; }
    .filter-group input, .filter-group select { width: 100%; }

    .charts-grid { grid-template-columns: 1fr; }

    /* Liste görünümü mobilde dikey */
    .activities-list:not(.grid-view) .activity-card {
        flex-direction: column;
        gap: var(--space-4);
    }

    .activities-list:not(.grid-view) .activity-time {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: auto;
        width: 100%;
    }

    /* Grid görünümü mobilde tek kolon */
    .activities-list.grid-view {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: var(--space-4);
    }

    .form-row .form-group { margin-bottom: 0; }
    .category-input { max-width: none; }
    
    /* Categories & Departments grid responsive */
    .categories-grid-modern {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid, .report-stats { grid-template-columns: 1fr; }
    .quick-filters { flex-wrap: wrap; }
    .pagination { flex-wrap: wrap; }
    
    /* Category card mobile adjustments */
    .category-name {
        font-size: 1rem;
    }
    
    /* Category stats mobile - 2 columns */
    .category-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .stat-item:last-child {
        grid-column: 1 / -1;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SUMMERNOTE EDITOR CUSTOMIZATION
   ═══════════════════════════════════════════════════════════════ */

.note-editor.note-frame {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
}

.note-toolbar {
    background: var(--bg) !important;
    border-bottom: 1px solid var(--border) !important;
}

.note-editable {
    background: var(--bg) !important;
    color: var(--text) !important;
    font-family: inherit !important;
}

/* SummerNote Checkbox Alignment Fix */
.note-editable input[type="checkbox"],
.note-editor input[type="checkbox"] {
    vertical-align: middle;
    margin: 0 6px 0 0;
    position: relative;
    top: -1px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.note-btn {
    background: transparent !important;
    border: none !important;
    color: var(--text-secondary) !important;
}

.note-btn:hover {
    background: var(--surface-hover) !important;
    color: var(--accent) !important;
}

.note-btn.active {
    background: var(--accent-light) !important;
    color: var(--accent) !important;
}

.note-dropdown-menu {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border) !important;
}

.note-dropdown-item {
    color: var(--text) !important;
}

.note-dropdown-item:hover {
    background: var(--surface-hover) !important;
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORIES PAGE
   ═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   CATEGORIES PAGE - PROFESSIONAL REDESIGN
   ═══════════════════════════════════════════════════════════════ */

.categories-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: var(--space-5);
}

/* Enhanced Category Card - Modern & Informative */
.category-card-enhanced {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.category-card-enhanced:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--text-muted);
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.category-color-indicator {
    width: 6px;
    height: 48px;
    border-radius: 3px;
    flex-shrink: 0;
}

.category-title-section {
    flex: 1;
    min-width: 0;
}

.category-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 var(--space-1) 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-color-code {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-actions {
    display: flex;
    gap: var(--space-2);
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.category-card-enhanced:hover .category-actions {
    opacity: 1;
}

/* Category Stats */
.category-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.stat-value.success {
    color: var(--success);
}

.stat-value.warning {
    color: var(--warning);
}

/* Category Progress */
.category-progress {
    padding: var(--space-4) var(--space-5);
    background: var(--bg-elevated);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.progress-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-percentage {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Category Footer */
.category-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

.last-used {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.last-used svg {
    flex-shrink: 0;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-2);
}

.empty-state p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-5);
}

.category-card-modern {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    position: relative;
}

.category-card-modern:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.category-color-bar {
    height: 6px;
    width: 100%;
}

.category-content {
    padding: var(--space-6);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.category-details {
    flex: 1;
    min-width: 0;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 var(--space-3) 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.category-color-hex {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-1) var(--space-2);
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.category-card-modern .category-actions {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    display: flex;
    gap: var(--space-2);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.category-card-modern:hover .category-actions {
    opacity: 1;
}

.category-card-modern .btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.875rem;
}

.category-card-modern .btn-icon:hover {
    background: var(--surface-hover);
    color: var(--accent);
    transform: scale(1.1);
}

.category-card-modern .btn-icon.btn-danger:hover {
    background: var(--danger-light);
    color: var(--danger);
    border-color: var(--danger);
}

/* Legacy support - keep old classes for backward compatibility */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
}

.category-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    transition: all 0.15s ease;
    box-shadow: var(--shadow);
}

.category-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.category-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: var(--radius);
}

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

.category-info h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-2);
}

.category-color-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.category-actions {
    display: flex;
    gap: var(--space-2);
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY MINI MODAL & INLINE ADD BUTTON - PROFESSIONAL REDESIGN
   ═══════════════════════════════════════════════════════════════ */

/* Category Input Group - Dropdown + Button */
.category-input-group {
    display: flex;
    gap: var(--space-2);
    align-items: stretch;
}

.category-input-group select {
    flex: 1;
}

.btn-add-category {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: var(--shadow);
}

.btn-add-category:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-add-category:active {
    transform: scale(0.98);
}

/* Category Modal Overlay */
.category-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Category Mini Modal - Professional Design */
.category-mini-modal {
    background: var(--bg-elevated);
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.category-mini-modal .modal-header {
    padding: var(--space-6) var(--space-6) var(--space-4);
    border-bottom: 1px solid var(--border);
}

.category-mini-modal .modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.category-mini-modal form {
    padding: var(--space-6);
}

.category-mini-modal .form-group {
    margin-bottom: var(--space-5);
}

.category-mini-modal .form-group:last-of-type {
    margin-bottom: 0;
}

.category-mini-modal label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.category-mini-modal input[type="text"] {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: 1rem;
    font-weight: 400;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
}

.category-mini-modal input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.category-mini-modal input[type="text"]::placeholder {
    color: var(--text-muted);
}

/* Modern Color Picker */
.color-picker-modern {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.color-picker-modern input[type="color"] {
    width: 56px;
    height: 56px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 4px;
    background: var(--bg);
    transition: all 0.2s ease;
}

.color-picker-modern input[type="color"]:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.color-picker-modern input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-modern input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

.color-preview-box {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    flex: 1;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid var(--border);
    transition: transform 0.2s ease;
}

.color-hex {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.05em;
}

.category-mini-modal .form-actions {
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 480px) {
    .category-mini-modal {
        max-width: 95%;
        border-radius: 12px;
    }
    
    .btn-add-category {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1.1rem;
    }
    
    .color-picker-modern input[type="color"] {
        width: 48px;
        height: 48px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TICKET SYSTEM - RADIO BUTTONS & FIELDS
   ═══════════════════════════════════════════════════════════════ */

.radio-group {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-2);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
}

.radio-label:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent);
}

.radio-label input[type="radio"]:checked + span {
    color: var(--accent);
    font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--accent);
    background: var(--accent-light);
}

#ticketNumber {
    background: var(--bg);
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.05em;
}

#ticketNumber:not(:placeholder-shown) {
    color: var(--accent);
}

/* Priority & Status badges in form */
#priority option,
#status option {
    padding: var(--space-2);
}

/* Responsive */
@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .radio-label {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TICKETS PAGE - PROFESSIONAL LAYOUT
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   TICKETS PAGE HEADER
   ═══════════════════════════════════════════════════════════════ */
.tickets-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 24px 16px;
}

.tickets-page-header-left h1 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
}

.tickets-header-icon { font-size: 20px; }

.tickets-header-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.tickets-page-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Filtre paneli: export bölümü ──────────────────────────── */
.filter-export-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.filter-export-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.filter-export-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-export-btn {
    flex: 1;
    min-width: 60px;
    justify-content: center;
}

.ticket-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-5);
    margin-top: var(--space-6);
}

/* Sol Panel - Ticket Listesi */
.ticket-list-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: visible; /* overflow-x için container'da scroll olmalı */
    box-shadow: var(--shadow);
}

.ticket-table-container {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.ticket-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.ticket-table thead {
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.ticket-table th {
    padding: var(--space-4);
    text-align: left;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.ticket-table td {
    padding: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.ticket-table tbody tr:last-child td {
    border-bottom: none;
}

.ticket-table tbody tr:hover {
    background: var(--surface-hover);
}

.ticket-row {
    transition: background 0.15s ease;
}

.ticket-number {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    letter-spacing: 0.05em;
    min-width: 100px;
    text-align: center;
}

.ticket-number.ticket-sr {
    background: #dbeafe;
    color: #1e40af;
}

[data-theme="dark"] .ticket-number.ticket-sr,
[data-theme="midnight"] .ticket-number.ticket-sr,
[data-theme="noir"] .ticket-number.ticket-sr {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.ticket-number.ticket-inc {
    background: #fee2e2;
    color: #991b1b;
}

[data-theme="dark"] .ticket-number.ticket-inc,
[data-theme="midnight"] .ticket-number.ticket-inc,
[data-theme="noir"] .ticket-number.ticket-inc {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.ticket-title {
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.status-open {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.status-progress {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-resolved {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-closed {
    background: #e5e7eb;
    color: #374151;
}

/* Dark theme status badges */
[data-theme="dark"] .status-badge.status-open,
[data-theme="midnight"] .status-badge.status-open,
[data-theme="noir"] .status-badge.status-open {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

[data-theme="dark"] .status-badge.status-progress,
[data-theme="midnight"] .status-badge.status-progress,
[data-theme="noir"] .status-badge.status-progress {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

[data-theme="dark"] .status-badge.status-resolved,
[data-theme="midnight"] .status-badge.status-resolved,
[data-theme="noir"] .status-badge.status-resolved {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

[data-theme="dark"] .status-badge.status-closed,
[data-theme="midnight"] .status-badge.status-closed,
[data-theme="noir"] .status-badge.status-closed {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

/* Priority Badges */
.priority-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.priority-badge.priority-low {
    background: #d1fae5;
    color: #065f46;
}

.priority-badge.priority-medium {
    background: #fef3c7;
    color: #92400e;
}

.priority-badge.priority-high {
    background: #fed7aa;
    color: #9a3412;
}

.priority-badge.priority-critical {
    background: #fee2e2;
    color: #991b1b;
}

/* Dark theme priority badges */
[data-theme="dark"] .priority-badge.priority-low,
[data-theme="midnight"] .priority-badge.priority-low,
[data-theme="noir"] .priority-badge.priority-low {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

[data-theme="dark"] .priority-badge.priority-medium,
[data-theme="midnight"] .priority-badge.priority-medium,
[data-theme="noir"] .priority-badge.priority-medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

[data-theme="dark"] .priority-badge.priority-high,
[data-theme="midnight"] .priority-badge.priority-high,
[data-theme="noir"] .priority-badge.priority-high {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

[data-theme="dark"] .priority-badge.priority-critical,
[data-theme="midnight"] .priority-badge.priority-critical,
[data-theme="noir"] .priority-badge.priority-critical {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.category-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
}

.btn-icon-small {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: var(--text-sm);
}

.btn-icon-small:hover {
    background: var(--surface-hover);
    color: var(--accent);
    border-color: var(--accent);
}

/* Sağ Panel - Kontrol Paneli */
.ticket-control-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: var(--space-5);
}

.panel-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.filter-section {
    margin-bottom: var(--space-5);
}

.filter-section label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.filter-section select,
.filter-section input[type="date"],
.filter-section input[type="text"] {
    width: 100%;
    padding: var(--space-3);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: var(--text-sm);
    transition: border-color 0.15s ease;
}

.filter-section select:focus,
.filter-section input:focus {
    outline: none;
    border-color: var(--accent);
}

.filter-section input[type="date"] + input[type="date"] {
    margin-top: var(--space-2);
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.filter-btn {
    padding: var(--space-3);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}

.filter-btn:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* İstatistikler */
.ticket-stats {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
}

.ticket-stats h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.stat-row strong {
    font-weight: 600;
    color: var(--accent);
    font-size: var(--text-base);
}

/* Responsive */
@media (max-width: 1024px) {
    .ticket-layout {
        grid-template-columns: 1fr;
    }
    
    .ticket-control-panel {
        position: static;
    }
}

@media (max-width: 768px) {
    .ticket-table {
        font-size: var(--text-xs);
    }
    
    .ticket-table th,
    .ticket-table td {
        padding: var(--space-2);
    }
    
    .ticket-title {
        max-width: 150px;
    }
}

@media (max-width: 1024px) {
    .filters-actions-layout {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .filters-section {
        height: auto;
    }
    
    .actions-section {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
    }
    
    .filters-panel {
        height: auto;
    }
}

@media (max-width: 768px) {
    .filters-actions-layout {
        gap: var(--space-3);
    }
    
    .quick-filters {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .date-filters {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
    
    .filter-actions {
        flex-direction: column;
        gap: var(--space-2);
    }
}

/* ═══════════════════════════════════════════════════════════════
   USER AUTOCOMPLETE
   ═══════════════════════════════════════════════════════════════ */

.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: none;
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-item {
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--border);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--surface-hover);
}

.autocomplete-item.no-results {
    cursor: default;
    color: var(--text-muted);
    font-size: var(--text-sm);
    text-align: center;
}

.autocomplete-item.no-results:hover {
    background: transparent;
}

.user-name {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
}

.user-dept {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* ═══════════════════════════════════════════════════════════════
   TICKETS PAGE - WIDER LAYOUT (50% increase)
   ═══════════════════════════════════════════════════════════════ */

.ticket-layout {
    grid-template-columns: 1fr 280px; /* Daha geniş: 320px → 280px (sağ panel küçültüldü) */
    max-width: 1680px; /* Container genişliği artırıldı: 1120px → 1680px (%50 artış) */
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .ticket-layout {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CALENDAR PAGE
   ═══════════════════════════════════════════════════════════════ */

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.calendar-month-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

/* Calendar Wrapper with Floating Legend */
.calendar-wrapper {
    position: relative;
    margin-bottom: var(--space-6);
}

/* Calendar Legend - Header altında */
.calendar-legend-header {
    display: flex;
    justify-content: center;
    padding: var(--space-4) 0;
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.calendar-legend-header .legend-items-compact {
    display: flex;
    gap: var(--space-5);
    align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-5);
    box-shadow: var(--shadow);
}

/* Floating Legend - Top Right Corner Above Grid */
.calendar-legend-floating {
    position: absolute;
    top: -48px;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.calendar-legend-floating:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.legend-items-compact {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.legend-items-compact .legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.15s ease;
}

.legend-items-compact .legend-item:hover {
    color: var(--text);
}

.legend-items-compact .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.legend-items-compact .legend-item:hover .legend-dot {
    transform: scale(1.2);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.calendar-header {
    background: var(--bg);
    padding: var(--space-3);
    text-align: center;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.calendar-day {
    background: var(--bg-elevated);
    min-height: 140px;
    padding: var(--space-3);
    position: relative;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background: var(--surface-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.calendar-day.empty {
    background: var(--bg);
    opacity: 0.3;
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--accent-light) 0%, rgba(var(--accent-rgb), 0.15) 100%);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.calendar-day.weekend {
    background: rgba(var(--accent-rgb), 0.03);
}

.calendar-day.weekend.today {
    background: linear-gradient(135deg, var(--accent-light) 0%, rgba(var(--accent-rgb), 0.2) 100%);
}

.day-number {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-3);
}

.calendar-day.today .day-number {
    color: var(--accent);
    font-size: 1.125rem;
}

.calendar-day.weekend .day-number {
    color: var(--accent);
    opacity: 0.7;
}

.day-activities {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.calendar-activity {
    padding: var(--space-2);
    background: var(--bg);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.calendar-activity:hover {
    background: var(--surface-hover);
    transform: translateX(3px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.calendar-activity.ticket-sr {
    border-left-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}

.calendar-activity.ticket-inc {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.calendar-activity.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.calendar-activity.more {
    background: var(--accent-light);
    border-left-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    padding: var(--space-2);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
}

.activity-time {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-family: 'Courier New', monospace;
}

.activity-priority {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 3px;
    line-height: 1;
}

.activity-priority.priority-low {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.activity-priority.priority-medium {
    background: rgba(234, 179, 8, 0.15);
    color: #ca8a04;
}

.activity-priority.priority-high {
    background: rgba(249, 115, 22, 0.15);
    color: #ea580c;
}

.activity-priority.priority-critical {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.activity-body {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.activity-category {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-title {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    font-weight: 500;
}

.activity-ticket {
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Old legend - hidden but kept for compatibility */
.calendar-legend {
    display: none;
}

.calendar-legend h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legend-items {
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-dot.ticket-sr {
    background: #3b82f6;
}

.legend-dot.ticket-inc {
    background: #ef4444;
}

.legend-dot.activity-normal {
    background: var(--accent);
}

.legend-dot.activity-completed {
    background: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-legend-floating {
        position: static;
        margin-bottom: var(--space-4);
        width: 100%;
    }
    
    .legend-items-compact {
        flex-wrap: wrap;
        gap: var(--space-3);
        justify-content: center;
    }
    
    .calendar-grid {
        gap: 0;
    }
    
    .calendar-day {
        min-height: 100px;
        padding: var(--space-2);
    }
    
    .day-number {
        font-size: 0.875rem;
    }
    
    .calendar-activity {
        font-size: 0.65rem;
        padding: 4px 6px;
    }
    
    .activity-priority {
        font-size: 0.6rem;
        padding: 1px 3px;
    }
    
    .legend-items {
        flex-direction: column;
        gap: var(--space-2);
    }
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL SEARCH
   ═══════════════════════════════════════════════════════════════ */

.global-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 220px;
    max-width: 340px;
}

.global-search-wrap input,
.global-search-input {
    width: 100%;
    padding: 7px 36px 7px 34px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.global-search-wrap input:focus,
.global-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.global-search-wrap input::placeholder,
.global-search-input::placeholder {
    color: var(--text-muted);
}

/* Arama ikonu (sol) */
/* Arama ikonu: ::before kaldırıldı — Tabler ti-search kullanılıyor */
.global-search-icon {
    position: absolute;
    left: 10px;
    font-size: 14px; 
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
    line-height: 1;
}

/* Dropdown sonuçlar */
.global-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 500;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

.global-search-results.active {
    display: block;
}

.global-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.global-search-wrapper input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    padding-right: 40px; /* Temizle butonu için alan */
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: var(--text-sm);
    transition: all 0.15s ease;
}

.global-search-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.global-search-wrapper input::placeholder {
    color: var(--text-muted);
}

.global-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--text-muted);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.15s ease;
    opacity: 0.6;
}

.global-search-clear:hover {
    opacity: 1;
    background: var(--danger);
    transform: translateY(-50%) scale(1.1);
}

.global-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 400px;
    overflow-y: auto;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    display: none;
}

.global-search-results.active {
    display: block;
}

.search-result-item {
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--surface-hover);
}

.search-result-item.no-results {
    cursor: default;
    color: var(--text-muted);
    text-align: center;
}

.search-result-item.no-results:hover {
    background: transparent;
}

.search-result-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.search-ticket-badge {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.search-ticket-badge.ticket-sr {
    background: #dbeafe;
    color: #1e40af;
}

.search-ticket-badge.ticket-inc {
    background: #fee2e2;
    color: #991b1b;
}

[data-theme="dark"] .search-ticket-badge.ticket-sr,
[data-theme="midnight"] .search-ticket-badge.ticket-sr,
[data-theme="noir"] .search-ticket-badge.ticket-sr {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

[data-theme="dark"] .search-ticket-badge.ticket-inc,
[data-theme="midnight"] .search-ticket-badge.ticket-inc,
[data-theme="noir"] .search-ticket-badge.ticket-inc {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.search-result-title {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.search-category {
    padding: 2px 6px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .global-search-wrapper {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .global-search-wrapper {
        width: 100%;
        order: -1;
        margin-bottom: var(--space-3);
    }
}


/* ═══════════════════════════════════════════════════════════════
   SETTINGS PAGE
   ═══════════════════════════════════════════════════════════════ */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: hidden;
}

.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border);
}

.settings-tab {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.settings-tab:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.settings-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.settings-tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.settings-tab-content.active {
    display: block;
}

.settings-tab-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.settings-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.settings-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.settings-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.settings-toggle input[type="checkbox"] {
    width: 48px;
    height: 24px;
    appearance: none;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.settings-toggle input[type="checkbox"]:checked {
    background: var(--accent);
}

.settings-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
}

.settings-toggle input[type="checkbox"]:checked::before {
    left: 26px;
}

.settings-toggle span {
    font-size: 15px;
    color: var(--text);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-info p {
    font-size: 15px;
    color: var(--text);
}

.user-info strong {
    color: var(--text-secondary);
    font-weight: 600;
    margin-right: 8px;
}

/* Settings Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.settings-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.settings-form .form-group {
    margin-bottom: 16px;
}

.settings-form .form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
}

.settings-form .form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.settings-form select.form-control {
    cursor: pointer;
}

/* Theme Grid */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.theme-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.theme-card.selected {
    border-color: var(--accent);
    background: var(--accent-light);
}

.theme-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.light-preview { background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%); }
.dark-preview { background: linear-gradient(135deg, #0a0a0a 0%, #171717 100%); }
.warm-preview { background: linear-gradient(135deg, #faf8f5 0%, #f5f0e8 100%); }
.ocean-preview { background: linear-gradient(135deg, #0c4a6e 0%, #075985 100%); }
.sunset-preview { background: linear-gradient(135deg, #f97316 0%, #ec4899 100%); }
.forest-preview { background: linear-gradient(135deg, #14532d 0%, #166534 100%); }
.purple-preview { background: linear-gradient(135deg, #581c87 0%, #7c3aed 100%); }
.rose-preview { background: linear-gradient(135deg, #9f1239 0%, #e11d48 100%); }
.midnight-preview { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); }
.mint-preview { background: linear-gradient(135deg, #134e4a 0%, #0f766e 100%); }
.cherry-preview { background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%); }
.gold-preview { background: linear-gradient(135deg, #713f12 0%, #a16207 100%); }
.lavender-preview { background: linear-gradient(135deg, #7e22ce 0%, #a855f7 100%); }
.coral-preview { background: linear-gradient(135deg, #be123c 0%, #fb7185 100%); }
.slate-preview { background: linear-gradient(135deg, #334155 0%, #475569 100%); }
.emerald-preview { background: linear-gradient(135deg, #065f46 0%, #047857 100%); }
.sky-preview { background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%); }
.noir-preview { background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%); }

.theme-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.theme-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Toast for Settings */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 10000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-left: 4px solid var(--success);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ═══════════════════════════════════════════════════════════════
   MANAGEMENT LAYOUT - Categories & Departments Pages
   ═══════════════════════════════════════════════════════════════ */

.management-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-5);
    margin-top: var(--space-6);
}

/* Sol Panel - Tablo Listesi */
.management-list-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.management-table-container {
    overflow-x: auto;
}

.management-table {
    width: 100%;
    border-collapse: collapse;
}

.management-table thead {
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.management-table th {
    padding: var(--space-4);
    text-align: left;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.management-table td {
    padding: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.management-table tbody tr:last-child td {
    border-bottom: none;
}

.management-table tbody tr:hover {
    background: var(--surface-hover);
}

.management-row {
    transition: background 0.15s ease;
}

/* ID Badge */
.id-badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

/* Category Name Cell */
.category-name-cell {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.category-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.category-name-text {
    font-weight: 500;
}

.color-code {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Department Name Cell */
.department-name-cell {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.department-name-text {
    font-weight: 500;
}

.department-code {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-1) var(--space-2);
    background: var(--bg);
    border-radius: var(--radius-sm);
}

/* Inline Progress Bar */
.inline-progress {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 120px;
}

.inline-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.inline-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.inline-progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 35px;
    text-align: right;
}

/* Stat Values */
.stat-success {
    color: var(--success);
    font-weight: 600;
}

.stat-warning {
    color: var(--warning);
    font-weight: 600;
}

/* Sağ Panel - Kontrol Paneli */
.management-control-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: var(--space-5);
}

.panel-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
}

.management-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    background: var(--bg);
    border-radius: var(--radius);
    font-size: var(--text-sm);
}

.stat-row span {
    color: var(--text-secondary);
}

.stat-row strong {
    color: var(--accent);
    font-weight: 700;
    font-size: var(--text-base);
}

/* Description Preview in Table */
.description-preview {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .management-layout {
        grid-template-columns: 1fr;
    }
    
    .management-control-panel {
        position: static;
    }
}


/* ═══════════════════════════════════════════════════════════════
   COMPACT FORM STYLES - Kasıtlı Minimalizm
   ═══════════════════════════════════════════════════════════════ */

/* Compact Modal */
.modal-compact {
    max-width: 480px;
    padding: var(--space-8);
}

.modal-compact .modal-header {
    margin-bottom: var(--space-6);
}

/* Compact Form Group */
.form-group-compact {
    margin-bottom: var(--space-5);
}

.form-group-compact label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-3);
    letter-spacing: 0.01em;
}

.form-group-compact input[type="text"],
.form-group-compact input[type="email"],
.form-group-compact input[type="number"],
.form-group-compact textarea,
.form-group-compact select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s ease;
}

.form-group-compact input:focus,
.form-group-compact textarea:focus,
.form-group-compact select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-alpha);
}

/* Compact Color Picker */
.color-picker-compact {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
}

.color-picker-compact input[type="color"] {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-picker-compact input[type="color"]:hover {
    transform: scale(1.05);
}

.color-picker-compact input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-compact input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

.color-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 1;
}

.color-swatch-small {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid var(--border);
}

.color-hex-small {
    font-family: 'Courier New', Courier, monospace;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* Compact Form Actions */
.form-actions-compact {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
}

.form-actions-compact .btn {
    min-width: 100px;
    padding: var(--space-3) var(--space-5);
}


/* ═══════════════════════════════════════════════════════════════
   MODAL TAB SYSTEM - Minimalist Design
   ═══════════════════════════════════════════════════════════════ */

.modal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 var(--space-5);
    background: var(--bg);
}

.modal-tab {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    margin-bottom: -1px;
}

.modal-tab:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.modal-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
    padding: var(--space-5);
    animation: fadeInTab 0.2s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* File Upload Area */
.file-upload-area {
    margin-top: var(--space-2);
}

.btn-file-upload {
    width: 100%;
    padding: var(--space-6);
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.btn-file-upload:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

.upload-icon {
    font-size: 1.5rem;
}

.file-list {
    margin-top: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--text-sm);
}

.file-item-name {
    color: var(--text);
    font-weight: 500;
}

.file-item-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-1);
    transition: color 0.15s ease;
}

.file-item-remove:hover {
    color: var(--danger);
}

/* ═══════════════════════════════════════════════════════════════
   TASKS STYLES
   ═══════════════════════════════════════════════════════════════ */

.task-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-4);
    transition: all 0.2s ease;
}

.task-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-3);
}

.task-title-section {
    flex: 1;
}

.task-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-1);
}

.task-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: var(--text-xs);
    font-weight: 500;
}

.task-status-bekliyor {
    background: var(--warning-light);
    color: var(--warning);
}

.task-status-devam-ediyor {
    background: var(--accent-light);
    color: var(--accent);
}

.task-status-tamamlandı {
    background: var(--success-light);
    color: var(--success);
}

.task-status-iptal {
    background: var(--danger-light);
    color: var(--danger);
}

.task-actions {
    display: flex;
    gap: var(--space-1);
}

.btn-icon {
    background: none;
    border: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.btn-icon:hover {
    background: var(--surface-hover);
}

.task-description {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
    line-height: 1.5;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.task-dates {
    display: flex;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.task-progress {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.progress-bar {
    width: 80px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--success);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 30px;
}

.task-assignee {
    font-size: var(--text-xs);
    color: var(--text-muted);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border);
}

.task-form .form-row {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.task-form .form-group {
    flex: 1;
}

.task-add-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-4);
}

.tasks-list-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-4);
}
/* ═══════════════════════════════════════════════════════════════
   NOTES UI IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════ */

.notes-add-section {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface) 100%);
    border: 2px dashed var(--accent);
    border-radius: 16px;
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    transition: all 0.3s ease;
}

.notes-add-section:hover {
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.notes-add-section h4 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--accent);
}

.notes-add-section h4::before {
    content: "💬";
    font-size: 20px;
}

.note-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.note-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-light) 100%);
}

.note-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.note-card.new-note {
    border-color: var(--success);
    background: linear-gradient(135deg, var(--success-light) 0%, var(--surface) 100%);
}

.note-card.new-note::before {
    background: linear-gradient(180deg, var(--success) 0%, var(--success-light) 100%);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-3);
}

.note-author-section {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.note-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.note-author-info h5 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.note-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.note-date::before {
    content: "📅";
    font-size: 12px;
}

.note-actions {
    display: flex;
    gap: var(--space-1);
}

.note-delete-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
    font-size: 16px;
}

.note-delete-btn:hover {
    background: var(--danger-light);
    color: var(--danger);
    transform: scale(1.1);
}

.note-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--text-sm);
    padding: var(--space-3);
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.note-content:empty::before {
    content: "Not içeriği boş...";
    color: var(--text-muted);
    font-style: italic;
}

.notes-list-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--space-4);
}

.notes-list-section h4 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text);
}

.notes-list-section h4::before {
    content: "📝";
    font-size: 20px;
}

.notes-empty-state {
    text-align: center;
    padding: var(--space-6);
    color: var(--text-muted);
}

.notes-empty-state::before {
    content: "📝";
    display: block;
    font-size: 48px;
    margin-bottom: var(--space-3);
    opacity: 0.5;
}

.note-input-enhanced {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: var(--space-4);
    font-size: var(--text-sm);
    line-height: 1.6;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 100px;
}

.note-input-enhanced:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
    outline: none;
}

.note-input-enhanced::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.btn-add-note {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border: none;
    padding: var(--space-3) var(--space-5);
    border-radius: 12px;
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.btn-add-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-add-note::before {
    content: "➕";
    font-size: 14px;
}

.note-count-badge {
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: var(--text-xs);
    font-weight: 600;
    margin-left: auto;
}

/* Fade in animation for new notes */
@keyframes fadeInNote {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.note-card.fade-in {
    animation: fadeInNote 0.5s ease-out;
}
/* ═══════════════════════════════════════════════════════════════
   MODERN ACTIVITY MODAL - AVANT-GARDE DESIGN
    */

.modal-modern {
    background: var(--bg-elevated);
    border-radius: 16px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-overlay.active .modal-modern {
    transform: translateY(0) scale(1);
}

/* Modal Header */
.modal-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.modal-title-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-title-modern {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.modal-subtitle-modern {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.modal-close-modern {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close-modern:hover {
    background: var(--bg-hover);
    color: var(--text);
}

/* Modern Tabs */
.modal-tabs-modern {
    display: flex;
    gap: 8px;
    padding: 16px 32px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tab-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-modern svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tab-modern:hover {
    color: var(--text);
    background: var(--bg-hover);
    border-radius: 8px 8px 0 0;
}

.tab-modern:hover svg {
    opacity: 1;
}

.tab-modern.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-modern.active svg {
    opacity: 1;
}

/* Modal Content */
.modal-content-modern {
    flex: 1;
    overflow-y: auto;
    background: var(--bg);
}

.tab-content-modern {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content-modern.active {
    display: block;
}

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

/* Form Section */
.form-section-modern {
    padding: 32px;
}

.section-title-modern {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 16px 0;
}

.form-divider-modern {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

/* Form Groups */
.form-group-modern {
    margin-bottom: 20px;
}

.form-label-modern {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input-modern,
.form-select-modern {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input-modern:focus,
.form-select-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input-modern::placeholder {
    color: var(--text-muted);
}

/* Form Rows */
.form-row-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.form-row-modern.form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-row-modern.form-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .form-row-modern,
    .form-row-modern.form-row-3,
    .form-row-modern.form-row-4 {
        grid-template-columns: 1fr;
    }
}

/* Radio Cards */
.radio-group-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.radio-card-modern {
    position: relative;
    cursor: pointer;
}

.radio-card-modern input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    transition: all 0.2s;
}

.radio-card-modern:hover .radio-card-content {
    border-color: var(--primary);
    background: var(--bg-hover);
}

.radio-card-modern input[type="radio"]:checked + .radio-card-content {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.radio-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.radio-card-modern input[type="radio"]:checked + .radio-card-content .radio-indicator {
    border-color: var(--primary);
}

.radio-card-modern input[type="radio"]:checked + .radio-card-content .radio-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.radio-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* Checkbox Modern */
.checkbox-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-modern input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-modern:hover .checkbox-indicator {
    border-color: var(--primary);
}

.checkbox-modern input[type="checkbox"]:checked + .checkbox-indicator {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-modern input[type="checkbox"]:checked + .checkbox-indicator::after {
    content: '';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text);
}

/* Editor */
.editor-toolbar-modern {
    display: flex;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background: var(--bg-elevated);
}

.editor-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.editor-btn:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.editor-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 4px;
}

.editor-content-modern {
    min-height: 200px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    outline: none;
}

.editor-content-modern:empty::before {
    content: attr(placeholder);
    color: var(--text-muted);
}

.editor-content-modern:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Category Input Group */
.category-input-group-modern {
    display: flex;
    gap: 8px;
}

.category-input-group-modern select {
    flex: 1;
}

.btn-add-category-modern {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-category-modern:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Autocomplete */
.autocomplete-wrapper-modern {
    position: relative;
}

.autocomplete-dropdown-modern {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

.autocomplete-dropdown-modern.active {
    display: block;
}

/* Notes Section */
.add-note-section-modern {
    margin-bottom: 24px;
}

.btn-add-note-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-note-modern:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.note-form-container-modern {
    margin-top: 16px;
    padding: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.note-textarea-modern {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 12px;
}

.note-textarea-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.note-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.notes-list-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Upload Section */
.upload-section-modern {
    margin-bottom: 24px;
}

.btn-upload-modern {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-elevated);
    border: 2px dashed var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-upload-modern:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.btn-upload-modern svg {
    color: var(--primary);
    flex-shrink: 0;
}

.upload-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.upload-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.upload-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.attachments-list-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Empty State */
.empty-state-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state-modern svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-modern p {
    font-size: 14px;
    margin: 0;
}

/* Modal Footer */
.modal-footer-modern {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

/* Buttons */
.btn-primary-modern {
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary-modern {
    padding: 12px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary-modern:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

/* Category Mini Modal */
.category-mini-modal-modern {
    background: var(--bg-elevated);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Color Picker */
.color-picker-modern {
    display: flex;
    gap: 12px;
    align-items: center;
}

.color-picker-modern input[type="color"] {
    width: 60px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.color-preview-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.color-swatch-modern {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.color-hex-modern {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    font-family: 'Courier New', monospace;
}

/* ═══════════════════════════════════════════════════════════════
   LOGO STYLING - Force size override (navbar only, not login)
   ═══════════════════════════════════════════════════════════════ */
.da-topbar #appLogo,
.da-sb-logo #appLogo,
nav #appLogo {
    max-height: 32px !important;
    max-width: 120px !important;
    object-fit: contain !important;
    margin-right: 12px !important;
}

/* ═══════════════════════════════════════════════════════════════
   MODERN NAVIGATION STYLING
   ═══════════════════════════════════════════════════════════════ */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-4);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
}

.nav-logo {
    font-size: 24px;
}

.nav-title {
    color: var(--text);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-search-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.nav-search-btn:hover {
    color: var(--text);
    border-color: var(--accent);
}

.nav-demo-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-demo-btn:hover {
    background: var(--accent-hover);
}

/* ═══════════════════════════════════════════════════════════════
   EXPANDED CONTAINER WIDTH (+15% total)
   ═══════════════════════════════════════════════════════════════ */
.container-wide {
    max-width: 1680px; /* 1200px + 240px (10% each side) - daha ferah */
    margin: 0 auto;
    padding: 0 var(--space-10);
}

/* ═════════════════════════════════════════════════════════════════
   ENHANCED ACTIVITIES LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.activities-layout {
    display: grid;
    grid-template-columns: 1fr 320px; /* Sol panel geniş, sağ panel eski boyut */
    gap: var(--space-6);
    padding: var(--space-6);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.activities-main-panel {
    background: var(--surface);
    border-radius: var(--radius);
    padding: var(--space-6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Responsive - küçük ekranlarda tek sütun */
@media (max-width: 1024px) {
    .activities-layout {
        grid-template-columns: 1fr;
    }
}

.activities-list {
    min-height: 400px;
    position: relative;
}

/* Table view için daha iyi görünüm */
.activities-list.table-view .ticket-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ═══════════════════════════════════════════════════════════════
   TASK FORM STYLING
   ═══════════════════════════════════════════════════════════════ */
.task-add-form {
    margin-bottom: var(--space-4);
    padding: var(--space-3);
    background: var(--surface-hover);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.task-input-group {
    display: flex;
    gap: var(--space-2);
}

.task-input {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    background: var(--surface);
    color: var(--text);
    transition: all 0.2s ease;
}

.task-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.task-add-btn {
    padding: var(--space-2) var(--space-3);
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.task-add-btn:hover {
    background: var(--accent-hover);
}

.task-add-btn svg {
    width: 16px;
    height: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   FILTERS AND ACTIONS LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.filters-actions-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* %50 %50 bölüşüm */
    gap: var(--space-6);
    margin-bottom: var(--space-6);
    align-items: stretch; /* İki paneli aynı yükseklikte hizala */
    /* height: 600px; Kaldır - içeriğe göre boyutlansın */
}

.filters-section {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.filters-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 0;
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.filters-panel:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.actions-section {
    width: 100%; /* %50 genişlik */
    position: sticky;
    top: var(--space-4);
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .filters-actions-layout {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .actions-section {
        width: 100%;
        position: relative;
        top: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FILTERS PANEL STYLING - MODERN DESIGN (MATCHING QUICK ACTIONS)
   ═══════════════════════════════════════════════════════════════ */

.filters-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--space-4) var(--space-5);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.filters-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    font-weight: 600;
    color: white;
    margin: 0;
}

.filters-title svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

.filters-content {
    padding: var(--space-4);
    background: var(--surface);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    height: 100%;
}

/* Yatay Gruplar - Hem dikey hem yatay düzenleme */
.filter-row-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.filter-row-group:last-child {
    margin-bottom: 0;
}

/* Filter Blocks - Görseldeki gibi ayrı bloklar */
.filter-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-3);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0; /* Alt boşlukları kaldır */
}

.filter-actions-block {
    grid-column: 1 / -1; /* Tüm genişliği kapla */
}

.filter-block-header {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-block-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}

/* Hızlı Filtreler Butonları */
.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 32px;
}

.filter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Tarih Inputları */
.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.date-input-group label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
}

/* Quick Filter Buttons */
.quick-filter-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.quick-filter-buttons .action-btn {
    justify-content: flex-start;
    text-align: left;
}

.quick-filter-buttons .filter-btn {
    justify-content: flex-start;
    text-align: left;
}

.quick-filter-buttons .filter-btn svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    stroke: currentColor !important;
    fill: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.quick-filter-buttons .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Control Panel Styling - Compact Layout */
.activities-control-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    margin-bottom: var(--space-3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: 100%;
}

/* Panel Header */
.activities-control-panel .panel-header {
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border);
}

.activities-control-panel .panel-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.activities-control-panel .panel-title svg {
    width: 14px;
    height: 14px;
    stroke: var(--text);
}

/* Panel Content */
.activities-control-panel .panel-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Row Groups - Horizontal grouping */
.activities-control-panel .panel-row-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.activities-control-panel .panel-row-group:last-child {
    margin-bottom: 0;
}

/* Row - Side by side sections */
.activities-control-panel .panel-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

/* Panel Sections */
.activities-control-panel .panel-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* Section Headers */
.activities-control-panel .section-header {
    margin-bottom: var(--space-1);
}

.activities-control-panel .section-title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Controls */
.activities-control-panel .filter-select,
.activities-control-panel .filter-input {
    width: 100%;
    padding: var(--space-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: var(--text-sm);
}

/* Date Inputs */
.activities-control-panel .date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
}

.activities-control-panel .date-input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.activities-control-panel .date-input-group label {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-muted);
}

/* Page Size Controls */
.activities-control-panel .page-size-controls {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.activities-control-panel .custom-page-size-group {
    display: flex;
    align-items: center;
}

.activities-control-panel .custom-page-size-group .filter-input {
    min-width: 80px;
    height: 32px;
}

/* Filter Buttons */
.activities-control-panel .filter-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 32px;
    width: 100%;
}

.activities-control-panel .filter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activities-control-panel .primary-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
}

.activities-control-panel .primary-btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Quick Filter Buttons */
.activities-control-panel .quick-filter-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* View Mode Buttons - Modern Estetik Tasarım */
.activities-control-panel .view-mode-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Full width view mode when in main panel row */
.activities-control-panel .panel-row-group .panel-section:first-child .view-mode-container {
    width: 100%;
}

.activities-control-panel .view-mode-buttons {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-1);
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* Full width buttons when in main panel */
.activities-control-panel .panel-row-group .panel-section:first-child .view-mode-buttons {
    max-width: none;
    width: 100%;
}

.activities-control-panel .view-mode-buttons::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent) 50%, 
        transparent 100%);
    opacity: 0.3;
}

.activities-control-panel .view-mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-2);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex: 1;
    min-height: 64px;
    gap: var(--space-1);
}

.activities-control-panel .view-mode-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-light), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activities-control-panel .view-mode-btn:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

.activities-control-panel .view-mode-btn:hover::before {
    opacity: 0.5;
}

.activities-control-panel .view-mode-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.activities-control-panel .view-mode-btn.active::before {
    opacity: 0;
}

.activities-control-panel .view-mode-btn .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.activities-control-panel .view-mode-btn.active .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.activities-control-panel .view-mode-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.activities-control-panel .view-mode-btn:hover svg {
    transform: scale(1.1);
}

.activities-control-panel .view-mode-btn .btn-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.activities-control-panel .view-mode-btn.active .btn-text {
    opacity: 1;
    font-weight: 600;
}

.activities-control-panel .view-mode-btn .btn-indicator {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.activities-control-panel .view-mode-btn.active .btn-indicator {
    transform: translateX(-50%) scaleX(1);
}

/* View Mode Info */
.activities-control-panel .view-mode-info {
    text-align: center;
    padding: var(--space-2);
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.activities-control-panel .current-view-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.activities-control-panel .current-view-text strong {
    color: var(--accent);
    font-weight: 600;
}

/* View Mode Button States - Renk Temaları */
.activities-control-panel .view-mode-btn[data-mode="list"].active {
    background: linear-gradient(135deg, var(--success), #22c55e);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.activities-control-panel .view-mode-btn[data-mode="card"].active {
    background: linear-gradient(135deg, var(--accent), #3b82f6);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.activities-control-panel .view-mode-btn[data-mode="table"].active {
    background: linear-gradient(135deg, var(--warning), #eab308);
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.3);
}

/* Hover states for specific modes */
.activities-control-panel .view-mode-btn[data-mode="list"]:hover {
    background: var(--success-light);
    color: var(--success);
}

.activities-control-panel .view-mode-btn[data-mode="card"]:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.activities-control-panel .view-mode-btn[data-mode="table"]:hover {
    background: var(--warning-light);
    color: var(--warning);
}

/* Active state hover effects */
.activities-control-panel .view-mode-btn[data-mode="list"].active:hover,
.activities-control-panel .view-mode-btn[data-mode="card"].active:hover,
.activities-control-panel .view-mode-btn[data-mode="table"].active:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* Stats Section */
.activities-control-panel .panel-stats-section {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.activities-control-panel .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.activities-control-panel .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2);
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.activities-control-panel .stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.activities-control-panel .stat-item strong {
    font-size: var(--text-sm);
    color: var(--text);
    font-weight: 600;
}

/* Actions Section */
.activities-control-panel .panel-actions-section {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.activities-control-panel .panel-actions-section .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.activities-control-panel .panel-actions-section .btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .activities-control-panel .panel-row-group {
        grid-template-columns: 1fr;
    }
    
    .activities-control-panel .panel-row {
        grid-template-columns: 1fr;
    }
    
    .activities-control-panel .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .activities-control-panel {
        padding: var(--space-3);
    }
    
    .activities-control-panel .panel-row-group {
        gap: var(--space-3);
    }
    
    .activities-control-panel .panel-section {
        padding: var(--space-2);
    }
    
    .activities-control-panel .date-inputs {
        grid-template-columns: 1fr;
    }
    
    .activities-control-panel .action-buttons {
        flex-direction: column;
    }
}

/* Sayfa Boyutu Kontrolleri */
.page-size-controls {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.custom-page-size-group {
    display: flex;
    align-items: center;
}

.custom-page-size-group .filter-input {
    min-width: 80px;
    height: 32px; /* Diğer kontrollerle aynı yükseklik */
}

.primary-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
}

.primary-btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.success-btn {
    background: #10b981;
    border-color: #10b981;
    color: white;
    font-weight: 600;
}

.success-btn:hover {
    background: #059669;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Filter Row for side-by-side elements */
.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

.filter-section {
    margin-bottom: 0;
}

.filter-section:last-child {
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

/* Hızlı Filtreler */
.quick-filters {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.quick-filter-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 36px;
}

.quick-filter-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.quick-filter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Tarih Filtreleri */
.date-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
}

.date-filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.date-filter-group label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
}

.date-filter-group label svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.date-filter-group label span {
    flex: 1;
}

.filter-input,
.filter-select {
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: var(--text-sm);
    transition: all 0.2s ease;
    min-height: 36px;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.filter-action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 36px;
    flex: 1;
    justify-content: center;
}

.filter-action-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.filter-action-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Filter Actions Section */
.filter-actions-section {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quick-filters {
        flex-direction: column;
    }
    
    .date-filters {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
}

/* ═══════════════════════════════════════════════════════════════
   QUICK FILTERS STYLING
   ═══════════════════════════════════════════════════════════════ */
.quick-filters {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.quick-filter {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    white-space: nowrap;
}

.quick-filter:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-filter:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Quick filter hover colors */
.quick-filter:nth-child(1):hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

.quick-filter:nth-child(2):hover {
    background: #10b981;
    border-color: #10b981;
}

.quick-filter:nth-child(3):hover {
    background: #f59e0b;
    border-color: #f59e0b;
}

/* Responsive */
@media (max-width: 768px) {
    .quick-filters {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .quick-filter {
        justify-content: center;
        min-height: 40px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FILTERS ACTIONS SECTION STYLING
   ═══════════════════════════════════════════════════════════════ */
.filters-actions-section {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.actions-section-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    margin: 0 0 var(--space-3) 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.filter-actions .btn {
    white-space: nowrap;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* ═══════════════════════════════════════════════════════════════
   FILTER ACTIONS STYLING
   ═══════════════════════════════════════════════════════════════ */
.filter-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

    .filter-actions .btn {
        white-space: nowrap;
    }

/* ═══════════════════════════════════════════════════════════════
   TICKET TABLE STYLING - OPTIMIZED COLUMN WIDTHS
   ═══════════════════════════════════════════════════════════════ */
.ticket-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ticket-table th,
.ticket-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.ticket-table th {
    background: var(--surface-hover);
    font-weight: 600;
    color: var(--text);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-table tbody tr:hover {
    background: var(--surface-hover);
}

.ticket-table tbody tr:last-child td {
    border-bottom: none;
}

/* Optimized column widths - 7 Kolon (Atanan kaldırıldı) */
.ticket-table th:nth-child(1), /* Ticket ID */
.ticket-table td:nth-child(1) {
    width: 80px;
    text-align: center;
}

.ticket-table th:nth-child(2), /* Date */
.ticket-table td:nth-child(2) {
    width: 100px;
}

.ticket-table th:nth-child(3), /* Title - Main content */
.ticket-table td:nth-child(3) {
    width: auto;
    min-width: 250px;
    max-width: 350px;
}

.ticket-table th:nth-child(4), /* Status/Durum */
.ticket-table td:nth-child(4) {
    width: 100px;
    text-align: center;
    padding-right: 15px;
}

.ticket-table th:nth-child(5), /* Category */
.ticket-table td:nth-child(5) {
    width: 110px;
    padding-left: 10px;
    padding-right: 10px;
}

.ticket-table th:nth-child(6), /* Priority */
.ticket-table td:nth-child(6) {
    width: 80px;
    text-align: center;
    padding-left: 10px;
}

.ticket-table th:nth-child(7), /* Actions */
.ticket-table td:nth-child(7) {
    width: 160px;
    text-align: center;
    padding-left: 15px;
}

/* Content wrapper for title column */
.ticket-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.ticket-title {
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-meta-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .ticket-table th:nth-child(3),
    .ticket-table td:nth-child(3) {
        min-width: 300px;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .ticket-table {
        font-size: var(--text-xs);
    }
    
    .ticket-table th,
    .ticket-table td {
        padding: var(--space-2) var(--space-3);
    }
    
    .ticket-title {
        font-size: var(--text-sm);
    }
}

/* ═══════════════════════════════════════════════════════════════
   QUICK ACTIONS PANEL STYLING - MODERN DESIGN
   ═══════════════════════════════════════════════════════════════ */
.quick-actions-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.quick-actions-panel:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.quick-actions-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--space-4) var(--space-5);
    border-bottom: none;
}

.quick-actions-header .panel-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    font-weight: 600;
    color: white;
    margin: 0;
}

.quick-actions-header .panel-title svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

.quick-actions-content {
    padding: var(--space-4);
    background: var(--surface);
}

.action-group {
    margin-bottom: var(--space-4);
}

.action-group:last-child {
    margin-bottom: 0;
}

.action-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 36px;
    background: var(--surface);
    color: var(--text);
}

.action-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.action-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.action-btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.action-btn-secondary {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.action-btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.action-btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.action-btn-outline:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--accent);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quick-actions-panel {
        margin-top: 0;
    }
    
    .quick-actions-content {
        padding: var(--space-3);
    }
    
    .action-btn {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
        min-height: 32px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ENHANCED USER MENU STYLING
   ═══════════════════════════════════════════════════════════════ */
.user-menu-section {
    padding: var(--space-2) 0;
}

.user-menu-section-title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 var(--space-4);
    margin-bottom: var(--space-2);
}

.user-menu-section-title:first-child {
    margin-top: 0;
}

/* ── Departman üye paneli ────────────────────────────────────── */
.dm-header {
    padding: 14px 20px;
    border-bottom: 0.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dm-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.dm-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.dm-close-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

    .dm-close-btn:hover {
        background: var(--surface-hover);
    }

.dm-member-list {
    padding: 4px 0;
}

.dm-member-row {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 0.5px solid var(--border);
}

    .dm-member-row:last-child {
        border-bottom: none;
    }

.dm-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    flex-shrink: 0;
}

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

.dm-name {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm-role-select {
    font-size: 11px;
    padding: 3px 24px 3px 8px;
    border: 0.5px solid var(--border);
    border-radius: 6px;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
}

.dm-remove-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
}

    .dm-remove-btn:hover {
        background: var(--danger-light);
        color: var(--danger);
    }

.dm-footer {
    padding: 12px 20px;
    border-top: 0.5px solid var(--border);
    display: flex;
    gap: 8px;
    align-items: center;
}

.dm-new-select {
    flex: 1;
    font-size: 12px;
    padding: 7px 10px;
    border: 0.5px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text);
}

.dm-add-btn {
    font-size: 12px;
    padding: 7px 14px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .dm-add-btn:hover {
        background: var(--accent-hover);
    }