/* DahaSeri Elite UI — v2 tema (MudBlazor degil; isletme portali ile uyumlu) */

.portal-host {
  --e-font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --e-bg: #f1f5f9;
  --e-surface: #ffffff;
  --e-border: #e2e8f0;
  --e-text: #0f172a;
  --e-muted: #64748b;
  --e-primary: #1d4ed8;
  --e-primary-hover: #1e40af;
  --e-primary-soft: #eff6ff;
  --e-accent: #d97706;
  --e-accent-soft: #fffbeb;
  --e-radius: 12px;
  --e-radius-sm: 8px;
  --e-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
  --e-shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.1);
  font-family: var(--e-font);
  color: var(--e-text);
  -webkit-font-smoothing: antialiased;
}

.portal-host .elite-shell {
  background: linear-gradient(165deg, #f8fafc 0%, #eef2f7 50%, #f1f5f9 100%);
}

.portal-host .elite-appbar {
  min-height: 56px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--e-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.portal-host .elite-appbar-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--e-text);
}

.portal-host .elite-appbar-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--e-primary), #3b82f6);
  vertical-align: middle;
}

.portal-host .elite-drawer {
  width: 260px;
  background: var(--e-surface);
  border-right: 1px solid var(--e-border);
}

.portal-host .elite-drawer-content {
  padding: 20px 14px;
}

.portal-host .elite-drawer-heading {
  margin: 0 0 16px;
  padding: 0 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--e-muted);
}

.portal-host .elite-main-content {
  background: transparent;
}

.portal-host .elite-container {
  padding: 20px 24px 32px;
}

/* Butonlar */
.portal-host .elite-btn {
  border-radius: var(--e-radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.portal-host .elite-btn-primary {
  background: linear-gradient(135deg, var(--e-accent), #b45309);
  border-color: #b45309;
  color: #fff;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.25);
}

.portal-host .elite-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #b45309, #92400e);
  transform: translateY(-1px);
}

.portal-host .elite-btn-ghost,
.portal-host .elite-btn-outline {
  border-color: var(--e-border);
  color: var(--e-text);
  background: var(--e-surface);
}

.portal-host .elite-btn-ghost:hover:not(:disabled),
.portal-host .elite-btn-outline:hover:not(:disabled) {
  border-color: #93c5fd;
  background: var(--e-primary-soft);
  color: var(--e-primary);
}

.portal-host .elite-btn-icon {
  border-radius: 10px;
  color: var(--e-muted);
}

/* Navigasyon */
.portal-host .elite-nav-label {
  padding: 14px 12px 6px;
  font-size: 0.65rem;
  color: #94a3b8;
}

.portal-host .elite-nav-btn {
  padding: 10px 12px;
  border-radius: var(--e-radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

.portal-host .elite-nav-btn:hover,
.portal-host .elite-nav-subitem:hover {
  background: var(--e-primary-soft);
  color: var(--e-primary);
}

.portal-host .elite-nav-subitem {
  padding: 8px 12px 8px 20px;
  font-size: 0.84rem;
  border-radius: var(--e-radius-sm);
  color: #475569;
}

.portal-host .elite-nav-divider {
  margin: 10px 8px;
  background: var(--e-border);
}

/* Sekmeler — kirmizi degil */
.portal-host .elite-tab-bar {
  border-bottom: 1px solid var(--e-border);
  background: var(--e-surface);
  border-radius: var(--e-radius) var(--e-radius) 0 0;
  padding: 4px 8px 0;
}

.portal-host .elite-tab {
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--e-muted);
  border-bottom: 2px solid transparent;
  border-radius: var(--e-radius-sm) var(--e-radius-sm) 0 0;
}

.portal-host .elite-tab:hover {
  color: var(--e-primary);
  background: var(--e-primary-soft);
}

.portal-host .elite-tab-active {
  color: var(--e-primary);
  border-bottom-color: var(--e-primary);
  background: var(--e-primary-soft);
}

.portal-host .elite-tab-empty {
  padding: 64px 24px;
  background: var(--e-surface);
  border: 1px dashed var(--e-border);
  border-radius: var(--e-radius);
  color: var(--e-muted);
  font-size: 0.95rem;
}

.portal-host .elite-tab-content {
  padding: 20px 4px;
}

/* Kartlar ve sayfalar */
.portal-host .elite-page-card,
.portal-host .elite-card {
  border-radius: var(--e-radius);
  border: 1px solid var(--e-border);
  box-shadow: var(--e-shadow);
  background: var(--e-surface);
}

.portal-host .elite-page-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--e-text);
}

/* KPI — abartili gradient yerine sade kart */
.portal-host .elite-kpi-card {
  border-radius: var(--e-radius);
  border: 1px solid var(--e-border);
  box-shadow: var(--e-shadow);
  color: var(--e-text);
  background: var(--e-surface);
  position: relative;
  overflow: hidden;
}

.portal-host .elite-kpi-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--e-primary);
}

.portal-host .elite-kpi-card--purple::before { background: #6366f1; }
.portal-host .elite-kpi-card--pink::before { background: #ec4899; }
.portal-host .elite-kpi-card--blue::before { background: #3b82f6; }
.portal-host .elite-kpi-card--green::before { background: #10b981; }
.portal-host .elite-kpi-card--red::before { background: #ef4444; }

.portal-host .elite-kpi-card--purple,
.portal-host .elite-kpi-card--pink,
.portal-host .elite-kpi-card--blue,
.portal-host .elite-kpi-card--green,
.portal-host .elite-kpi-card--red {
  background: var(--e-surface);
  color: var(--e-text);
}

.portal-host .elite-kpi-card h3 {
  color: var(--e-muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.portal-host .elite-kpi-card p {
  color: var(--e-text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.portal-host .elite-kpi-card--plain::before {
  background: #cbd5e1;
}

/* Tablolar */
.portal-host .elite-grid-table {
  border-radius: var(--e-radius);
  border: 1px solid var(--e-border);
  overflow: hidden;
  font-size: 0.875rem;
}

.portal-host .elite-grid-table th {
  background: #f8fafc;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid var(--e-border);
}

.portal-host .elite-grid-table tbody tr:hover {
  background: #f8fafc;
}

.portal-host .elite-grid-search {
  border-radius: var(--e-radius-sm);
  border: 1px solid var(--e-border);
  padding: 10px 14px;
}

.portal-host .elite-grid-search:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}

/* Dialog */
.portal-host .elite-dialog {
  border-radius: var(--e-radius);
  box-shadow: var(--e-shadow-lg);
}

.portal-host .elite-dialog-header h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Giris */
.portal-host .elite-login-wrap {
  background: linear-gradient(160deg, #f8fafc, #e2e8f0);
  border: 1px solid var(--e-border);
}

.portal-host .elite-login-intro h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--e-text);
}

.portal-host .elite-login-card {
  background: var(--e-surface);
  border: 1px solid var(--e-border);
  box-shadow: var(--e-shadow-lg);
}

.portal-host .elite-login-card h2 {
  color: var(--e-text);
  font-weight: 700;
}

/* Kullanici menusu */
.portal-host .elite-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--e-border);
  background: var(--e-surface);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--e-text);
  cursor: pointer;
}

.portal-host .elite-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--e-primary), #3b82f6);
}

.portal-host .elite-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--e-primary), #2563eb);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-right: 10px;
}

.portal-host .elite-nav-btn-primary {
  background: var(--e-primary-soft);
  color: var(--e-primary);
  font-weight: 600;
}

.portal-host .elite-user-email {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .portal-host .elite-user-email {
    display: none;
  }
}

.portal-host .elite-appbar-brand {
  display: flex;
  align-items: center;
}

.portal-host .elite-appbar-title::before {
  display: none;
}

.portal-host .elite-icon-menu {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  border-radius: 1px;
}
