/* ==========================================================================
   IIS Domain & Event Hub - Design System & Modern CSS
   ========================================================================== */

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-main: #0b0f19;
  --bg-surface: rgba(18, 24, 38, 0.75);
  --bg-surface-solid: #121826;
  --bg-card: rgba(23, 31, 51, 0.65);
  --bg-card-hover: rgba(30, 41, 67, 0.85);
  --bg-glass-border: rgba(255, 255, 255, 0.08);
  --bg-glass-border-hover: rgba(59, 130, 246, 0.35);

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

  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-primary-glow: rgba(59, 130, 246, 0.25);

  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.12);
  --color-success-border: rgba(16, 185, 129, 0.28);

  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.12);
  --color-warning-border: rgba(245, 158, 11, 0.28);

  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.12);
  --color-danger-border: rgba(239, 68, 68, 0.28);

  --color-info: #06b6d4;
  --color-info-bg: rgba(6, 182, 212, 0.12);

  --color-purple: #a855f7;
  --color-purple-bg: rgba(168, 85, 247, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --top-nav-height: 64px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 35px var(--color-primary-glow);

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-surface-solid: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-glass-border: rgba(226, 232, 240, 0.9);
  --bg-glass-border-hover: rgba(59, 130, 246, 0.5);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Ambient Glow Backgrounds */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
  top: -150px;
  left: 10%;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
  bottom: -200px;
  right: 5%;
}

/* ==========================================
   1. GİRİŞ EKRANI (LOGIN SCREEN) - ULTRA MODERN
   ========================================== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 10;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

[data-theme="light"] .login-wrapper {
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

.login-glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
  animation: floatSlow 12s ease-in-out infinite alternate;
}

.login-glow-circle.circle-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45) 0%, rgba(59, 130, 246, 0.1) 70%, transparent 100%);
  top: 10%;
  left: 15%;
}

.login-glow-circle.circle-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.35) 0%, rgba(99, 102, 241, 0.1) 70%, transparent 100%);
  bottom: 10%;
  right: 15%;
  animation-duration: 15s;
  animation-direction: alternate-reverse;
}

@keyframes floatSlow {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-25px) scale(1.06); }
  100% { transform: translateY(20px) scale(0.96); }
}

.premium-login-card {
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 10;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 40px 36px 32px;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.75), 0 0 50px -10px rgba(59, 130, 246, 0.22);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  animation: modalScale 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color var(--transition-normal);
}

[data-theme="light"] .premium-login-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.15), 0 0 40px -10px rgba(59, 130, 246, 0.1);
}

.login-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

[data-theme="light"] .badge-chip {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

.badge-chip.ver {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

[data-theme="light"] .badge-chip.ver {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.chip-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

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

.brand-icon.hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
  color: #ffffff;
}

.brand-icon.hero-icon svg {
  width: 32px;
  height: 32px;
  z-index: 2;
}

.icon-ring {
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 1.5px dashed rgba(147, 197, 253, 0.4);
  animation: spinSlow 30s linear infinite;
  pointer-events: none;
}

@keyframes spinSlow {
  100% { transform: rotate(360deg); }
}

.login-title {
  font-size: 1.68rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 40%, #bfdbfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
}

[data-theme="light"] .login-title {
  background: linear-gradient(135deg, #0f172a 40%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 400;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.floating-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
  display: block;
  letter-spacing: 0.01em;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-with-icon .field-icon {
  position: absolute;
  left: 14px;
  width: 19px;
  height: 19px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.input-stylish {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 44px;
  background: rgba(15, 23, 42, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 0.94rem;
  color: #f8fafc;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .input-stylish {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.input-stylish::placeholder {
  color: #64748b;
  font-weight: 400;
}

.input-stylish:focus {
  background: rgba(15, 23, 42, 0.9);
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.22);
  outline: none;
}

[data-theme="light"] .input-stylish:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.input-with-icon:focus-within .field-icon {
  color: #3b82f6;
}

.btn-toggle-pwd {
  position: absolute;
  right: 10px;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent;
  border: none;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 10 !important;
  user-select: none;
  pointer-events: auto !important;
}

.btn-toggle-pwd:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-50%) scale(1.1) !important;
  color: #ffffff;
}

[data-theme="light"] .btn-toggle-pwd:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Tarayıcı varsayılan şifre butonlarını gizle */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none !important;
}

.btn-hero {
  height: 50px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #4f46e5 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.45);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-hero:hover::before {
  left: 100%;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(37, 99, 235, 0.6);
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #4338ca 100%);
}

.btn-hero:active {
  transform: translateY(0);
}

.auth-error-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Tek Tıkla Yönetici Giriş Kartı */
.quick-admin-box {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px dashed rgba(96, 165, 250, 0.4);
  border-radius: 12px;
  padding: 13px 15px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

[data-theme="light"] .quick-admin-box {
  background: #f0f7ff;
  border: 1px dashed #93c5fd;
}

.quick-admin-box:hover {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(59, 130, 246, 0.22) 100%);
  border-color: #60a5fa;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.25);
}

[data-theme="light"] .quick-admin-box:hover {
  background: #e0f2fe;
  border-color: #3b82f6;
}

.quick-admin-icon {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(234, 179, 8, 0.4));
}

.quick-admin-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-admin-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #bfdbfe;
}

[data-theme="light"] .quick-admin-text strong {
  color: #1e40af;
}

.quick-admin-text span {
  font-size: 0.77rem;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

[data-theme="light"] .quick-admin-text span {
  color: #64748b;
}

.quick-admin-arrow {
  font-size: 1.25rem;
  color: #60a5fa;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.quick-admin-box:hover .quick-admin-arrow {
  transform: translateX(4px);
  color: #93c5fd;
}

.login-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .login-footer-meta {
  border-top-color: #e2e8f0;
}

.login-footer-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
}

[data-theme="light"] .login-footer-meta .meta-item {
  color: #64748b;
}

/* ==========================================
   2. TOP NAVIGATION
   ========================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bg-glass-border);
  padding: 12px 0;
}

.nav-container {
  max-width: 1650px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
}

.pulse-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background-color: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-success);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
  100% { transform: scale(0.9); opacity: 1; }
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .brand-title {
  background: linear-gradient(90deg, #0f172a, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-server {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-os {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-iis {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-count {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
}

/* Navigation Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions .btn,
#btnExportAllCsv {
  height: 36px !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
}

/* User Menu Pill */
.user-menu-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-glass-border);
  padding: 5px 12px 5px 6px;
  border-radius: var(--radius-full);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.user-role-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: #a855f7;
}

.btn-logout {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.btn-logout:hover {
  color: var(--color-danger);
}

.btn-logout svg {
  width: 16px;
  height: 16px;
}

/* Session Timer Pill (30 Dakika Güvenlik Süresi) */
.session-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: #93c5fd;
  transition: all 0.2s ease;
  user-select: none;
}

.session-timer-pill .timer-icon {
  width: 14px;
  height: 14px;
  color: #60a5fa;
}

.session-timer-pill.timer-warning {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.session-timer-pill.timer-warning .timer-icon {
  color: #fbbf24;
}

.session-timer-pill.timer-danger {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.6);
  color: #f87171;
  animation: notifPulse 1.5s infinite;
}

.session-timer-pill.timer-danger .timer-icon {
  color: #f87171;
}

[data-theme="light"] .session-timer-pill {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

[data-theme="light"] .session-timer-pill .timer-icon {
  color: #2563eb;
}

[data-theme="light"] .session-timer-pill.timer-warning {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
}

[data-theme="light"] .session-timer-pill.timer-danger {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* Admin Button */
.btn-admin {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #ffffff;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.btn-admin:hover {
  background: linear-gradient(135deg, #9333ea, #a855f7);
  transform: translateY(-1px);
}

/* Standard Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--bg-glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.btn-danger-ghost {
  background: transparent;
  color: var(--color-danger);
  border: 1px solid transparent;
}

.btn-danger-ghost:hover {
  background: var(--color-danger-bg);
  border-color: var(--color-danger-border);
}

.btn-icon-only {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon-only:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn-icon-only svg {
  width: 18px;
  height: 18px;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.sync-icon.rotating {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Theme Toggle */
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

/* Main Content */
.main-content {
  position: relative;
  z-index: 1;
  padding: 28px 0 70px;
}

.content-container {
  max-width: 1650px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Panel Containers: Active & Deleted Views with clean vertical rhythm */
#activeDomainsView,
#deletedDomainsView {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
}

/* Notice Bar */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: #93c5fd;
  margin-bottom: 4px;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 6px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 145px;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: var(--bg-glass-border-hover);
  box-shadow: var(--shadow-md);
}

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

.metric-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-icon-wrap svg {
  width: 19px;
  height: 19px;
}

.icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.metric-value {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 4px;
}

.metric-divider {
  color: var(--text-muted);
  font-size: 1.5rem;
  font-weight: 300;
}

.metric-sub-val {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.metric-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-active {
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

/* Filter Panel */
.filter-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-group input {
  width: 100%;
  padding: 11px 40px;
  font-size: 0.92rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

[data-theme="light"] .search-input-group input {
  background: rgba(255, 255, 255, 0.8);
}

.search-input-group input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.btn-clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.filter-controls {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.select-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 160px;
}

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

.select-wrapper select {
  padding: 8px 10px;
  font-size: 0.84rem;
  background-color: #151d2f;
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  color: #f8fafc;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.select-wrapper select option,
.select-wrapper select optgroup {
  background-color: #151d2f;
  color: #f8fafc;
  padding: 8px 12px;
}

[data-theme="light"] .select-wrapper select {
  background-color: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] .select-wrapper select option,
[data-theme="light"] .select-wrapper select optgroup {
  background-color: #ffffff;
  color: #0f172a;
}

.select-wrapper select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.checkbox-wrapper-filter {
  display: flex;
  align-items: center;
  padding-bottom: 8px;
}

.checkbox-label-sm {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Month Filter Input */
.filter-month-input {
  padding: 7px 10px;
  font-size: 0.84rem;
  background-color: #151d2f;
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  color: #f8fafc;
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

[data-theme="light"] .filter-month-input {
  background-color: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

.filter-month-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

/* Reset Filter Button Alignment & Crisp Styling */
.filter-reset-wrapper {
  display: flex;
  align-items: center;
  padding-bottom: 2px;
}

.btn-reset-filters {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-reset-filters:hover {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.12);
  transform: translateY(-1px);
}

/* Sync Header & Indicator */
.sync-header-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
}

.sync-indicator.idle {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.sync-indicator.idle .sync-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.sync-indicator.syncing {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #60a5fa;
  animation: syncBadgePulse 1.5s infinite;
}

.sync-indicator.syncing .sync-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 10px #3b82f6;
  animation: syncPulseDot 1s infinite alternate;
}

@keyframes syncBadgePulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

@keyframes syncPulseDot {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; }
}

/* Service Details Card & Rows */
.service-details-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 12px 0 16px;
}

[data-theme="light"] .service-details-card {
  background: rgba(241, 245, 249, 0.7);
  border-color: #cbd5e1;
}

.service-details-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--bg-glass-border);
}

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

.service-details-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.service-rows-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.service-row.active {
  background: rgba(59, 130, 246, 0.07);
  border-color: rgba(59, 130, 246, 0.3);
}

.service-toggle-col {
  flex: 0 0 190px;
}

.service-price-col {
  flex: 1 1 120px;
}

.service-currency-col {
  flex: 0 0 110px;
}

.service-price-input:disabled,
.service-currency-select:disabled {
  opacity: 0.45;
  background-color: rgba(0, 0, 0, 0.2) !important;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .service-price-input:disabled,
[data-theme="light"] .service-currency-select:disabled {
  background-color: #f1f5f9 !important;
}

/* Disk Size Badge in Details */
.disk-size-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Table Section */
.table-container {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

@media (min-width: 993px) {
  .table-container {
    overflow: visible;
  }
  .table-scroll-wrapper {
    overflow: visible;
  }
}

@media (max-width: 992px) {
  .table-container {
    overflow: hidden;
  }
  .table-scroll-wrapper {
    overflow-x: auto;
  }
}

.table-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--bg-glass-border);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.table-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-right: 10px;
}

.last-sync-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.table-scroll-wrapper {
  scrollbar-width: thin;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.data-table th {
  padding: 8px 8px;
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: #0d1322;
  border-bottom: 1px solid var(--bg-glass-border);
  white-space: nowrap;
}

[data-theme="light"] .data-table th {
  background: #f1f5f9;
  border-bottom-color: #cbd5e1;
}

/* YALNIZCA Ana Sayfa Tabloları Sticky Başlığa Sahip Olur */
#domainsTable th,
#deletedDomainsTable th {
  position: sticky;
  top: var(--top-nav-height, 65px);
  z-index: 25;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Sayfa aşağı kayıp durumu sticky'e dönünce belirgin renk ve stil değişimi */
#domainsTable thead.is-sticky th,
#deletedDomainsTable thead.is-sticky th {
  background: #1e293b !important;
  color: #ffffff !important;
  border-bottom: 2px solid #3b82f6 !important;
  box-shadow: 0 8px 20px -2px rgba(0, 0, 0, 0.75), 0 2px 6px rgba(59, 130, 246, 0.25);
}

[data-theme="light"] #domainsTable thead.is-sticky th,
[data-theme="light"] #deletedDomainsTable thead.is-sticky th {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-bottom: 2px solid #2563eb !important;
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.15);
}

/* Modal ve Yönetici Paneli Tablolarında Sticky Başlık Kesinlikle Devre Dışı */
.modal-box .data-table th,
.admin-table-col .data-table th,
#adminModal .data-table th,
#detailsModal .data-table th {
  position: static !important;
  top: auto !important;
  box-shadow: none !important;
  z-index: auto !important;
}

.data-table td {
  padding: 6px 8px;
  font-size: 0.77rem;
  border-bottom: 1px solid var(--bg-glass-border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
  background-color: var(--bg-card-hover);
}

/* ID & Server Badges */
.col-display-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-block;
  white-space: nowrap;
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.col-display-id.ext-f {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.25);
}

.col-display-id.ext-l {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

.server-badge {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-block;
  white-space: nowrap;
}

.server-radore { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.server-frankfurt { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.server-linux { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.server-other { background: rgba(148, 163, 184, 0.15); color: var(--text-secondary); }

/* Compact Action Buttons */
.action-buttons-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  white-space: nowrap;
}

.btn-action-xs {
  padding: 3px 8px !important;
  font-size: 0.73rem !important;
  font-weight: 600 !important;
  height: 26px !important;
  line-height: 1 !important;
  border-radius: 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  white-space: nowrap !important;
  cursor: pointer;
}

/* Domain Cell */
.domain-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.domain-name-link {
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.domain-name-link:hover {
  color: var(--color-primary);
}

.protocol-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 4px;
}

.tag-https {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-weight: 600;
}

.tag-http {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
}

.site-subtext {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.company-name {
  font-weight: 600;
  color: var(--text-primary);
}

/* Site Types Badges */
.type-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.type-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-fast);
}

[data-theme="light"] .type-pill {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

/* 1. Firma: Açık Mavi (Sky Blue / Light Azure) */
.type-pill.type-firma {
  background: rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.2);
}
[data-theme="light"] .type-pill.type-firma {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

/* 2. Yönetim Paneli: Açık Kırmızı (Soft Red / Light Coral) */
.type-pill.type-yonetim {
  background: rgba(248, 113, 113, 0.22);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.55);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}
[data-theme="light"] .type-pill.type-yonetim {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

/* 3. Abstract Sistem: Lacivert / İndigo (Deep Indigo) */
.type-pill.type-abstract {
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.5);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
[data-theme="light"] .type-pill.type-abstract {
  background: #e0e7ff;
  color: #4338ca;
  border-color: #a5b4fc;
}

/* 4. Digicon: Turuncu (Orange) */
.type-pill.type-digicon {
  background: rgba(234, 88, 12, 0.25);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.55);
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}
[data-theme="light"] .type-pill.type-digicon {
  background: #ffedd5;
  color: #c2410c;
  border-color: #fed7aa;
}

/* 5. Kayıt Formu: Zümrüt Yeşili (Emerald Green) */
.type-pill.type-kayit {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}
[data-theme="light"] .type-pill.type-kayit {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

/* 6. Webinar: Turkuvaz / Teal (Cyan) */
.type-pill.type-webinar {
  background: rgba(20, 184, 166, 0.22);
  color: #5eead4;
  border: 1px solid rgba(20, 184, 166, 0.55);
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25);
}
[data-theme="light"] .type-pill.type-webinar {
  background: #ccfbf1;
  color: #0f766e;
  border-color: #5eead4;
}

/* 7. Dernek: Gül Pembesi (Rose / Pink) */
.type-pill.type-dernek {
  background: rgba(244, 63, 94, 0.22);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.55);
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.25);
}
[data-theme="light"] .type-pill.type-dernek {
  background: #ffe4e6;
  color: #be123c;
  border-color: #fda4af;
}

/* 8. Etkinlik: Mor / Menekşe (Purple / Violet) */
.type-pill.type-event {
  background: rgba(168, 85, 247, 0.24);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.2);
}
[data-theme="light"] .type-pill.type-event {
  background: #f3e8ff;
  color: #7e22ce;
  border-color: #d8b4fe;
}

/* 9. Bilimsel Program: Çelik Mavisi / Slate */
.type-pill.type-bilimsel {
  background: rgba(100, 116, 139, 0.28);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 2px 8px rgba(100, 116, 139, 0.2);
}
[data-theme="light"] .type-pill.type-bilimsel {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

/* 10. E-Poster: Fuşya / Canlı Magenta */
.type-pill.type-eposter {
  background: rgba(217, 70, 239, 0.22);
  color: #f0abfc;
  border: 1px solid rgba(217, 70, 239, 0.5);
  box-shadow: 0 2px 8px rgba(217, 70, 239, 0.2);
}
[data-theme="light"] .type-pill.type-eposter {
  background: #fae8ff;
  color: #a21caf;
  border-color: #f0abfc;
}

/* 11. Sanal Kongre: Altın Sarısı (Gold / Yellow) */
.type-pill.type-sanalkongre {
  background: rgba(234, 179, 8, 0.22);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.55);
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.2);
}
[data-theme="light"] .type-pill.type-sanalkongre {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde047;
}

/* 12. Sınav Programı: Limon Yeşili (Lime) */
.type-pill.type-sinav {
  background: rgba(132, 204, 22, 0.22);
  color: #bef264;
  border: 1px solid rgba(132, 204, 22, 0.5);
  box-shadow: 0 2px 8px rgba(132, 204, 22, 0.2);
}
[data-theme="light"] .type-pill.type-sinav {
  background: #ecfccb;
  color: #3f6212;
  border-color: #bef264;
}

/* 13. Arşiv: Sıcak Amber / Bronz */
.type-pill.type-arsiv {
  background: rgba(180, 83, 9, 0.25);
  color: #fcd34d;
  border: 1px solid rgba(217, 119, 6, 0.55);
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.2);
}
[data-theme="light"] .type-pill.type-arsiv {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

/* 14. Demo: Açık Gümüş / Nötr */
.type-pill.type-demo {
  background: rgba(156, 163, 175, 0.22);
  color: #e5e7eb;
  border: 1px solid rgba(156, 163, 175, 0.5);
  box-shadow: 0 2px 8px rgba(156, 163, 175, 0.2);
}
[data-theme="light"] .type-pill.type-demo {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

/* 15. Depo: Grafit / Slate Dark */
.type-pill.type-depo {
  background: rgba(71, 85, 105, 0.35);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.5);
  box-shadow: 0 2px 8px rgba(71, 85, 105, 0.2);
}
[data-theme="light"] .type-pill.type-depo {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #94a3b8;
}

/* 16. Link Yönlendirme: Kobalt Mavi (Electric Blue) */
.type-pill.type-link {
  background: rgba(37, 99, 235, 0.24);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.55);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}
[data-theme="light"] .type-pill.type-link {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

/* 17. Tanıtım: Şeftali / Mercan (Peach / Coral) */
.type-pill.type-tanitim {
  background: rgba(251, 146, 60, 0.22);
  color: #fed7aa;
  border: 1px solid rgba(251, 146, 60, 0.5);
  box-shadow: 0 2px 8px rgba(251, 146, 60, 0.2);
}
[data-theme="light"] .type-pill.type-tanitim {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fed7aa;
}

/* 18. Yayın: Crimson Kırmızımsı */
.type-pill.type-yayin {
  background: rgba(225, 29, 72, 0.22);
  color: #fda4af;
  border: 1px solid rgba(225, 29, 72, 0.5);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.2);
}
[data-theme="light"] .type-pill.type-yayin {
  background: #ffe4e6;
  color: #9f1239;
  border-color: #fda4af;
}

/* 19. Özel Program: Lavanta / Açık Lila */
.type-pill.type-ozel {
  background: rgba(147, 51, 234, 0.22);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.2);
}
[data-theme="light"] .type-pill.type-ozel {
  background: #f3e8ff;
  color: #6b21a8;
  border-color: #d8b4fe;
}

/* 20. Şahsi: Nane Yeşili (Mint) */
.type-pill.type-sahsi {
  background: rgba(52, 211, 153, 0.22);
  color: #a7f3d0;
  border: 1px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 2px 8px rgba(52, 211, 153, 0.2);
}
[data-theme="light"] .type-pill.type-sahsi {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

/* Genel Varsayılan Rozet */
.type-pill.type-default {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--bg-glass-border);
}
[data-theme="light"] .type-pill.type-default {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-started {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success-border);
}

.status-stopped {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid var(--color-danger-border);
}

.status-removed {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* SSL & Service Days Pills */
.days-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.pill-valid {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid var(--color-success-border);
}

.pill-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid var(--color-warning-border);
  animation: pulse-border 2s infinite;
}

.pill-expired {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid var(--color-danger-border);
}

.pill-none {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.date-text {
  font-size: 0.78rem;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================
   TAGS SELECTOR (Çoklu Site Tipi Seçimi)
   ========================================== */
.tags-selector-container {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  max-height: 140px;
  overflow-y: auto;
}

.tag-select-item {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--bg-glass-border);
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
}

.tag-select-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.tag-select-item.selected {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ==========================================
   MODALS
   ========================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-box {
  background: var(--bg-surface-solid);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-lg { max-width: 850px; }
.modal-xl { max-width: 1050px; }

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

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

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--bg-glass-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

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

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.btn-close-modal:hover {
  color: var(--text-primary);
}

.modal-tabs-header {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--bg-glass-border);
  overflow-x: auto;
}

.modal-tab-btn, .admin-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 12px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.modal-tab-btn:hover, .admin-tab-btn:hover {
  color: var(--text-primary);
}

.modal-tab-btn.active, .admin-tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: rgba(59, 130, 246, 0.05);
}

.modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-tab-content, .admin-tab-content {
  display: none;
}

.modal-tab-content.active, .admin-tab-content.active {
  display: block;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--bg-glass-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.15);
}

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

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

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

.form-control {
  padding: 9px 13px;
  font-size: 0.88rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

/* Select ve Option Açılır Liste Temaları */
select {
  background-color: #151d2f;
  color: #f8fafc;
}

select option,
select optgroup {
  background-color: #151d2f;
  color: #f8fafc;
  padding: 8px 12px;
}

select.form-control {
  background-color: #151d2f;
  color: #f8fafc;
}

select.form-control option,
select.form-control optgroup {
  background-color: #151d2f;
  color: #f8fafc;
  padding: 8px 12px;
}

[data-theme="light"] select {
  background-color: #ffffff;
  color: #0f172a;
}

[data-theme="light"] select option,
[data-theme="light"] select optgroup {
  background-color: #ffffff;
  color: #0f172a;
}

[data-theme="light"] select.form-control {
  background-color: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] select.form-control option,
[data-theme="light"] select.form-control optgroup {
  background-color: #ffffff;
  color: #0f172a;
}

[data-theme="light"] .form-control {
  background: #ffffff;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.note-textarea {
  min-height: 150px;
  height: 150px;
  resize: vertical;
  line-height: 1.5;
  font-family: inherit;
}

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

.col-6 {
  flex: 1;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }

/* Admin Split Layout */
.admin-split-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.admin-form-col {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.sub-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Audit Timeline */
.audit-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
}

.timeline-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.timeline-content {
  flex: 1;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.timeline-user {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.timeline-changes {
  margin-top: 6px;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 10px;
  border-radius: 4px;
  color: #93c5fd;
  font-family: 'JetBrains Mono', monospace;
}

/* Details Grid */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.detail-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.detail-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

.detail-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #93c5fd;
}

.tech-details-expander {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
}

.tech-details-expander summary {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.toast {
  background: var(--bg-surface-solid);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.toast-success { border-left: 4px solid var(--color-success); }
.toast-error { border-left: 4px solid var(--color-danger); }
.toast-info { border-left: 4px solid var(--color-primary); }

.toast-message {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Utilities */
.hidden { display: none !important; }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.py-5 { padding-top: 40px; padding-bottom: 40px; }

.loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

.spinner-sm {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ========================================================= */
/* VIEW SWITCHER TABS (Aktif vs Silinen Alan Adları)          */
/* ========================================================= */
.view-switch-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  width: fit-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.view-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-switch-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.view-switch-btn.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(59, 130, 246, 0.18) 100%);
  color: #ffffff;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.view-tab-icon {
  width: 17px;
  height: 17px;
}

.view-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
}

.pill-active-count {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.pill-deleted-count {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.link-deleted-shortcut {
  color: #f87171;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.15s ease;
}

.link-deleted-shortcut:hover {
  color: #ef4444;
}

/* ========================================================= */
/* ARCHIVE HERO CARD & DELETED DOMAINS VIEW                  */
/* ========================================================= */
.archive-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(30, 41, 59, 0.7) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;
}

.archive-hero-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.archive-hero-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.4) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2);
}

.archive-hero-icon svg {
  width: 26px;
  height: 26px;
}

.archive-hero-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.archive-hero-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.archive-hero-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 6px 0 0 0;
  max-width: 800px;
  line-height: 1.45;
}

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

.archive-info-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-restore-xs {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.btn-restore-xs:hover {
  background: rgba(16, 185, 129, 0.3) !important;
  color: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
}

.deleted-date-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
}

.deleted-date-val {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f87171;
  font-family: 'JetBrains Mono', monospace;
}

.deleted-time-val {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ========================================================= */
/* ARKADYAS BRANDING & THEME LOGOS                           */
/* ========================================================= */
.brand-logo-dark { display: block; }
.brand-logo-light { display: none; }
[data-theme="light"] .brand-logo-dark { display: none !important; }
[data-theme="light"] .brand-logo-light { display: block !important; }

.login-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.login-brand-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(37, 99, 235, 0.35));
}

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

.nav-brand-logo {
  height: 38px;
  max-width: 170px;
  width: auto;
  object-fit: contain;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ========================================================= */
/* NOTIFICATION BELL & DROPDOWN PANEL                        */
/* ========================================================= */
.notification-wrapper {
  position: relative;
}

.btn-bell {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-bell:hover {
  color: var(--text-primary);
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.bell-icon {
  width: 19px;
  height: 19px;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  border: 2px solid var(--bg-surface);
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
}

.notification-pulse {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.6);
  animation: notifPulse 1.8s infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes notifPulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

.notification-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 440px;
  max-width: calc(100vw - 24px);
  max-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.notification-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  gap: 12px;
  white-space: nowrap !important;
}

.notif-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.notif-bell-icon {
  width: 17px;
  height: 17px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.notif-title-text {
  white-space: nowrap !important;
}

.notif-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.38));
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.45);
  white-space: nowrap !important;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.btn-mark-all-read {
  font-size: 0.74rem;
  font-weight: 600;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.09);
  border: 1px solid rgba(59, 130, 246, 0.3);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.btn-mark-all-read:hover {
  background: rgba(59, 130, 246, 0.22);
  color: #bfdbfe;
  border-color: rgba(96, 165, 250, 0.5);
}

.notification-dropdown-subbar {
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--bg-glass-border);
  font-size: 0.73rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  white-space: nowrap !important;
}

.btn-notif-history-link {
  background: none;
  border: none;
  color: #60a5fa;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.73rem;
  font-weight: 600;
  white-space: nowrap !important;
  flex-shrink: 0;
  padding: 0;
}

.btn-notif-history-link:hover {
  color: #93c5fd;
}

.notification-list {
  overflow-y: auto;
  max-height: 400px;
  padding: 6px 0;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
  cursor: pointer;
  position: relative;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
  background: rgba(59, 130, 246, 0.08);
}

.notification-item.unread::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
}

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

.notif-icon-discovered {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.notif-icon-removed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.notif-icon-system {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.notif-content-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.notif-msg {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.35;
  word-break: break-word;
}

.notif-time {
  font-size: 0.69rem;
  color: var(--text-muted);
  margin-top: 2px;
}

@media (max-width: 992px) {
  .nav-container { flex-direction: column; align-items: stretch; }
  .nav-actions { justify-content: flex-end; flex-wrap: wrap; }
  .details-grid { grid-template-columns: 1fr; }
  .admin-split-layout { grid-template-columns: 1fr; }
  .archive-hero-card { flex-direction: column; align-items: flex-start; }
  .archive-hero-actions { width: 100%; justify-content: flex-end; }
  .notification-dropdown { width: calc(100vw - 32px); right: -50px; }
}

/* Filtrelenenleri Excel'e Aktar Butonu */
.btn-export-filtered {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-export-filtered:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #34d399;
  transform: translateY(-1px);
}

/* IP Durum Belirteçleri (Radore, Frankfurt, Linux) */
.ip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.69rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.ip-badge-ok {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ip-badge-mismatch {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.ip-badge-pending {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Durum Sütunu Genişlik Kısıtı */
.col-status-cell {
  width: 90px;
  max-width: 90px;
  text-align: center;
  white-space: nowrap;
}

/* 8) Admin Modal & Sekmeler Yükseklik ve Görünürlük Kararlılığı */
#adminModal .modal-box {
  height: 82vh !important;
  min-height: 620px !important;
  max-height: 82vh !important;
  display: flex !important;
  flex-direction: column !important;
}

#adminModal .modal-header,
#adminModal .modal-tabs-header,
#adminModal .modal-footer {
  flex-shrink: 0 !important;
}

#adminModal .modal-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 20px 24px !important;
}

/* Tüm sekmelerin varsayılan olarak kesinlikle gizlenmesi */
#adminModal .admin-tab-content {
  display: none !important;
  width: 100% !important;
}

/* Yalnızca aktif olan sekmenin görünür olması */
#adminModal .admin-tab-content.active {
  display: block !important;
  width: 100% !important;
  animation: fadeIn 0.15s ease-out;
}

/* CSV Match sekmesi YALNIZCA aktif (.active) olduğunda görünür */
#adminModal #adminTabCsvEnrich.active {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

/* 10) Hizmet Detayları ve Ücretlendirme Alanı Tipografi & Boyut Düzenlemesi */
.service-details-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-top: 6px;
  margin-bottom: 12px;
}

.service-details-header {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-details-title {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #60a5fa !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-details-subtitle {
  font-size: 0.72rem !important;
  color: var(--text-muted) !important;
  display: block;
  margin-top: 2px;
  line-height: 1.35;
}

.service-rows-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-row {
  display: grid;
  grid-template-columns: 180px 1fr 110px;
  gap: 8px;
  align-items: center;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.service-row.active {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.22);
}

.service-row .checkbox-container {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-bottom: 0;
  user-select: none;
}

.service-row .checkbox-label {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

.service-row .form-control {
  height: 30px !important;
  padding: 3px 8px !important;
  font-size: 0.78rem !important;
  border-radius: var(--radius-sm) !important;
}

.service-row select.form-control {
  padding-right: 18px !important;
}

/* 8.1) Detaylar Modal & Sekmeler Yükseklik ve Görünürlük Kararlılığı */
#detailsModal .modal-box {
  height: 80vh !important;
  min-height: 580px !important;
  max-height: 80vh !important;
  display: flex !important;
  flex-direction: column !important;
}

#detailsModal .modal-header,
#detailsModal .modal-tabs-header,
#detailsModal .modal-footer {
  flex-shrink: 0 !important;
}

#detailsModal .modal-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 20px 24px !important;
}

#detailsModal .modal-tab-content {
  display: none !important;
  width: 100% !important;
}

#detailsModal .modal-tab-content.active {
  display: block !important;
  width: 100% !important;
  animation: fadeIn 0.15s ease-out;
}

/* Hizmet Detayları ve Ücretlendirme Satırları Hizalaması:
   1) Mail satırında Adet (sol) ve Bedel (sağ) eşit 50/50 genişlikte.
   2) Domain, Hosting, SSL ve Güncelleme satırlarında Bedel inputu SAĞA kayarak
      Mail satırındaki Bedel ile BİREBİR AYNI DİKEY HİZADA ve BİREBİR AYNI UZUNLUKTA (%50) yer alır.
   3) Para birimleri tüm satırlarda tek bir kusursuz dikey sütunda hizalanır. */
.service-inputs-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 1 120px !important;
  min-width: 0 !important;
  width: 100% !important;
}

.service-price-col {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 1 1 120px !important;
  min-width: 0 !important;
  width: 100% !important;
}

.service-price-col .service-price-input {
  width: calc((100% - 8px) / 2) !important;
  flex: 0 0 calc((100% - 8px) / 2) !important;
  min-width: 0 !important;
  max-width: calc((100% - 8px) / 2) !important;
  height: 30px !important;
  padding: 3px 8px !important;
  font-size: 0.78rem !important;
  border-radius: var(--radius-sm) !important;
  background: var(--bg-glass-input) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--bg-glass-border) !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

.service-inputs-group .service-count-input,
.service-inputs-group .service-price-input {
  width: calc((100% - 8px) / 2) !important;
  flex: 0 0 calc((100% - 8px) / 2) !important;
  min-width: 0 !important;
  max-width: calc((100% - 8px) / 2) !important;
  height: 30px !important;
  padding: 3px 8px !important;
  font-size: 0.78rem !important;
  border-radius: var(--radius-sm) !important;
  background: var(--bg-glass-input) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--bg-glass-border) !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

.service-price-col .service-price-input:focus,
.service-inputs-group .service-count-input:focus,
.service-inputs-group .service-price-input:focus {
  border-color: var(--color-primary) !important;
  outline: none !important;
}

.service-price-col .service-price-input:disabled,
.service-inputs-group .service-count-input:disabled,
.service-inputs-group .service-price-input:disabled {
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-muted) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  cursor: not-allowed !important;
}

/* IP Check Button Fixed Size & Pulse Animation */
.btn-ip-check {
  white-space: nowrap !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  transition: all var(--transition-fast);
}

.btn-ip-check .btn-label {
  white-space: nowrap !important;
}

.btn-ip-check.is-checking {
  border-color: rgba(59, 130, 246, 0.6) !important;
  background: rgba(59, 130, 246, 0.15) !important;
  color: #93c5fd !important;
  animation: syncBadgePulse 1.5s infinite;
}

.btn-ip-check.is-checking .ip-check-icon {
  animation: spin 1.2s linear infinite;
  color: #60a5fa;
}

.btn-ip-check .btn-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
  animation: syncPulseDot 1s infinite alternate;
  display: inline-block;
  margin-left: 3px;
}

/* 1366x768 Monitor Optimization (Item 5) */
@media (max-width: 1400px) {
  .content-container {
    padding: 0 14px;
    gap: 16px;
  }
  
  .top-nav {
    padding: 8px 0;
  }
  
  .nav-container {
    padding: 0 12px;
    gap: 8px;
  }
  
  .nav-brand {
    gap: 10px;
  }
  
  .brand-logo-container img {
    height: 28px !important;
  }
  
  .brand-title {
    font-size: 1.05rem;
  }
  
  .brand-subtitle {
    gap: 5px;
  }
  
  .brand-subtitle .badge {
    font-size: 0.65rem;
    padding: 2px 6px;
  }
  
  .nav-actions {
    gap: 6px;
  }
  
  .nav-actions .btn,
  #btnExportAllCsv {
    padding: 5px 9px !important;
    font-size: 0.76rem !important;
    height: 32px !important;
    box-sizing: border-box !important;
  }
  
  .nav-actions .btn-icon {
    width: 14px;
    height: 14px;
  }
  
  .btn-ip-check {
    white-space: nowrap !important;
    flex-shrink: 0;
    padding: 5px 9px !important;
    font-size: 0.76rem !important;
  }
  
  .user-menu-pill {
    padding: 2px 7px;
    gap: 6px;
  }
  
  .user-avatar-circle {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }
  
  .user-name {
    font-size: 0.75rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  .user-role-badge {
    font-size: 0.62rem;
    padding: 1px 4px;
  }
  
  .session-timer-pill {
    padding: 4px 7px;
    font-size: 0.74rem;
  }

  .session-timer-pill .timer-icon {
    width: 13px;
    height: 13px;
  }
  
  /* Filter Panel on 1366px: 4 per line with aligned export/reset buttons */
  .filter-panel {
    padding: 12px 14px;
    gap: 10px;
    margin-bottom: 4px;
  }
  
  .search-input-group input {
    padding: 8px 36px;
    font-size: 0.82rem;
    height: 34px;
  }
  
  .filter-controls {
    gap: 8px;
  }
  
  .select-wrapper {
    flex: 1 1 calc(25% - 8px);
    min-width: 120px;
  }
  
  .select-wrapper label {
    font-size: 0.68rem;
    margin-bottom: 2px;
  }
  
  .select-wrapper select,
  .filter-month-input {
    height: 30px;
    padding: 2px 6px;
    font-size: 0.75rem;
  }
  
  .btn-export-filtered,
  .btn-reset-filters {
    height: 30px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .filter-reset-wrapper {
    flex: 1 1 100%;
    justify-content: flex-end;
    margin-top: 2px;
  }
  
  /* Table Container on 1366px */
  .table-container {
    margin-bottom: 16px;
  }
  
  .table-header-info {
    padding: 10px 14px;
  }
  
  .table-title {
    font-size: 0.95rem;
  }
  
  .data-table th {
    padding: 6px 5px;
    font-size: 0.65rem;
  }
  
  .data-table td {
    padding: 4px 5px;
    font-size: 0.72rem;
  }
  
  .domain-name-link {
    font-size: 0.75rem;
    gap: 4px;
  }
  
  .col-display-id {
    font-size: 0.70rem;
    padding: 1px 4px;
  }
  
  .server-badge {
    font-size: 0.66rem;
    padding: 1px 4px;
  }
  
  .btn-action-xs {
    padding: 2px 5px !important;
    font-size: 0.67rem !important;
    height: 22px !important;
  }
  
  .metrics-grid {
    gap: 10px;
  }
  
  .metric-card {
    padding: 10px 12px;
  }
  
  .metric-value {
    font-size: 1.3rem;
  }
}

/* IIS Tara butonu görünürlük kuralı */
#btnSyncNow:not(.hidden) {
  display: inline-flex !important;
}
#btnSyncNow.hidden {
  display: none !important;
}



