/**
 * FlowBoard - Referans Tasarıma Birebir Uygun Stil Dosyası
 * 
 * Açık renkli, modern, hafif gölgeli kapsül araç çubukları,
 * gerçekçi mantar pano dokusu ve 3D raptiyeli renkli post-it stickerlar.
 */

:root {
  /* Ana Renkler */
  --bg-app: #f1f5f9;
  --bg-white: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dark: #1e293b;
  
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.12);

  /* Mantar Pano Rengi */
  --cork-bg: #cca474;
  --cork-tan-1: #dfb889;
  --cork-tan-2: #b88a56;

  /* Post-it Renkleri (Görseldeki Pastel Tonlar) */
  --note-yellow: #fef08a;  /* Yumuşak Sarı */
  --note-blue: #bae6fd;    /* Buz Mavisi */
  --note-green: #dcfce7;   /* Pastel Yeşil */
  --note-pink: #fce7f3;    /* Pastel Pembe */
  --note-orange: #ffedd5;  /* Açık Şeftali/Turuncu */

  /* Gölgeler */
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 8px 24px rgba(0, 0, 0, 0.09);
  --shadow-sticker: 2px 10px 24px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-pin: 0 6px 12px rgba(0, 0, 0, 0.28), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Genel Sıfırlama */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: #ffffff;
  color: var(--text-main);
  overflow: hidden;
  user-select: none;
  height: 100vh;
  width: 100vw;
}

/* ==========================================================================
   1. LANDING VE KARŞILAMA EKRANI
   ========================================================================== */
.landing-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, #1e293b 0%, #0f172a 100%);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.landing-bg-decor {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
  pointer-events: none;
}

.landing-container {
  max-width: 860px;
  width: 100%;
  position: relative;
  z-index: 2;
  text-align: center;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.landing-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #ffffff;
}

.landing-title .highlight {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.6;
}

.landing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.action-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.action-card:hover {
  transform: translateY(-5px);
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.card-icon {
  width: 54px;
  height: 54px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.action-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.action-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.landing-footer { margin-top: 1rem; }

.recent-flows-box {
  margin-top: 2.5rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
}

.recent-flows-box h3 {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recent-flows-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.recent-flow-chip {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: #f8fafc;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.recent-flow-chip:hover {
  background: var(--primary);
  color: #0f172a;
  font-weight: 600;
}

/* ==========================================================================
   2. GÖRSELDEKİ MODERN BEYAZ ÜST BAR (Top Nav Card)
   ========================================================================== */
.app-workspace {
  position: fixed;
  inset: 0;
  background: #ffffff;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

.top-nav-card {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  height: 44px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: 14px 14px 0 0;
  box-shadow: 5px 2px 6px rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 100;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-pin-badge {
  width: 26px;
  height: 26px;
  background: #ffedd5;
  color: #ea580c;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.flow-title-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  white-space: nowrap;
}

.flow-code-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.flow-code-pill:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

/* Orta Sekmeler (Tabs) */
.nav-tabs-center {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
}

.nav-tab-link {
  background: none;
  border: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  transition: var(--transition);
  padding: 0 0.2rem;
}

.nav-tab-link:hover {
  color: var(--text-dark);
}

.nav-tab-link.active {
  color: var(--text-dark);
  font-weight: 700;
}

.nav-tab-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #0f172a;
  border-radius: 2px 2px 0 0;
}

/* Sağ Avatarlar ve Davet Butonu */
.team-avatars-cluster {
  display: flex;
  align-items: center;
}

.team-avatar-item {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -6px;
  background: #64748b;
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.team-avatar-item:first-child {
  margin-left: 0;
}

.btn-invite-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-dark);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.22rem 0.65rem;
  height: 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.btn-invite-pill:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-icon-bell {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  position: relative;
  transition: var(--transition);
}

.btn-icon-bell:hover {
  background: #f1f5f9;
}

.user-pill-minimal {
  cursor: pointer;
}

.user-avatar-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ea580c;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ==========================================================================
   3. GÖRSELDEKİ FLOATING ARAÇ ÇUBUĞU (Floating Capsules)
   ========================================================================== */
.floating-board-toolbar {
  position: absolute;
  top: 74px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 40;
}

.toolbar-left-group, .toolbar-right-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
}

.toolbar-capsule-btn {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  color: var(--text-dark);
  padding: 0.42rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.toolbar-capsule-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: var(--shadow-float);
}

/* ==========================================================================
   FİLTRE AÇILIR MENÜSÜ (Filter Dropdown Popup)
   ========================================================================== */
.filter-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.filter-menu-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  width: 260px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  animation: filterDropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-menu-popup.hidden {
  display: none !important;
}

@keyframes filterDropdownFade {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-group label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.filter-group .form-control,
.filter-group select {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-size: 0.84rem;
  color: #0f172a;
  outline: none;
  width: 100%;
  transition: var(--transition);
}

.filter-group .form-control:focus,
.filter-group select:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.1rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.filter-actions .btn-link {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.filter-actions .btn-link:hover {
  color: #ef4444;
}

.filter-count-badge {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 2px;
}

.zoom-stepper-capsule {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-card);
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.zoom-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: var(--transition);
}

.zoom-btn:hover {
  background: #f1f5f9;
  color: var(--text-dark);
}

.zoom-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 32px;
  text-align: center;
}

.toolbar-icon-btn {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-card);
  border-radius: 10px;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}

.toolbar-icon-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

/* ==========================================================================
   4. MANTAR PANO ÇALIŞMA SAHASI (Drop Shadow & Düz Alt Köşeler)
   ========================================================================== */
.corkboard-viewport {
  position: absolute;
  top: 62px;
  left: 18px;
  right: 18px;
  bottom: 18px;
  overflow: hidden;
  border-radius: 0 0 14px 14px;
  cursor: default;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-top: none;
  
  /* Sağa kaydırılmış, belirgin, daha koyu ve tok gölge */
  box-shadow: 5px 5px 6px rgba(0, 0, 0, 0.48);
  
  /* Doğal ve Hafif Soluklaştırılmış Mantar Deseni */
  background-color: #c49f72;
  background-image: 
    linear-gradient(rgba(250, 243, 235, 0.18), rgba(250, 243, 235, 0.18)),
    url('/images/cork-pattern.jpg');
  background-repeat: no-repeat, repeat;
  background-position: center center, 0 0;
  background-size: 100% 100%, 200px 200px;
}

.corkboard-viewport:active {
  cursor: default;
}

.corkboard-surface {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.board-items-container {
  position: absolute;
  inset: 0;
}

/* ==========================================================================
   5. 3D EFEKTLİ VE KAĞIT DOKULU STICKERLAR (Sticky Notes / Post-it)
   ========================================================================== */
.cork-item {
  position: absolute;
  border-radius: 3px;
  padding: 1.5rem 1.15rem 1.1rem 1.15rem;
  color: var(--text-dark);
  cursor: grab;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
  
  /* Gerçekçi 3D Kağıt Kenar Işığı ve Katlanma Gölgeleri */
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
  
  box-shadow: 
    3px 12px 28px rgba(0, 0, 0, 0.22),
    0 3px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset 0 -3px 6px rgba(0, 0, 0, 0.04);

  /* Hafif Organik Kağıt Greni (Paper Grain Noise) */
  background-blend-mode: multiply;
  background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 6px 6px, 8px 8px;
}

.cork-item:hover {
  box-shadow: 
    6px 18px 36px rgba(0, 0, 0, 0.32),
    0 4px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 3px rgba(255, 255, 255, 0.9);
  z-index: 60 !important;
}

.cork-item.dragging {
  cursor: grabbing;
  box-shadow: 
    16px 32px 50px rgba(0, 0, 0, 0.45),
    0 8px 16px rgba(0, 0, 0, 0.2);
  transform: scale(1.04) !important;
  opacity: 0.96;
  z-index: 80 !important;
}

/* ==========================================================================
   5.1. 3D VEKTÖREL ÇAN RAPTİYE (Geniş Tabanlı ve Zarif Belli Pure SVG Pushpin)
   ========================================================================== */
.cork-item::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 30px;
  background-image: url('/images/pin-red.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 25;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cork-item:hover::before {
  transform: translateX(-50%) scale(1.08);
}

.cork-item::after {
  display: none !important;
}

/* Renklere Göre Vektörel SVG Çan Raptiyeler */
.cork-item[data-pin="blue"]::before, .cork-item.item-task[style*="bae6fd"]::before {
  background-image: url('/images/pin-blue.svg');
}
.cork-item[data-pin="green"]::before, .cork-item.item-task[style*="dcfce7"]::before, .cork-item.item-task[style*="bbf7d0"]::before {
  background-image: url('/images/pin-green.svg');
}
.cork-item[data-pin="yellow"]::before, .cork-item.item-task[style*="fef08a"]::before {
  background-image: url('/images/pin-yellow.svg');
}
.cork-item[data-pin="red"]::before, .cork-item.item-task[style*="fce7f3"]::before, .cork-item.item-task[style*="fbcfe8"]::before {
  background-image: url('/images/pin-red.svg');
}

/* Sticker Başlık, Butonlar ve Öncelik (Başlık Üstte, İkonlar Altında) */
.item-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  width: 100%;
}

.item-title {
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.35;
  color: #0f172a;
  word-break: break-word;
  width: 100%;
}

.item-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.sticker-actions-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.sticker-header-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  transition: var(--transition);
}

.sticker-header-btn:hover {
  background: #0f172a;
  color: #ffffff;
  transform: scale(1.08);
}

.sticker-delete-btn:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}

/* ==========================================================================
   KRİTİK GÖREV PAPER TARZI ALEV ROZETİ (Paper Flame Icon & Animation)
   ========================================================================== */
.critical-flame-badge {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 26px;
  height: 30px;
  z-index: 25;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(220, 38, 38, 0.5)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  transform-origin: bottom center;
  animation: paperFlameFlicker 1.5s ease-in-out infinite alternate;
}

.shape-circle .critical-flame-badge {
  top: -4px;
  right: 14px;
}

.paper-flame-icon {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.paper-flame-icon path {
  stroke-linejoin: round;
  stroke-linecap: round;
}

.flame-layer-outer {
  fill: #ea580c;
  stroke: #ffffff;
  stroke-width: 0.8px;
}

.flame-layer-mid {
  fill: #f97316;
  stroke: #fff7ed;
  stroke-width: 0.6px;
  transform-origin: 16px 25px;
  animation: flameMidPulse 1.2s ease-in-out infinite alternate;
}

.flame-layer-inner {
  fill: #fde047;
  stroke: #ffffff;
  stroke-width: 0.5px;
  transform-origin: 16px 26px;
  animation: flameInnerGlow 0.9s ease-in-out infinite alternate;
}

/* Paper Tarzı Dalgalanma ve Kıvrılma Animasyonu */
@keyframes paperFlameFlicker {
  0% {
    transform: rotate(-4deg) scale(0.98) translateY(0);
  }
  35% {
    transform: rotate(3deg) scale(1.05) translateY(-1.5px);
  }
  70% {
    transform: rotate(-2deg) scale(0.96) translateY(0.5px);
  }
  100% {
    transform: rotate(5deg) scale(1.08) translateY(-2px);
  }
}

@keyframes flameMidPulse {
  0% {
    transform: scale(0.95) rotate(-2deg);
  }
  100% {
    transform: scale(1.06) rotate(2deg);
  }
}

@keyframes flameInnerGlow {
  0% {
    transform: scale(0.9) translateY(0.5px);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.12) translateY(-1px);
    opacity: 1;
  }
}

/* ==========================================================================
   ÖZEL SAĞ TIK MENÜSÜ (Custom Context Menu)
   ========================================================================== */
.custom-context-menu {
  position: fixed;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 0.4rem;
  min-width: 190px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  animation: contextMenuPop 0.15s ease-out;
}

@keyframes contextMenuPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.context-menu-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem 0.2rem 0.6rem;
  letter-spacing: 0.5px;
}

.context-menu-item {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: var(--transition);
}

.context-menu-item i {
  width: 16px;
  font-size: 0.9rem;
  color: #64748b;
}

.context-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.context-menu-item:hover i {
  color: #0f172a;
}

.context-menu-item.danger {
  color: #ef4444;
}
.context-menu-item.danger i {
  color: #ef4444;
}
.context-menu-item.danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.context-menu-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.3rem 0;
}

.context-menu-colors {
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
}

.context-color-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.context-color-btn:hover {
  transform: scale(1.2);
}

.item-title {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
  color: #0f172a;
}

/* Öncelik Rozeti ve Tıklanabilir Hızlı Seçim */
.priority-dot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.15s ease;
  user-select: none;
}

.priority-dot-badge:hover {
  background: rgba(0, 0, 0, 0.09);
  transform: translateY(-1px);
}

.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-Kritik { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.5); }
.dot-Yüksek { background: #f97316; box-shadow: 0 0 6px rgba(249, 115, 22, 0.5); }
.dot-Normal { background: #eab308; box-shadow: 0 0 6px rgba(234, 179, 8, 0.5); }
.dot-Düşük { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }

/* Öncelik ve Şekil Hızlı Popup Menüleri */
.quick-popover {
  position: absolute;
  z-index: 10000;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 0.35rem;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  animation: popoverFadeIn 0.15s ease-out;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.popover-item-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: var(--transition);
}

.popover-item-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.popover-item-btn.active {
  background: #f8fafc;
  color: #2563eb;
}

.popover-item-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.popover-item-left i {
  font-size: 0.85rem;
  width: 14px;
  text-align: center;
}

/* ==========================================================================
   STICKER GÖRÜNÜM VE ŞEKİL STİLLERİ (Kare, Yatay Geniş, Dik Uzun, Daire)
   ========================================================================== */
/* 1. Standart Kare */
.cork-item.shape-square {
  width: 270px;
  min-height: 220px;
  border-radius: 4px;
}

/* 2. Yatay Geniş */
.cork-item.shape-wide {
  width: 380px !important;
  min-height: 190px !important;
  border-radius: 6px;
}

/* 3. Dik Uzun */
.cork-item.shape-tall {
  width: 220px !important;
  min-height: 340px !important;
  border-radius: 6px;
}

/* 4. Daire / Yuvarlak */
.cork-item.shape-circle {
  width: 260px !important;
  height: 260px !important;
  min-height: 260px !important;
  border-radius: 50% !important;
  padding: 2.2rem 1.4rem 1.4rem 1.4rem !important;
  text-align: center;
  align-items: center;
  justify-content: space-between;
  box-shadow: 
    3px 12px 28px rgba(0, 0, 0, 0.22),
    0 3px 6px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

.cork-item.shape-circle::before {
  top: -12px !important;
}

.cork-item.shape-circle .item-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
  position: static;
}

.cork-item.shape-circle .item-header-actions {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
}

.cork-item.shape-circle .item-title {
  text-align: center;
  font-size: 0.94rem;
  width: 100%;
  line-height: 1.3;
}

.cork-item.shape-circle .sticker-actions-group {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.cork-item.shape-circle .item-body {
  text-align: center;
}

.cork-item.shape-circle .sticker-inline-textarea {
  text-align: center;
}

.cork-item.shape-circle .item-meta-row {
  width: 100%;
  justify-content: center;
}

.sticker-gear-btn {
  background: transparent;
  border: none;
  color: rgba(0,0,0,0.3);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.sticker-gear-btn:hover {
  color: #0f172a;
  transform: rotate(45deg);
}

/* Açıklama Metni (Doğal Kağıt Görünümü) */
.item-body {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #334155;
  flex-grow: 1;
  word-break: break-word;
  white-space: pre-wrap;
  cursor: text;
  padding: 4px 2px;
  min-height: 44px;
  border-radius: 4px;
  transition: background-color 0.15s ease;
  position: relative;
}

.item-body:hover {
  background-color: rgba(0, 0, 0, 0.025);
}

.item-body-empty {
  color: rgba(0, 0, 0, 0.38);
  font-style: italic;
  font-size: 0.8rem;
  user-select: none;
}

/* Doğal Kağıt Üzeri Satır İçi Textarea (Belirgin Metin İmleci / Caret) */
.sticker-inline-textarea {
  width: 100%;
  min-height: 44px;
  max-height: 240px;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  resize: none;
  color: #0f172a !important;
  caret-color: #0f172a !important; /* Net, Belirgin ve Yanıp Sönen Metin İmleci (Caret) */
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  word-break: break-word;
  white-space: pre-wrap;
  display: block;
}

.sticker-inline-textarea::selection {
  background: rgba(15, 23, 42, 0.18) !important;
  color: #0f172a !important;
}

.sticker-inline-textarea::placeholder {
  color: rgba(0, 0, 0, 0.38);
  font-style: italic;
  font-weight: 400;
}

/* Tıklandığında Tüm Açıklamayı Gösteren Uzamış Görünüm */
.cork-item.expanded {
  z-index: 9999 !important;
  height: auto !important;
  min-height: fit-content !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4) !important;
}

.cork-item.expanded .item-body {
  display: block !important;
  overflow: visible !important;
  white-space: pre-wrap !important;
  max-height: none !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  color: #0f172a !important;
  padding: 6px 8px !important;
  border-radius: 4px !important;
  margin: 4px 0 !important;
}

/* Sticker İçi Todo / Kontrol Listesi */
.sticker-todo-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.45rem 0;
  padding: 0.35rem 0.45rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  border: 1px dashed rgba(0, 0, 0, 0.1);
}

.sticker-todo-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.sticker-todo-check {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #0f172a;
}

.sticker-todo-text.done {
  text-decoration: line-through;
  opacity: 0.55;
}

/* Detay Paneli Todo List */
.detail-todos-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 180px;
  overflow-y: auto;
  margin-top: 0.35rem;
}

.detail-todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  gap: 0.5rem;
}

.detail-todo-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  flex: 1;
}

.detail-todo-del-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 4px;
  transition: color 0.15s ease;
}
.detail-todo-del-btn:hover {
  color: #ef4444;
}

.todo-add-form {
  display: flex;
  gap: 0.4rem;
}

/* Alt Meta Satırı */
.item-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.meta-left {
  display: flex;
  align-items: center;
}

.meta-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.meta-counter-btn {
  background: none;
  border: none;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}

.meta-counter-btn:hover {
  color: #0f172a;
}

/* İlerleme Çubuğu (Progress Bar) */
.item-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.progress-track {
  flex-grow: 1;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  min-width: 28px;
  text-align: right;
}

/* Küçük Serbest Not Kartı (Görseldeki "Toplantı Cuma 14:00 😊") */
.cork-item.item-note-handwritten {
  font-family: 'Caveat', cursive, sans-serif;
  background: var(--note-yellow);
}
.cork-item.item-note-handwritten .item-title {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}
.cork-item.item-note-handwritten .item-body {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
}

/* ==========================================================================
   6. SOL ALT MINIMAP VE SAĞ ALT FAB BUTONLARI
   ========================================================================== */
.minimap-widget {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  z-index: 30;
}

.minimap-preview {
  width: 90px;
  height: 64px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(4px);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.minimap-dot {
  position: absolute;
  width: 14px;
  height: 10px;
  border-radius: 2px;
  opacity: 0.85;
}

.minimap-zoom-bar {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.minimap-zoom-bar button {
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  color: var(--text-dark);
  font-size: 0.75rem;
}
.minimap-zoom-bar button:hover {
  background: rgba(0, 0, 0, 0.05);
}

.fab-quick-add {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: #fef08a;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: var(--shadow-sticker);
  color: #0f172a;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  transition: var(--transition);
}

.fab-quick-add:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   7. SOLDAN KAYARAK AÇILAN PANEL (Left Slide-in Drawer)
   ========================================================================== */
.left-slide-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 440px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.left-slide-panel.closed {
  transform: translateX(-100%);
}

.left-slide-panel .panel-header {
  padding: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.left-slide-panel .panel-header h2 {
  font-size: 1.15rem;
  font-family: 'Outfit', sans-serif;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.left-slide-panel .panel-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: var(--transition);
}

.timeline-item-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card);
}

.timeline-desc {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
}

.timeline-time {
  font-size: 0.75rem;
  color: #64748b;
}

/* ==========================================================================
   8. SAĞ DETAY PANELİ VE MODALLER
   ========================================================================== */
.task-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-detail-panel.closed {
  transform: translateX(100%);
}

.panel-header {
  padding: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-type-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ea580c;
  background: #ffedd5;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.panel-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}
.panel-close-btn:hover { color: var(--text-dark); }

.panel-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-title-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #e2e8f0;
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  padding: 0.4rem 0;
  outline: none;
}
.detail-title-input:focus { border-color: var(--primary); }

.detail-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label, .section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.form-control {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--text-dark);
  font-size: 0.875rem;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.color-picker-row { display: flex; gap: 0.4rem; }
.color-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.color-dot:hover { transform: scale(1.15); }
.color-dot.yellow { background: var(--note-yellow); }
.color-dot.green { background: var(--note-green); }
.color-dot.blue { background: var(--note-blue); }
.color-dot.pink { background: var(--note-pink); }
.color-dot.orange { background: var(--note-orange); }

.assigned-members-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.member-check-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}
.member-check-chip.selected {
  background: #ffedd5;
  border-color: var(--primary);
  color: #ea580c;
  font-weight: 600;
}

.detail-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  color: var(--text-dark);
  font-size: 0.875rem;
  outline: none;
  resize: vertical;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.detail-files-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.detail-comments-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.comment-bubble {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ea580c;
  margin-bottom: 0.2rem;
}

.comment-input-form { display: flex; gap: 0.5rem; }
.comment-input { flex-grow: 1; }

/* Modaller */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  z-index: 20000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-lg { max-width: 700px; }

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.2rem;
  font-family: 'Outfit', sans-serif;
  color: #0f172a;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Butonlar */
.btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.btn-primary { background: #0f172a; color: #ffffff; }
.btn-primary:hover { background: #1e293b; }

.btn-secondary { background: #f1f5f9; color: var(--text-dark); border-color: #e2e8f0; }
.btn-secondary:hover { background: #e2e8f0; }

.btn-outline { background: transparent; border-color: #cbd5e1; color: var(--text-dark); }
.btn-outline:hover { background: #f8fafc; }

.btn-danger-outline { background: transparent; border-color: #ef4444; color: #ef4444; }
.btn-danger-outline:hover { background: #ef4444; color: white; }

.btn-block { width: 100%; }

.btn-copy {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-dark);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
}

.btn-link {
  background: none;
  border: none;
  color: #ea580c;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

/* Credential Box */
.credential-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cred-item { display: flex; flex-direction: column; gap: 0.3rem; text-align: left; }
.cred-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.cred-value { font-weight: 700; font-size: 1.1rem; }

.copy-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.highlight-code { color: #ea580c; font-family: monospace; font-size: 1.3rem; letter-spacing: 2px; }
.code-box { color: #0284c7; font-family: monospace; font-size: 1.2rem; letter-spacing: 1px; }

.alert-cred {
  background: #fef2f2;
  border: 1px dashed #ef4444;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

.cred-hint { color: #ef4444; font-size: 0.75rem; margin-top: 0.2rem; }
.qr-image { width: 200px; height: 200px; border-radius: var(--radius-md); background: white; padding: 8px; margin: 0 auto; }

/* Sekmeler */
.settings-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1rem;
}

.settings-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.settings-tab-btn.active {
  color: #0f172a;
  border-color: #0f172a;
}

.settings-tab-content { display: none; }
.settings-tab-content.active { display: flex; flex-direction: column; gap: 1rem; }

/* Toast Bildirimleri */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 30000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideIn 0.3s ease;
}

.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }
.toast-info { border-left: 4px solid #38bdf8; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   DRAWER PANELLER (Sağ Detay ve Sol Aktivite/Üyeler Panelleri)
   ========================================================================== */
.task-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 92vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.22);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(100%);
}

.task-detail-panel.open {
  transform: translateX(0) !important;
}

.task-detail-panel.closed {
  transform: translateX(100%) !important;
}

.left-slide-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  max-width: 92vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.22);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-100%);
}

.left-slide-panel.open {
  transform: translateX(0) !important;
}

.left-slide-panel.closed {
  transform: translateX(-100%) !important;
}

.panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #64748b;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.panel-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-title-input {
  width: 100%;
  font-size: 1.25rem;
  font-weight: 700;
  border: 1px solid transparent;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.5rem 0.2rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease;
}

.detail-title-input:focus {
  border-bottom-color: #0f172a;
}

.detail-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.detail-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
}

.detail-textarea:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

.color-picker-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.color-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.color-dot:hover {
  transform: scale(1.15);
}

.color-dot.yellow { background: #fef08a; }
.color-dot.green { background: #bbf7d0; }
.color-dot.blue { background: #bae6fd; }
.color-dot.pink { background: #fbcfe8; }
.color-dot.orange { background: #fed7aa; }
.color-dot.purple { background: #e9d5ff; }

.assigned-members-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.member-check-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  background: #ffffff;
  transition: var(--transition);
}

.member-check-chip.selected {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* ==========================================================================
   SOLDAN KAYARAK AÇILAN PANEL (Aktiviteler ve Üyeler)
   ========================================================================== */
.left-slide-panel {
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  width: 360px;
  max-width: 90vw;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  box-shadow: 10px 0 32px rgba(0, 0, 0, 0.12);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.left-slide-panel.closed {
  transform: translateX(-105%);
  pointer-events: none;
  box-shadow: none;
}

/* ==========================================================================
   SAĞ İŞ DETAY VE AYARLAR PANELİ (Drawer)
   ========================================================================== */
.task-detail-panel {
  position: fixed;
  top: 56px;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 95vw;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -10px 0 32px rgba(0, 0, 0, 0.12);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.task-detail-panel.closed {
  transform: translateX(105%);
  pointer-events: none;
  box-shadow: none;
}

.panel-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.panel-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.panel-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.05rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.panel-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Aktivite Kartları */
.timeline-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: var(--transition);
}

.timeline-item-card:hover {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.timeline-desc {
  font-size: 0.86rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.4;
}

.timeline-time {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

/* ==========================================================================
   STICKER YANINDA AÇILAN POPOVER (Chat & Dosya Baloncukları - Ekranda Bulanıklık Yok!)
   ========================================================================== */
.sticker-popover {
  position: fixed;
  width: 350px;
  max-width: 92vw;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24), 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  z-index: 6000;
  display: flex;
  flex-direction: column;
  animation: popoverFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: scale(0.94) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.popover-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.popover-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f172a;
}
.popover-title-wrap i {
  color: #ea580c;
  font-size: 1rem;
}

.popover-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.popover-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.popover-body {
  padding: 0.75rem 1rem;
}

.popover-body.chat-body {
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Chat Mesajlaşma Alanı */
.chat-messages-container {
  height: 260px;
  max-height: 260px;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #ffffff;
  scroll-behavior: smooth;
}

.chat-empty-hint {
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
}

.chat-msg-row {
  display: flex;
  gap: 0.45rem;
  align-items: flex-end;
  width: 100%;
}
.chat-msg-row.mine {
  justify-content: flex-end;
}
.chat-msg-row.other {
  justify-content: flex-start;
}

.chat-bubble {
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.35;
  max-width: 80%;
  word-break: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chat-msg-row.mine .chat-bubble {
  background: #0f172a;
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-msg-row.other .chat-bubble {
  background: #f1f5f9;
  color: #1e293b;
  border-bottom-left-radius: 2px;
}

.chat-author-tag {
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #ea580c;
}
.chat-msg-row.mine .chat-author-tag {
  display: none;
}

.chat-time-tag {
  font-size: 0.65rem;
  opacity: 0.65;
  margin-top: 3px;
  text-align: right;
}

.chat-input-row {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.chat-input-control {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  outline: none;
  background: #ffffff;
  transition: border-color 0.15s ease;
}
.chat-input-control:focus {
  border-color: #0f172a;
}

.chat-send-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform 0.15s ease;
}
.chat-send-btn:hover {
  transform: scale(1.08);
}

/* Popover Dosya Listesi */
.popover-files-list {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.btn-popover-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.15s ease;
}
.btn-popover-upload:hover {
  background: #f1f5f9;
  border-color: #0f172a;
  color: #0f172a;
}

/* ==========================================================================
   STICKERLAR ARASI KIRMIZI İP BAĞLANTI SİSTEMİ (Red String Connections)
   ========================================================================== */
.board-connections-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90 !important; /* Stickerların üstünde, popup ve modalların altında yer alır */
  overflow: visible;
}

/* İp Zemin Gölgesi (Mantar Panoya Düşen Doğal Gölge) */
.yarn-shadow {
  fill: none;
  stroke: rgba(0, 0, 0, 0.22);
  stroke-width: 3.5px;
  stroke-linecap: round;
  filter: blur(2.5px);
  transform: translate(3px, 6px);
  pointer-events: none;
}

/* Gerçekçi Kırmızı İp (Kırmızı Yün Dokulu) */
.yarn-string {
  fill: none;
  stroke: #e11d48;
  stroke-width: 3px;
  stroke-linecap: round;
  filter: url(#yarnNoiseFilter);
  cursor: pointer;
  pointer-events: stroke;
  transition: stroke 0.15s ease, stroke-width 0.15s ease;
}

.yarn-string:hover {
  stroke: #be123c;
  stroke-width: 5px;
  filter: drop-shadow(0 0 6px rgba(225, 29, 72, 0.6)) url(#yarnNoiseFilter);
}

/* İp Çekme Aşamasındaki Taslak İp */
.yarn-draft-shadow {
  fill: none;
  stroke: rgba(0, 0, 0, 0.18);
  stroke-width: 3px;
  stroke-linecap: round;
  filter: blur(2px);
  transform: translate(2px, 4px);
  pointer-events: none;
}

.yarn-draft {
  fill: none;
  stroke: #f43f5e;
  stroke-width: 2.5px;
  stroke-dasharray: 6, 4;
  stroke-linecap: round;
  pointer-events: none;
  animation: yarnDashMove 0.6s linear infinite;
}

@keyframes yarnDashMove {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -10; }
}

/* Bağlantı Çekerken Hedef Sticker Pininin Havaya Kalkması */
.cork-item.pin-lifted::before {
  transform: translateX(-50%) translateY(-14px) scale(1.35) !important;
  filter: drop-shadow(0 14px 10px rgba(0, 0, 0, 0.35)) brightness(1.25) !important;
  z-index: 60 !important;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), filter 0.15s ease !important;
}

.cork-item.pin-source::before {
  filter: drop-shadow(0 0 8px rgba(225, 29, 72, 0.85)) brightness(1.1) !important;
}

/* BOŞ ALANDA İP BIRAKILDIĞINDA AÇILAN HIZLI BAĞLAMA MENÜSÜ */
.quick-connect-popover {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
  min-width: 190px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  animation: popoverFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-connect-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.3rem 0.5rem 0.2rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.quick-connect-header i {
  color: #e11d48;
}

.quick-connect-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.quick-connect-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: var(--transition);
}

.quick-connect-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.quick-connect-btn.cancel:hover {
  background: #fee2e2;
  color: #ef4444;
}

.quick-connect-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 0.2rem 0;
}

.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
