:root {
  --bg-main: #0c0f17;
  --bg-panel: rgba(22, 28, 45, 0.85);
  --bg-card: #151a2d;
  --bg-card-hover: #1c233c;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-dim: rgba(59, 130, 246, 0.15);
  --success: #10b981;
  --success-dim: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --warning-dim: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;
  --danger-dim: rgba(239, 68, 68, 0.15);
  --purple: #8b5cf6;
  --purple-dim: rgba(139, 92, 246, 0.15);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6, 182, 212, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Açık Tema Değişkenleri (Light Theme) */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-panel: rgba(255, 255, 255, 0.95);
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: rgba(0, 0, 0, 0.1);
  --border-focus: #2563eb;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dim: rgba(37, 99, 235, 0.12);
  --success: #059669;
  --success-dim: rgba(5, 150, 105, 0.12);
  --warning: #d97706;
  --warning-dim: rgba(217, 119, 6, 0.12);
  --danger: #dc2626;
  --danger-dim: rgba(220, 38, 38, 0.12);
  --purple: #7c3aed;
  --purple-dim: rgba(124, 58, 237, 0.12);
  --cyan: #0891b2;
  --cyan-dim: rgba(8, 145, 178, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] body.login-body {
  background: radial-gradient(circle at center, #f1f5f9 0%, #e2e8f0 100%) !important;
}

[data-theme="light"] .ui-error-detail-box {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .ui-modal-overlay {
  background: rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .notification-panel {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .notification-item-title {
  color: var(--text-main);
}

[data-theme="light"] .progress-bar-bg {
  background: rgba(0, 0, 0, 0.08);
}

/* Dil ve Tema Seçici Segment Butonları */
.lang-switcher, .theme-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.btn-lang-toggle, .btn-theme-toggle {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}

.btn-lang-toggle:hover, .btn-theme-toggle:hover {
  color: var(--text-main);
  background: var(--bg-card-hover);
  text-decoration: none;
}

.btn-lang-toggle.active, .btn-theme-toggle.active {
  background: var(--primary);
  color: #ffffff;
}


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

body {
  font-family: var(--font-family);
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header */
.app-header {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}
.brand svg {
  color: var(--primary);
}
.brand span {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  text-decoration: none;
}
.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  text-decoration: none;
}
.btn-danger {
  background: var(--danger-dim);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
  text-decoration: none;
}
.btn-sm {
  padding: 4px 8px;
  font-size: 0.775rem;
}
.btn-icon {
  padding: 6px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
}
.btn-icon:hover {
  background: var(--bg-card);
  color: var(--text-main);
}

/* Ana Düzen (Sidebar + İçerik) */
.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.sidebar {
  width: 270px;
  background: var(--bg-panel);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 16px 0;
}

.sidebar-section {
  margin-bottom: 20px;
}

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

.sidebar-nav {
  list-style: none;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}
.sidebar-item:hover {
  background: var(--bg-card);
  color: var(--text-main);
}
.sidebar-item.active {
  background: var(--primary-dim);
  border-left-color: var(--primary);
  color: var(--text-main);
  font-weight: 600;
}
.sidebar-item .item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-item .count-badge {
  font-size: 0.75rem;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}
.sidebar-item.active .count-badge {
  background: var(--primary);
  color: #fff;
}

/* Klasör Ağacı */
.folder-tree {
  list-style: none;
}
.folder-item {
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}
.folder-item:hover {
  background: var(--bg-card);
  color: var(--text-main);
}
.folder-item.active {
  background: var(--primary-dim);
  color: var(--text-main);
  font-weight: 600;
}
.folder-item .folder-name {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Ana İçerik Alanı */
.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px 24px;
}

/* İlerleme Paneli */
.progress-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.2s ease;
}
.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.progress-title {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}
.progress-stats {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.progress-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Kontrol Araç Çubuğu (Top Bar) */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
}
.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px 8px 36px;
  color: var(--text-main);
  font-size: 0.875rem;
  outline: none;
}
.search-box input:focus {
  border-color: var(--border-focus);
}
.search-box svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 8px 12px;
  font-size: 0.875rem;
  outline: none;
  cursor: pointer;
}
select:focus {
  border-color: var(--border-focus);
}

/* Toplu İşlemler Çubuğu */
.bulk-bar {
  background: var(--primary-dim);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bulk-actions {
  display: flex;
  gap: 8px;
}

/* Tablo */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

thead th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.1s ease;
}
tbody tr:hover {
  background: var(--bg-card-hover);
}

td {
  padding: 10px 14px;
  vertical-align: middle;
}

.col-checkbox {
  width: 36px;
  text-align: center;
}
.col-actions {
  width: 140px;
  text-align: right;
}

.bookmark-title-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 380px;
}
.bookmark-title {
  color: var(--text-main);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bookmark-url {
  color: var(--text-dim);
  font-size: 0.775rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Durum Rozetleri (Badges) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-ok {
  background: var(--success-dim);
  color: var(--success);
}
.badge-redirect {
  background: var(--warning-dim);
  color: var(--warning);
}
.badge-restricted {
  background: var(--purple-dim);
  color: var(--purple);
}
.badge-broken {
  background: var(--danger-dim);
  color: var(--danger);
}
.badge-local {
  background: var(--cyan-dim);
  color: var(--cyan);
}
.badge-unchecked {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

.redirect-notice {
  font-size: 0.75rem;
  color: var(--warning);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

/* Sayfalama */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.page-controls {
  display: flex;
  gap: 6px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-overlay.hidden {
  display: none;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 8px 12px;
  font-size: 0.875rem;
  outline: none;
}
.form-control:focus {
  border-color: var(--border-focus);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* Güvenlik Sayfası Stilleri */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-card .stat-label {
  font-size: 0.775rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}
.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

.security-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}
.security-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.device-card {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.device-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.device-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.device-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Animasyon */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Merkezi Bildirim ve Tost Sistemi (MailRead / graph-sync Mimarisi)
   ========================================================================== */

.ui-toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(400px, calc(100vw - 48px));
}

.ui-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 11px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.45;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.ui-toast.visible {
  transform: translateX(0);
  opacity: 1;
}

.ui-toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.ui-toast-body {
  flex: 1;
  min-width: 0;
}

.ui-toast-title {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.ui-toast-message {
  display: block;
  word-wrap: break-word;
  color: #cbd5e1;
}

.ui-toast-close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ui-toast-close:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #f8fafc;
}

.ui-toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.5px;
  width: 100%;
  transform-origin: left;
  animation: ui-toast-countdown linear forwards;
}

@keyframes ui-toast-countdown {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.ui-toast-success { border-color: rgba(74, 222, 128, 0.45); }
.ui-toast-success .ui-toast-icon { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.ui-toast-success .ui-toast-progress { background: #4ade80; }

.ui-toast-error { border-color: rgba(248, 113, 113, 0.5); }
.ui-toast-error .ui-toast-icon { background: rgba(248, 113, 113, 0.2); color: #f87171; }
.ui-toast-error .ui-toast-progress { background: #f87171; }

.ui-toast-warning { border-color: rgba(251, 191, 36, 0.45); }
.ui-toast-warning .ui-toast-icon { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.ui-toast-warning .ui-toast-progress { background: #fbbf24; }

.ui-toast-info { border-color: rgba(56, 189, 248, 0.45); }
.ui-toast-info .ui-toast-icon { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.ui-toast-info .ui-toast-progress { background: #38bdf8; }

/* -------------------------------------------------------------
   Bildirim Merkezi (Notification Center)
   ------------------------------------------------------------- */
.notification-center {
  position: relative;
  z-index: 50;
}

.notification-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.notification-toggle svg {
  width: 17px;
  height: 17px;
}

.notification-toggle:hover,
.notification-toggle[aria-expanded="true"] {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(2, 132, 199, 0.15);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg-header);
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px 11px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.notification-panel-header strong {
  display: block;
  font-size: 13px;
  color: #f8fafc;
}

.notification-summary {
  display: block;
  margin-top: 2px;
  color: var(--text-dim);
  font-size: 11px;
}

.notification-clear {
  border: 0;
  background: transparent;
  color: #38bdf8;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}

.notification-clear:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
}

.notification-clear:disabled {
  opacity: 0.45;
  cursor: default;
}

.notification-list {
  max-height: min(420px, calc(100vh - 160px));
  overflow-y: auto;
}

.notification-empty {
  padding: 28px 16px;
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
}

.notification-item {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 11px 34px 11px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item.unread {
  background: rgba(14, 165, 233, 0.08);
  color: #e0f2fe;
}

.notification-item-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.notification-item-success .notification-item-icon { background: rgba(74, 222, 128, 0.18); color: #4ade80; }
.notification-item-warning .notification-item-icon { background: rgba(251, 191, 36, 0.18); color: #fbbf24; }
.notification-item-error .notification-item-icon { background: rgba(248, 113, 113, 0.18); color: #f87171; }

.notification-item-content {
  min-width: 0;
  flex: 1;
}

.notification-item-title {
  display: block;
  margin-bottom: 2px;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
}

.notification-item-message {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.4;
}

.notification-item-time {
  display: block;
  margin-top: 3px;
  color: var(--text-dim);
  font-size: 10px;
}

.notification-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.notification-item-remove:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #fff;
}

/* -------------------------------------------------------------
   Sayfa İçi Modal Dialoglar (UI.modal / UI.confirm / UI.alert)
   ------------------------------------------------------------- */
.ui-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ui-modal-overlay.visible {
  opacity: 1;
}

.ui-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: min(440px, calc(100vw - 32px));
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ui-modal-overlay.visible .ui-modal {
  transform: scale(1);
}

.ui-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.ui-modal-message {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
}

.ui-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ui-modal-input-wrap {
  margin-bottom: 20px;
}
.ui-modal-input-wrap .form-control {
  margin-top: 8px;
}

/* Toast Detay Butonu */
.ui-toast-detail-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 9px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: fit-content;
}
.ui-toast-detail-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Hata Detay Modalı */
.ui-error-detail-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.ui-detail-row {
  display: flex;
  margin-bottom: 8px;
}
.ui-detail-row:last-child {
  margin-bottom: 0;
}
.ui-detail-label {
  width: 95px;
  flex-shrink: 0;
  color: var(--text-dim);
  font-weight: 500;
}
.ui-detail-val {
  flex: 1;
  color: var(--text-main);
  word-break: break-word;
}

/* İşlem devam ederken buton pasifleştirme & çifte tıklama önleme */
.btn:disabled, .btn[aria-busy="true"], .btn-busy {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

