/* assets/css/style.css - MeisterTask İlhamlı Ferah, Profesyonel ve Modern Tasarım Sistemi */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* MeisterTask Ferah & Nötr Temel Renkleri */
  --bg-app: #f4f6f8;
  --bg-sidebar: #ffffff;
  --bg-header: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-hover: #f1f5f9;
  --bg-column: #ebedf0;
  
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-focus: #3b82f6;

  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  /* MeisterTask İkonik Sütun & Vurgu Renkleri */
  --mt-blue: #3b82f6;
  --mt-cyan: #06b6d4;
  --mt-orange: #f59e0b;
  --mt-green: #10b981;
  --mt-purple: #8b5cf6;
  --mt-rose: #f43f5e;
  --mt-indigo: #6366f1;

  /* Yumuşak Pastel Arka Planlar & Rozetler */
  --badge-urgent-bg: #fee2e2;
  --badge-urgent-text: #dc2626;
  --badge-urgent-border: #fecaca;

  --badge-high-bg: #fef3c7;
  --badge-high-text: #d97706;
  --badge-high-border: #fde68a;

  --badge-medium-bg: #e0f2fe;
  --badge-medium-text: #0284c7;
  --badge-medium-border: #bae6fd;

  --badge-low-bg: #f1f5f9;
  --badge-low-text: #64748b;
  --badge-low-border: #e2e8f0;

  /* Gölgeler & Radius */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-modal: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --sidebar-w: 250px;
  --header-h: 64px;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Karanlık Mod Seçeneği */
[data-theme="dark"] {
  --bg-app: #0f172a;
  --bg-sidebar: #1e293b;
  --bg-header: #1e293b;
  --bg-surface: #1e293b;
  --bg-subtle: #273549;
  --bg-hover: #334155;
  --bg-column: #1e293b;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-focus: #6366f1;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Sıfırlama */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ana Düzen */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* ============================================================
   SIDEBAR (MeisterTask Tarzı Minimalist & Şık)
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 20;
}

.sidebar-header {
  height: auto;
  min-height: 72px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border-light);
}

.brand-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  min-width: 0;
  flex: 1;
}

.brand-logo-box {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.brand-subtext-container {
  display: flex;
  align-items: center;
}

.brand-system-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.brand-link:hover .brand-system-badge {
  color: var(--text-primary);
  border-color: var(--border-color);
  background: var(--bg-hover);
}

.brand-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF6600; /* Criot Turuncu İmzası */
  flex-shrink: 0;
}

.mobile-sidebar-close {
  align-self: flex-start;
  margin-top: 4px;
}

/* Light / Dark Mode logo switch */
html[data-theme="light"] .brand-logo-img.logo-light,
:root:not([data-theme="dark"]) .brand-logo-img.logo-light {
  display: block !important;
}
html[data-theme="light"] .brand-logo-img.logo-dark,
:root:not([data-theme="dark"]) .brand-logo-img.logo-dark {
  display: none !important;
}

html[data-theme="dark"] .brand-logo-img.logo-light {
  display: none !important;
}
html[data-theme="dark"] .brand-logo-img.logo-dark {
  display: block !important;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding: 0 8px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: #eff6ff;
  color: var(--mt-blue);
  font-weight: 600;
}

[data-theme="dark"] .nav-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
}

.project-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.project-item.active {
  background: #eff6ff;
  color: var(--mt-blue);
  font-weight: 600;
}

[data-theme="dark"] .project-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.project-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.25;
}

.project-item .nav-badge {
  margin-left: 0;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 1px 6px;
}

.project-item-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}

.project-item:hover .project-item-more-btn,
.project-item.active .project-item-more-btn {
  opacity: 1;
}

.project-item-more-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
  opacity: 1;
}

[data-theme="dark"] .project-item-more-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.project-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-hover);
  color: var(--text-muted);
  font-weight: 600;
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-light);
}

.system-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

/* ============================================================
   ANA ÇALIŞMA ALANI & ÜST BAŞLIK
   ============================================================ */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
}

.top-header {
  height: var(--header-h);
  padding: 0 24px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 10;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.project-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.project-title-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--mt-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.project-heading {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
  min-width: 0;
  margin: 0;
  line-height: 1.25;
}

.project-title-meta-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.project-status-subline {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.project-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 1.5px 8px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: all 0.15s ease;
  user-select: none;
  cursor: pointer;
  line-height: 1.25;
}

.status-active-pill {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
}

.status-passive-pill {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
}

[data-theme="dark"] .status-active-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .status-passive-pill {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.35);
}

.project-item-passive {
  opacity: 0.82;
}

.project-members-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-members-chip:hover {
  background: var(--bg-hover);
  border-color: var(--border-color);
}

.members-avatar-stack {
  display: flex;
  align-items: center;
}

.members-chip-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mt-blue);
  display: flex;
  align-items: center;
  gap: 3px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

#headerActivityBtn {
  white-space: nowrap;
  flex-shrink: 0;
}

.header-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.82rem;
  padding: 7px 12px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.header-nav-btn.active {
  background: rgba(37, 99, 235, 0.08) !important;
  color: var(--mt-blue) !important;
  border-color: var(--mt-blue) !important;
  font-weight: 600;
}

[data-theme="dark"] .header-nav-btn.active {
  background: rgba(59, 130, 246, 0.16) !important;
  color: #60a5fa !important;
  border-color: #3b82f6 !important;
}

.header-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1.2;
  min-width: 16px;
  text-align: center;
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--mt-blue);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--border-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-hover);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Toolbar / Görünüm Sekmeleri ve Filtre Çubuğu */
.filter-bar {
  padding: 8px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}

[data-theme="dark"] .filter-bar {
  background: #1e293b;
}

/* MeisterTask Tarzı Görünüm Sekmeleri */
.view-tabs {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  gap: 3px;
  flex-shrink: 0;
}

.view-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.view-tab-btn:hover {
  color: var(--text-primary);
}

.view-tab-btn.active {
  background: #ffffff;
  color: var(--mt-blue);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .view-tabs {
  background: #273549;
}

[data-theme="dark"] .view-tab-btn.active {
  background: #1e293b;
  color: #60a5fa;
}

.filter-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-box {
  position: relative;
  width: 250px;
  transition: width 0.2s ease;
}

.search-box:focus-within {
  width: 320px;
}

.search-box input {
  width: 100%;
  padding: 7px 12px 7px 34px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  color: var(--text-primary);
  font-size: 0.84rem;
  outline: none;
  font-family: inherit;
  transition: all 0.15s ease;
}

[data-theme="dark"] .search-box input {
  background: #0f172a;
}

.search-box input:focus {
  border-color: var(--mt-blue);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-select {
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: #f8fafc;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.filter-select:hover,
.filter-select:focus {
  border-color: var(--mt-blue);
  background: #ffffff;
}

[data-theme="dark"] .filter-select {
  background: #0f172a;
  border-color: var(--border-light);
  color: var(--text-primary);
}

/* İçerik Alanı */
.content-area {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  background-color: var(--bg-app);
}

.view-pane {
  display: none;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.view-pane.active {
  display: flex;
}

/* Modallar */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-modal);
  width: 90%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  cursor: default;
}

[data-theme="dark"] .modal-box {
  background: #1e293b;
}

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

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: #f8fafc;
  border-radius: 0 0 12px 12px;
}

[data-theme="dark"] .modal-footer {
  background: #0f172a;
}

/* Formlar */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

[data-theme="dark"] .form-control {
  background: #0f172a;
}

.form-control:focus {
  border-color: var(--mt-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

textarea.form-control {
  min-height: 85px;
  resize: vertical;
}

.modal-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Raporlar & Analiz Görünümü */
.reports-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  height: 100%;
}

.reports-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 6px;
  line-height: 1.2;
}

/* Otomasyon Görünümü */
.automations-container {
  padding: 24px;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  height: 100%;
}

.automation-rule-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Toast Bildirimleri */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.toast {
  padding: 12px 18px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #f43f5e; }
.toast-info { border-left: 4px solid #3b82f6; }

/* ============================================================
   KULLANICI VE ROL ROZETİ (RBAC)
   ============================================================ */
.user-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.role-badge-lead {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.role-badge-member {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.role-badge-viewer {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

/* ========================================================
   YETKİ MATRİSİ & AYRINTILI İZİN KIRILIMLARI (PERMISSIONS)
   ======================================================== */
.perm-matrix-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.perm-user-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.perm-preset-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 2px;
}

.perm-preset-btn {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.perm-preset-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--mt-blue);
}

.perm-preset-btn.active {
  background: rgba(59, 130, 246, 0.12);
  color: var(--mt-blue);
  border-color: var(--mt-blue);
}

.perm-group-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease;
}

.perm-group-card:hover {
  border-color: #cbd5e1;
}

.perm-group-header {
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.perm-group-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.perm-group-actions {
  display: flex;
  gap: 6px;
}

.perm-group-action-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.perm-group-action-btn:hover {
  color: var(--mt-blue);
  background: rgba(59, 130, 246, 0.08);
}

.perm-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  padding: 12px;
}

.perm-item-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  user-select: none;
}

.perm-item-label:hover {
  background: var(--bg-subtle);
}

.perm-item-label.is-checked {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.25);
}

.perm-checkbox {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--mt-blue);
  flex-shrink: 0;
}

.perm-item-info {
  display: flex;
  flex-direction: column;
}

.perm-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.perm-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* ============================================================
   %100 MOBİL UYUMLULUK VE TELEFON UYGULAMA MODU (MOBILE-FIRST)
   ============================================================ */
.mobile-bottom-nav {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.mobile-sidebar-close {
  display: none !important;
}

.mobile-fab {
  display: none;
}


@media (max-width: 768px) {
  /* Mobil Yan Menü ve Perde */
  .sidebar-backdrop.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(3px);
    z-index: 998;
    animation: fadeIn 0.2s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .mobile-sidebar-close {
    display: flex !important;
  }

  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 285px;
    max-width: 85vw;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideInLeft 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
  }

  .sidebar.mobile-open {
    display: flex;
  }

  /* Ana Taşıyıcı ve Ekran Kapsayıcıları (Mobilde Doğal & Kusursuz Dikey Kaydırma) */
  html, body {
    height: auto !important;
    min-height: 100% !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: manipulation;
  }

  .app-container {
    height: auto !important;
    min-height: 100% !important;
    min-height: 100dvh !important;
    width: 100% !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .main-wrapper {
    height: auto !important;
    min-height: 100% !important;
    min-height: 100dvh !important;
    width: 100% !important;
    overflow: visible !important;
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
  }

  .content-area {
    height: auto !important;
    min-height: 0 !important;
    flex: 1 0 auto !important;
    overflow: visible !important;
    display: block !important;
    position: relative !important;
    width: 100% !important;
  }

  .view-pane {
    height: auto !important;
    min-height: 0 !important;
    width: 100% !important;
    overflow: visible !important;
    display: none;
  }

  .view-pane.active {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Mobil Üst Başlık */
  .top-header {
    height: 56px;
    padding: 0 10px;
    position: sticky !important;
    top: 0 !important;
    z-index: 500 !important;
    background: var(--bg-surface) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
  }

  .header-left {
    gap: 8px;
    overflow: hidden;
    min-width: 0;
    flex: 1;
  }

  .project-title-area {
    min-width: 0;
    overflow: hidden;
  }

  .project-heading {
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
  }

  #projectMembersHeader {
    padding: 2px 5px !important;
  }

  #projectMembersHeader span {
    display: none !important; /* Ekip yazısını gizle, avatarlar kalsın */
  }

  /* Masaüstü Görünüm Sekmelerini Gizle */
  .view-tabs {
    display: none;
  }

  .header-right {
    gap: 6px;
    flex-shrink: 0;
  }

  .desktop-only-text {
    display: none !important;
  }

  .header-nav-btn,
  #headerActivityBtn {
    padding: 6px 8px !important;
  }

  .header-right .btn-primary {
    display: none !important; /* Mobilde FAB kullanılır */
  }

  #activeUserBadge {
    padding: 4px 8px;
    font-size: 0.72rem;
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #activeUserBadge span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Filtre Barını Kompakt Yap */
  .filter-bar {
    padding: 8px 12px;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .search-box {
    width: 100%;
    flex: 1;
  }

  .filter-select {
    padding: 6px 8px;
    font-size: 0.78rem;
    max-width: 110px;
  }

  /* Mobil Alt Gezinme Barı (App-Like Bottom Navigation) */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    z-index: 900;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    justify-content: space-around;
    align-items: center;
  }

  [data-theme="dark"] .mobile-bottom-nav {
    background: #1e293b;
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    height: 100%;
    transition: all 0.15s ease;
    border: none;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
  }

  .mobile-nav-item.active {
    color: var(--mt-blue);
  }

  [data-theme="dark"] .mobile-nav-item.active {
    color: #60a5fa;
  }

  /* Mobil Yüzen Ekleme Butonu (FAB) */
  .mobile-fab {
    display: flex;
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--mt-blue);
    color: #ffffff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
    z-index: 850;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-fab:active {
    transform: scale(0.92);
  }


  /* Mobil Kanban Panosu (Sütunlar ve Görevler Tam Alt Alta / Dikey Akış) */
  .kanban-board-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 12px 12px calc(80px + env(safe-area-inset-bottom, 0px)) 12px !important;
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
  }

  .kanban-column {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    flex-shrink: 0 !important;
    scroll-margin-top: 10px;
    border-radius: 12px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
    overflow: visible !important;
    border: 1px solid var(--border-light) !important;
  }

  [data-theme="dark"] .kanban-column {
    border-color: rgba(255, 255, 255, 0.08) !important;
  }

  .column-tasks-scroll {
    overflow: visible !important;
    max-height: none !important;
    padding: 10px !important;
    gap: 10px !important;
    min-height: 0 !important;
  }

  .task-card {
    -webkit-user-drag: none !important;
    touch-action: pan-y !important;
  }

  .add-column-card {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    margin-bottom: 24px !important;
  }

  .kanban-column.collapsed .column-tasks-scroll,
  .kanban-column.collapsed .add-task-quick-btn {
    display: none !important;
  }

  .col-collapse-icon {
    transition: transform 0.2s ease;
    margin-right: 4px;
    flex-shrink: 0;
  }

  .kanban-column.collapsed .col-collapse-icon {
    transform: rotate(-90deg);
  }

  /* Mobil Modallar (Native App Bottom Sheet) */
  .modal-overlay {
    align-items: flex-end;
    z-index: 2000;
  }

  .modal-box {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 88vh !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    animation: slideUpBottom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 !important;
  }

  /* Native Bottom Sheet Çekme Çubuğu (Drag Handle) */
  .modal-box::before {
    content: '';
    display: block;
    width: 38px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 4px;
    margin: 10px auto 2px auto;
    flex-shrink: 0;
  }

  [data-theme="dark"] .modal-box::before {
    background: #475569;
  }

  @keyframes slideUpBottom {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .modal-body {
    padding: 14px 16px;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }

  .modal-header {
    padding: 12px 16px;
  }

  .modal-footer {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Mobil 2-Kolon Form Izgarası Çökertme */
  .modal-grid-2col {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* iOS Safari Otomatik Yakınlaştırma (Zoom) Önleyici */
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Mobil Takvim Görünümü */
  .calendar-view-wrapper {
    padding: 10px 8px calc(80px + env(safe-area-inset-bottom, 0px)) 8px !important;
    gap: 8px;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .calendar-top-bar {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cal-month-title {
    font-size: 0.95rem;
    min-width: 120px;
  }

  .cal-weekday-cell {
    padding: 6px 2px;
    font-size: 0.66rem;
  }

  .cal-day-cell {
    min-height: 60px;
    max-height: 90px;
    padding: 3px 4px;
    gap: 2px;
  }

  .cal-day-num {
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
  }

  .cal-task-badge {
    padding: 1px 3px;
    font-size: 0.62rem;
    height: 15px;
    border-radius: 3px;
  }

  .cal-day-header button {
    display: none !important;
  }

  /* Mobil Gantt Çizelgesi */
  .gantt-container {
    padding: 8px 8px calc(80px + env(safe-area-inset-bottom, 0px)) 8px !important;
    height: auto !important;
    min-height: auto !important;
    overflow-y: visible !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .gantt-top-bar {
    padding: 8px 10px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .gantt-task-meta-cell {
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
    padding: 8px 8px !important;
    font-size: 0.78rem !important;
    position: sticky !important;
    left: 0 !important;
    z-index: 6 !important;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
  }

  .gantt-sticky-header {
    z-index: 7 !important;
  }

  /* Mobil Liste Görünümü */
  .list-view-container {
    padding: 8px 8px calc(80px + env(safe-area-inset-bottom, 0px)) 8px !important;
    height: auto !important;
    min-height: auto !important;
    overflow-y: visible !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .task-table {
    min-width: 560px;
  }

  .task-table th, .task-table td {
    padding: 8px 8px;
    font-size: 0.78rem;
  }

  /* Mobil Raporlar & Analiz Görünümü */
  .reports-container {
    padding: 12px 14px calc(80px + env(safe-area-inset-bottom, 0px)) 14px !important;
    gap: 12px !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .reports-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .reports-stats-grid .stat-card {
    padding: 12px !important;
  }

  .reports-stats-grid .stat-value {
    font-size: 1.45rem !important;
  }

  /* Mobil Otomasyon Görünümü */
  .automations-container {
    padding: 12px 14px calc(80px + env(safe-area-inset-bottom, 0px)) 14px !important;
    gap: 12px !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .automation-rule-card {
    padding: 12px 14px !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  /* Mobil Arşivler Görünümü */
  .archives-container {
    padding: 12px 14px calc(80px + env(safe-area-inset-bottom, 0px)) 14px !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  /* Mobil Yetki Matrisi Modalı */
  .perm-user-banner {
    padding: 10px 12px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .perm-preset-bar {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 6px !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
  }

  .perm-preset-bar::-webkit-scrollbar {
    display: none;
  }

  .perm-preset-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 6px 10px !important;
    font-size: 0.74rem !important;
  }

  .perm-items-grid {
    grid-template-columns: 1fr !important;
    padding: 8px 10px !important;
    gap: 6px !important;
  }

  .perm-item-label {
    padding: 8px !important;
  }

  .perm-checkbox {
    width: 20px !important;
    height: 20px !important;
  }

  /* Mobil Zaman Takip Sayacı Kutusu */
  .stopwatch-widget {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .stopwatch-widget > div:last-child {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
  }

  .stopwatch-widget > div:last-child .btn {
    flex: 1 !important;
    justify-content: center !important;
  }
}

/* ========================================================
   PROJE AKSİYONLARI VE SEÇENEKLER MENÜSÜ
   ======================================================== */
.project-actions-dropdown-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-icon-sm {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px;
  background: var(--bg-subtle) !important;
  border: 1px solid var(--border-light) !important;
  color: var(--text-secondary) !important;
}

.btn-icon-sm:hover {
  background: var(--bg-hover) !important;
  color: var(--text-primary) !important;
}

.project-options-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

[data-theme="dark"] .project-options-menu {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.proj-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.proj-menu-item:hover {
  background: var(--bg-hover);
  color: var(--mt-blue);
}

.proj-menu-item.danger {
  color: #ef4444;
}

.proj-menu-item.danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

[data-theme="dark"] .proj-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.proj-menu-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

/* Arşivlenmiş Proje Uyarı Bandı */
.archived-project-banner {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

[data-theme="dark"] .archived-project-banner {
  background: #292524;
  border-color: #44403c;
  color: #fef08a;
}

.archived-project-banner .banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: #92400e;
}

[data-theme="dark"] .archived-project-banner .banner-left {
  color: #fde68a;
}

.archived-project-banner .banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Arşivler Sayfası */
.archives-container {
  padding: 20px 24px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-y: auto;
  height: 100%;
  box-sizing: border-box;
}

.archives-header {
  margin-bottom: 20px;
}

.archives-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.archives-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--mt-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .archives-icon-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.archives-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.archives-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.archives-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.archives-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.archives-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.archives-table th {
  padding: 12px 18px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.archives-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.86rem;
  color: var(--text-primary);
  vertical-align: middle;
}

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

.archives-table tr:hover td {
  background: var(--bg-hover);
}

.archived-proj-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.archived-proj-name {
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.15s ease;
}

.archived-proj-name:hover {
  color: var(--mt-blue);
  text-decoration: underline;
}

.archived-proj-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archives-empty-state {
  padding: 60px 20px;
  text-align: center;
}

.btn-sm {
  padding: 5px 10px !important;
  font-size: 0.78rem !important;
}

.btn-danger {
  background: #ef4444 !important;
  color: #fff !important;
  border-color: #dc2626 !important;
}

.btn-danger:hover {
  background: #dc2626 !important;
}

.btn-danger-hover:hover {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
}

/* ==========================================================================
   Ayarlar (Mail & SMS) Modalı Stilleri
   ========================================================================== */
.settings-tab-btn {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  transition: all 0.15s ease;
}

.settings-tab-btn.active {
  background: var(--mt-blue) !important;
  color: #ffffff !important;
  border-color: var(--mt-blue) !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.setting-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.setting-check-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.setting-check-item input[type="checkbox"] {
  margin-top: 2px;
  width: 17px;
  height: 17px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--mt-blue);
}

.setting-check-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.setting-check-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   Görev Belgeleri, E-Tablo & Drive Linkleri Stilleri
   ========================================================================== */
.attachment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.15s ease;
}

.attachment-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.attachment-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.attachment-icon-box.sheet {
  background: rgba(16, 185, 129, 0.12);
}

.attachment-icon-box.doc {
  background: rgba(37, 99, 235, 0.12);
}

.attachment-icon-box.drive {
  background: rgba(245, 158, 11, 0.14);
}

.attachment-icon-box.slides {
  background: rgba(249, 115, 22, 0.14);
}

.attachment-icon-box.figma {
  background: rgba(168, 85, 247, 0.12);
}

.attachment-icon-box.notion {
  background: rgba(15, 23, 42, 0.08);
}

.attachment-icon-box.pdf {
  background: rgba(239, 68, 68, 0.12);
}

.attachment-icon-box.link,
.attachment-icon-box.code {
  background: rgba(100, 116, 139, 0.1);
}

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

.attachment-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.attachment-link-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-primary);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.attachment-link-title:hover {
  color: var(--mt-blue);
  text-decoration: underline;
}

.attachment-type-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1.4;
}

.attachment-type-badge.sheet {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.attachment-type-badge.doc {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.attachment-type-badge.drive {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.attachment-type-badge.slides {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.attachment-type-badge.figma {
  background: #faf5ff;
  color: #9333ea;
  border: 1px solid #e9d5ff;
}

.attachment-type-badge.pdf {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.attachment-type-badge.link,
.attachment-type-badge.notion,
.attachment-type-badge.code {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.attachment-url-preview {
  font-size: 0.74rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-icon-box.image {
  background: #fdf2f8;
  color: #db2777;
}

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

.attachment-dropzone {
  border: 2px dashed var(--border-medium, #cbd5e1);
  border-radius: 10px;
  padding: 18px 16px;
  text-align: center;
  background: var(--bg-surface, #ffffff);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.attachment-dropzone:hover,
.attachment-dropzone.dragover {
  border-color: var(--mt-blue, #3b82f6);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-1px);
}

.attachment-dropzone .dropzone-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.attachment-dropzone .dropzone-text {
  font-size: 0.86rem;
  color: var(--text-primary);
}

.attachment-dropzone .dropzone-text strong {
  color: var(--mt-blue, #3b82f6);
  text-decoration: underline;
}

.attachment-dropzone .dropzone-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  max-width: 420px;
}

@keyframes progressIndeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}


/* ==========================================================================
   Kontrol Listesi (Checklist) & Üstü Çizilme (Strikethrough) Stilleri
   ========================================================================== */
.checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.checklist-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.checklist-item.completed {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.checklist-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex: 1;
  margin: 0;
}

.checklist-check-circle {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.checklist-item:hover .checklist-check-circle {
  border-color: var(--mt-blue);
}

.checklist-item.completed .checklist-check-circle {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  transform: scale(1.05);
}

.checklist-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  word-break: break-word;
}

.checklist-item.completed .checklist-text {
  text-decoration: line-through 2px #64748b !important;
  color: #94a3b8 !important;
  opacity: 0.65;
}

.checklist-completed-tag {
  font-size: 0.68rem;
  font-weight: 600;
  background: #dcfce7;
  color: #15803d;
  padding: 2px 7px;
  border-radius: 4px;
  display: none;
}

.checklist-item.completed .checklist-completed-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ============================================================
   ROLES & PRIVILEGES (ADMIN.GOOGLE.COM ROLE MANAGEMENT)
   ============================================================ */
.roles-table {
  width: 100%;
  border-collapse: collapse;
}

.roles-table th,
.roles-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

.roles-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s ease;
}

.roles-table tbody tr:hover {
  background: var(--bg-subtle);
}

.role-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.role-type-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.role-type-system {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.role-type-custom {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Google Admin Console Privilege Tree / Accordion */
.privilege-category-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.privilege-category-card.is-active {
  border-color: rgba(37, 99, 235, 0.4);
}

.privilege-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-subtle);
  cursor: pointer;
  user-select: none;
}

.privilege-category-header:hover {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .privilege-category-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.privilege-category-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.privilege-category-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.privilege-category-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.privilege-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 8px 12px;
  gap: 6px;
  border-top: 1px solid var(--border-light);
}

.privilege-item-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}

.privilege-item-row:hover {
  background: var(--bg-subtle);
}

.privilege-item-row.is-checked {
  background: rgba(37, 99, 235, 0.05);
}

.privilege-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.privilege-item-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.privilege-item-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   Yönetim Paneli - Ayrı Sayfa Görünümü (Full Page View)
   ========================================================================== */
.settings-page-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.settings-page-header-card {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px 24px 16px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.settings-page-content-card {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
  .settings-page-container {
    padding: 12px;
  }
  .settings-page-header-card {
    padding: 16px 14px 14px 14px;
  }
  .settings-page-content-card {
    padding: 16px 12px;
  }
}

/* ==========================================================================
   GENEL DASHBOARD & PORTFÖY GÖRÜNÜMÜ
   ========================================================================== */
.dashboard-page-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.dashboard-header-card {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dashboard-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--mt-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.dashboard-kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}

.dashboard-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.kpi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.kpi-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 2px 0 1px;
}

.kpi-subtext {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.kpi-subinfo {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 16px;
}

/* Sürüklenebilir Dashboard Bileşenleri Grid Sistemi */
.dashboard-widgets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 1024px) {
  .dashboard-widgets-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-card-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0; /* PREVENT GRID BLOWOUT */
}

.dashboard-card-widget.col-span-2 {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  .dashboard-card-widget.col-span-2 {
    grid-column: span 1;
  }
}

.dashboard-card-widget.is-dragging {
  opacity: 0.45;
  border: 2px dashed #3b82f6 !important;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.18);
  transform: scale(0.99);
}

.dashboard-card-widget.drag-over {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.widget-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  border-radius: 5px;
  cursor: grab;
  transition: all 0.15s ease;
  margin-right: 4px;
  flex-shrink: 0;
  user-select: none;
}

.widget-drag-handle:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.widget-drag-handle:active {
  cursor: grabbing;
}

.widget-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.widget-action-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: #cbd5e1;
}

.dashboard-layout-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  margin-bottom: 2px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  min-width: 0;
}

.dashboard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.dashboard-card-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.dashboard-project-progress-row {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dashboard-project-progress-row:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
}

.dashboard-progress-track {
  height: 8px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.dashboard-progress-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Dashboard Proje İlerleme Grafikleri */
.chart-view-toggle {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.chart-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chart-tab-btn:hover {
  color: var(--text-primary);
}

.chart-tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.chart-summary-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  background: var(--bg-subtle);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.chart-summary-pill {
  font-size: 0.73rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chart-summary-pill strong {
  color: var(--text-primary);
}

/* 1. Yatay Çubuk Grafik */
.dashboard-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chart-axis-header {
  display: flex;
  align-items: center;
  padding: 0 8px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border-light);
}

.chart-axis-title {
  width: 140px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.chart-scale-labels {
  flex: 1;
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  position: relative;
}

.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chart-bar-row:hover {
  background: var(--bg-subtle);
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chart-bar-label {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
}

.chart-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.chart-project-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-track-container {
  flex: 1;
  position: relative;
  height: 22px;
  background: var(--bg-subtle);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.chart-gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(148, 163, 184, 0.28);
  pointer-events: none;
  z-index: 1;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.chart-bar-inline-pct {
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.chart-bar-meta {
  width: 125px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0.74rem;
}

.chart-bar-val-badge {
  font-weight: 700;
  color: var(--text-primary);
  min-width: 32px;
  text-align: right;
  font-size: 0.8rem;
}

.chart-bar-tasks {
  color: var(--text-muted);
  white-space: nowrap;
}

.chart-badge-overdue {
  background: #fee2e2;
  color: #ef4444;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* 2. Dikey Sütun Grafik */
.dashboard-column-chart {
  padding-top: 10px;
}

.col-chart-container {
  display: flex;
  height: 250px;
  position: relative;
}

.col-chart-y-axis {
  width: 44px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 42px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
  padding-right: 8px;
}

.col-chart-plot-area {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-bottom: 42px;
  overflow-x: auto;
  border-left: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.col-chart-hline {
  position: absolute;
  left: 0;
  right: 0;
  border-bottom: 1px dashed var(--border-light);
  pointer-events: none;
}

.col-chart-item {
  flex: 1;
  min-width: 38px;
  max-width: 54px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.col-chart-item:hover {
  transform: translateY(-2px);
}

.col-chart-bar-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.col-chart-bar-track {
  position: absolute;
  bottom: 0;
  width: 22px;
  height: 100%;
  background: var(--bg-subtle);
  border-radius: 6px 6px 0 0;
}

.col-chart-bar {
  width: 22px;
  border-radius: 6px 6px 0 0;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.col-chart-val {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
}

.col-chart-label {
  position: absolute;
  bottom: -38px;
  width: 100%;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

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

.dashboard-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
}

.dashboard-table td {
  padding: 12px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.84rem;
}

.dashboard-table tbody tr:hover {
  background: var(--bg-subtle);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.status-done {
  background: #ecfdf5;
  color: #059669;
}

.status-risk {
  background: #fef2f2;
  color: #dc2626;
}

.status-active {
  background: #eff6ff;
  color: #2563eb;
}

.status-neutral {
  background: #f1f5f9;
  color: #64748b;
}

.dashboard-task-item {
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg-surface);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dashboard-task-item:hover {
  border-color: var(--mt-blue);
  background: #f8fafc;
}

.dashboard-sidebar-link.active {
  background: var(--mt-blue) !important;
  color: #ffffff !important;
  border-color: var(--mt-blue) !important;
}

.dashboard-sidebar-link.active svg {
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .dashboard-page-container {
    padding: 12px;
  }
  .dashboard-header-card {
    padding: 14px 14px;
  }
  .dashboard-kpi-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  /* Make the 5th card span 2 columns to center it nicely */
  .dashboard-kpi-grid .dashboard-kpi-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .dashboard-charts-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-card {
    padding: 14px 12px;
  }
  .dashboard-widgets-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-card-widget.col-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  /* Fix chart truncations */
  .chart-axis-title,
  .chart-bar-label {
    width: 80px;
    font-size: 0.72rem;
  }
  .chart-bar-meta {
    width: 75px;
    font-size: 0.65rem;
    gap: 2px;
  }
  .chart-bar-val-badge {
    min-width: 28px;
    font-size: 0.72rem;
  }
  .chart-badge-overdue {
    font-size: 0.62rem;
    padding: 1px 4px;
  }
  .chart-summary-bar {
    gap: 4px;
    padding: 6px 8px;
  }
  .chart-tab-btn {
    padding: 3px 6px;
    font-size: 0.68rem;
  }
  .dashboard-card-header {
    gap: 6px;
  }
  .dashboard-card-title {
    font-size: 0.95rem;
  }
  /* KPI text adjustments */
  .kpi-label {
    font-size: 0.68rem;
  }
  .kpi-val {
    font-size: 1.25rem;
  }
  .kpi-subinfo {
    font-size: 0.68rem;
  }
  /* Fix pie chart overflow */
  #widget_stage_priority > div > div:nth-child(2) {
    flex-direction: column !important;
    gap: 12px !important;
  }
}

/* ========================================================
   KURUMSAL GİRİŞ (LOGIN) EKRANI & OTURUM STILLERI (AÇIK TEMA)
   ======================================================== */
.login-screen-wrapper {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F4F6FB;
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F6 50%, #F1F5F9 100%);
  padding: 24px;
  overflow: hidden;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 1. Arka Plan Dekoratif Izgara ve Yumuşak Işıklar */
.login-bg-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.login-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.25) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
}

.login-bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}

.login-bg-circle.circle-1 {
  top: -15%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 650px;
  max-height: 650px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
}

.login-bg-circle.circle-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.08), transparent 70%);
}

/* 2. Dashboard Verileriyle Uyumlu Hareketli Mikro Kartlar (Floating Widgets) */
.login-floating-widgets {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  max-width: 1400px;
  margin: 0 auto;
}

.floating-widget {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.04);
  color: #0F172A;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.floating-widget:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 22px 45px -8px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(37, 99, 235, 0.2);
}

/* Konumlandırmalar & Animasyonlar */
.widget-top-left {
  top: 14%;
  left: 6%;
  width: 250px;
  animation: floatWidgetA 6s ease-in-out infinite;
}

.widget-bottom-left {
  bottom: 12%;
  left: 7%;
  width: 280px;
  animation: floatWidgetB 7s ease-in-out infinite 0.5s;
}

.widget-top-right {
  top: 15%;
  right: 6%;
  width: 270px;
  animation: floatWidgetB 6.5s ease-in-out infinite 1s;
}

.widget-bottom-right {
  bottom: 11%;
  right: 7%;
  width: 290px;
  animation: floatWidgetA 7.5s ease-in-out infinite 1.5s;
}

@keyframes floatWidgetA {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes floatWidgetB {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(12px); }
}

/* Mikro Kart Bileşen Detayları */
.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.widget-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-icon.icon-blue {
  background: #EFF6FF;
  color: #2563EB;
}

.widget-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.widget-badge.badge-green {
  background: #ECFDF5;
  color: #059669;
}

.widget-badge.badge-coral {
  background: #FFF1F2;
  color: #E11D48;
}

.widget-body {
  margin-bottom: 8px;
}

.widget-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.widget-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
}

.widget-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94A3B8;
}

.widget-footer-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  color: #64748B;
  padding-top: 6px;
  border-top: 1px solid #F1F5F9;
}

.widget-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.widget-dot.dot-green {
  background: #10B981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.widget-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 12px;
}

.widget-progress-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 4px;
}

.widget-pbar {
  width: 100%;
  height: 6px;
  background: #F1F5F9;
  border-radius: 99px;
  overflow: hidden;
}

.widget-pfill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}

.widget-stage-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stage-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  background: #F8FAFC;
  color: #334155;
  border: 1px solid #F1F5F9;
}

.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.widget-task-snippet {
  background: #F8FAFC;
  border-radius: 9px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-left: 3px solid #2563EB;
}

.task-snip-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 2px;
}

.task-snip-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: #64748B;
}

.widget-avatars-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.widget-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

.widget-avatar-more {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748B;
  margin-left: 6px;
}

/* 3. Merkezi Giriş Kartı (White Clean Container) */
.login-card-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.login-card {
  position: relative;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 22px;
  padding: 38px 34px;
  box-shadow: 
    0 20px 45px -12px rgba(15, 23, 42, 0.08),
    0 4px 16px -2px rgba(15, 23, 42, 0.04),
    0 0 1px 1px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
  animation: loginCardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginCardFadeIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo & Marka Başlığı */
.login-brand-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.login-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-brand-logo img {
  height: 38px;
  width: auto;
}

.login-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #C2410C; /* Karakteristik Turuncu/Mercan */
  letter-spacing: -0.01em;
}

.login-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF6600;
  box-shadow: 0 0 6px rgba(255, 102, 0, 0.6);
  flex-shrink: 0;
}

.login-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-title {
  font-size: 1.48rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
  letter-spacing: -0.025em;
}

.login-subtitle {
  font-size: 0.86rem;
  color: #64748B;
  margin: 0;
  font-weight: 500;
}

/* Form Elemanları */
.login-input-group {
  margin-bottom: 18px;
}

.login-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.login-input-label {
  display: block;
  font-size: 0.81rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.login-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.login-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 500;
  color: #0F172A;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 11px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.login-input::placeholder {
  color: #94A3B8;
}

.login-input:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.login-input:focus {
  background: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.login-input:focus + .login-input-icon,
.login-input-wrapper:focus-within .login-input-icon {
  color: #2563EB;
}

.login-pwd-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.login-pwd-toggle:hover {
  color: #0F172A;
  background: #F1F5F9;
}

/* Seçenekler (Beni Hatırla & Şifremi Unuttum) */
.login-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 0.82rem;
}

.login-remember-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #475569;
  font-weight: 500;
  user-select: none;
}

.login-remember-me input {
  accent-color: #2563EB;
  width: 16px;
  height: 16px;
  cursor: pointer;
  border-radius: 4px;
}

.login-forgot-link {
  color: #2563EB;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.login-forgot-link:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

/* Giriş Butonu */
.login-btn-submit {
  width: 100%;
  padding: 13px;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-btn-submit:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.login-btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* SSO Bölücü */
.login-divider {
  position: relative;
  text-align: center;
  margin: 24px 0 16px 0;
}

.login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #E2E8F0;
  z-index: 1;
}

.login-divider span {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  padding: 0 12px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #94A3B8;
  text-transform: lowercase;
}

/* SSO Butonları */
.login-sso-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.login-sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.login-sso-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.login-footer-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748B;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}

/* Alert Bildirimleri */
.login-alert {
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 0.83rem;
  margin-bottom: 18px;
  display: none;
  line-height: 1.4;
  font-weight: 500;
}

.login-alert.danger {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
}

.login-alert.success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #059669;
}

/* Duyarlı Tasarım (Responsive Kurallar) */
@media (max-width: 1200px) {
  .widget-top-left { left: 2%; width: 220px; }
  .widget-bottom-left { left: 2%; width: 240px; }
  .widget-top-right { right: 2%; width: 230px; }
  .widget-bottom-right { right: 2%; width: 250px; }
}

@media (max-width: 1024px) {
  .login-floating-widgets {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .login-screen-wrapper {
    padding: 16px;
  }

  .login-card {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .login-title {
    font-size: 1.3rem;
  }

  .login-sso-buttons {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


