/* ============================================================================
   dashboard.css — Modern Dashboard Component Library (v1.0)
   Site-Wide Modernizasyon Phase 2

   Bu dosya şu componentleri içerir:
   - .dashboard-hero, .dashboard-hero__*
   - .kpi-card, .kpi-card--*
   - .activity-feed, .activity-item
   - .quick-action-grid, .quick-action-tile
   - .state-banner, .state-banner--*
   - .skeleton-kpi, .skeleton-list-item
   - .bento-grid, .bento-grid--*
   - .surface-card--* (ek varyantlar)

   Tüm token'lar mevcut design system'den (--space-*, --brand-*, --radius-*)
   gelir. Dark theme desteği [data-theme="dark"] selector'ı ile.
   ============================================================================ */

/* ===== Dashboard Hero ===== */
.dashboard-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl, 24px);
  background: linear-gradient(135deg, var(--brand-deep, #0021A1) 0%, var(--brand-primary, #006EED) 100%);
  color: #fff;
  padding: var(--space-8, 32px) var(--space-7, 28px);
  box-shadow: 0 8px 32px rgba(0, 33, 161, 0.18);
}

.dashboard-hero--gradient {
  background: linear-gradient(135deg, var(--brand-accent, #FF5304) 0%, #FF7E40 100%);
}

/* Phase 4 — A/B test variant A: solid (duz renk) */
.dashboard-hero--solid {
  background: var(--akdeniz-mavi, #0A4D8C);
  background-image: none;
  box-shadow: 0 8px 32px rgba(10, 77, 140, 0.25);
}

[data-theme="dark"] .dashboard-hero--solid {
  background: #0d2440;
  background-image: none;
}

.dashboard-hero--glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--theme-text-primary, #1E293B);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.dashboard-hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
                    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.dashboard-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-6, 24px);
}

.dashboard-hero__greeting-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-1, 4px);
}

.dashboard-hero__greeting {
  font-size: 0.95rem;
  opacity: 0.85;
  font-weight: 500;
}

.dashboard-hero__user-name {
  color: #ffffff !important;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.dashboard-hero__title {
  font-size: 1.05rem;
  margin: var(--space-2, 8px) 0 0;
  opacity: 0.95;
  font-weight: 600;
}

.dashboard-hero__subtitle {
  font-size: 0.9rem;
  margin: var(--space-1, 4px) 0 0;
  opacity: 0.78;
}

.dashboard-hero__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3, 12px);
}

/* ===== Quick Action Tile (Hero içinde ve standalone) ===== */
.quick-action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2, 8px);
  padding: var(--space-5, 20px) var(--space-3, 12px);
  border-radius: var(--radius-lg, 12px);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.quick-action-tile:hover,
.quick-action-tile:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
  outline: none;
}

.quick-action-tile:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.quick-action-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.quick-action-tile__label {
  font-weight: 600;
}

/* Standalone quick action grid (dashboard content bölümü) */
.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4, 16px);
}

.quick-action-grid--bento {
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: minmax(140px, auto);
}

.quick-action-grid--bento .quick-action-tile:nth-child(1) {
  grid-row: span 2;
}

@media (max-width: 768px) {
  .quick-action-grid--bento {
    grid-template-columns: 1fr 1fr;
  }
  .quick-action-grid--bento .quick-action-tile:nth-child(1) {
    grid-row: auto;
    grid-column: span 2;
  }
}

/* ===== KPI Card ===== */
.kpi-card {
  display: flex;
  align-items: center;
  gap: var(--space-4, 16px);
  padding: var(--space-5, 20px);
  border-radius: var(--radius-xl, 16px);
  background: var(--theme-card-bg, #fff);
  border: 1px solid var(--theme-border, #E2E8F0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
  min-height: 96px;
}

a.kpi-card:hover,
a.kpi-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--akdeniz-mavi, #0A4D8C);
  text-decoration: none;
  color: inherit;
}

a.kpi-card:focus-visible {
  outline: 2px solid var(--akdeniz-mavi, #0A4D8C);
  outline-offset: 2px;
}

.kpi-card--primary { border-left: 4px solid var(--akdeniz-mavi, #0A4D8C); }
.kpi-card--accent { border-left: 4px solid var(--akdeniz-turuncu, #E87722); }
.kpi-card--success { border-left: 4px solid var(--success-color, #10B981); }
.kpi-card--warning { border-left: 4px solid var(--warning-color, #F59E0B); }
.kpi-card--danger { border-left: 4px solid var(--danger-color, #EF4444); }
.kpi-card--info { border-left: 4px solid var(--info-color, #3B82F6); }

.kpi-card__icon-box {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md, 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 77, 140, 0.1);
  color: var(--akdeniz-mavi, #0A4D8C);
  font-size: 1.25rem;
}

.kpi-card--accent .kpi-card__icon-box { background: rgba(232, 119, 34, 0.1); color: var(--akdeniz-turuncu, #E87722); }
.kpi-card--success .kpi-card__icon-box { background: rgba(16, 185, 129, 0.1); color: var(--success-color, #10B981); }
.kpi-card--warning .kpi-card__icon-box { background: rgba(245, 158, 11, 0.1); color: var(--warning-color, #F59E0B); }
.kpi-card--danger .kpi-card__icon-box { background: rgba(239, 68, 68, 0.1); color: var(--danger-color, #EF4444); }
.kpi-card--info .kpi-card__icon-box { background: rgba(59, 130, 246, 0.1); color: var(--info-color, #3B82F6); }

.kpi-card__body {
  flex: 1;
  min-width: 0;
}

.kpi-card__label {
  font-size: 0.78rem;
  color: var(--theme-text-muted, #64748B);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.kpi-card__value-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2, 8px);
  flex-wrap: wrap;
}

.kpi-card__value {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  color: var(--theme-text-primary, #1E293B);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.kpi-card__unit {
  font-size: 0.85rem;
  color: var(--theme-text-muted, #64748B);
  font-weight: 500;
}

.kpi-card__delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.kpi-card__delta--success { background: rgba(16, 185, 129, 0.12); color: var(--success-color, #059669); }
.kpi-card__delta--warning { background: rgba(245, 158, 11, 0.12); color: var(--warning-color, #D97706); }
.kpi-card__delta--danger { background: rgba(239, 68, 68, 0.12); color: var(--danger-color, #DC2626); }
.kpi-card__delta--info { background: rgba(59, 130, 246, 0.12); color: var(--info-color, #2563EB); }

.kpi-card__chevron {
  color: var(--theme-text-muted, #94A3B8);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ===== Activity Feed ===== */
.activity-feed {
  background: var(--theme-card-bg, #fff);
  border: 1px solid var(--theme-border, #E2E8F0);
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.activity-feed__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5, 20px) var(--space-5, 20px);
  border-bottom: 1px solid var(--theme-border, #E2E8F0);
  gap: var(--space-3, 12px);
  flex-wrap: wrap;
}

.activity-feed__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--theme-text-primary, #1E293B);
}

.activity-feed__subtitle {
  font-size: 0.82rem;
  color: var(--theme-text-muted, #64748B);
  margin: 2px 0 0;
}

.activity-feed__view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--akdeniz-mavi, #0A4D8C);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-md, 8px);
  transition: background 0.15s ease;
}

.activity-feed__view-all:hover {
  background: rgba(10, 77, 140, 0.08);
  text-decoration: none;
}

.activity-feed__body {
  padding: var(--space-2, 8px) 0;
}

.activity-feed__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-feed__empty {
  text-align: center;
  padding: var(--space-8, 32px) var(--space-4, 16px);
  color: var(--theme-text-muted, #94A3B8);
}

.activity-feed__empty-icon {
  margin-bottom: var(--space-3, 12px);
  font-size: 2.5rem;
  opacity: 0.4;
}

.activity-feed__empty-message {
  margin: 0;
  font-size: 0.9rem;
}

.activity-item-wrap {
  list-style: none;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-3, 12px);
  padding: var(--space-3, 12px) var(--space-5, 20px);
  border-bottom: 1px solid var(--theme-border, #F1F5F9);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.activity-item:last-child {
  border-bottom: none;
}

a.activity-item:hover,
a.activity-item:focus-visible {
  background: var(--theme-bg-alt, rgba(0, 0, 0, 0.02));
  text-decoration: none;
  color: inherit;
}

.activity-item__icon-box {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  background: rgba(10, 77, 140, 0.1);
  color: var(--akdeniz-mavi, #0A4D8C);
}

.activity-item__icon-box--success { background: rgba(16, 185, 129, 0.1); color: var(--success-color, #059669); }
.activity-item__icon-box--warning { background: rgba(245, 158, 11, 0.1); color: var(--warning-color, #D97706); }
.activity-item__icon-box--danger { background: rgba(239, 68, 68, 0.1); color: var(--danger-color, #DC2626); }
.activity-item__icon-box--info { background: rgba(59, 130, 246, 0.1); color: var(--info-color, #2563EB); }
.activity-item__icon-box--accent { background: rgba(232, 119, 34, 0.1); color: var(--akdeniz-turuncu, #E87722); }

.activity-item__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.activity-item__content {
  flex: 1;
  min-width: 0;
}

.activity-item__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-text-primary, #1E293B);
  line-height: 1.4;
}

.activity-item__description {
  font-size: 0.8rem;
  color: var(--theme-text-muted, #64748B);
  margin-top: 2px;
  line-height: 1.4;
}

.activity-item__meta {
  font-size: 0.78rem;
  color: var(--theme-text-secondary, #475569);
  margin-top: 4px;
}

.activity-item__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  text-align: right;
}

.activity-item__status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 100px;
}

.activity-item__status--success { background: rgba(16, 185, 129, 0.12); color: var(--success-color, #059669); }
.activity-item__status--warning { background: rgba(245, 158, 11, 0.12); color: var(--warning-color, #D97706); }
.activity-item__status--danger { background: rgba(239, 68, 68, 0.12); color: var(--danger-color, #DC2626); }
.activity-item__status--info { background: rgba(59, 130, 246, 0.12); color: var(--info-color, #2563EB); }
.activity-item__status--neutral { background: rgba(100, 116, 139, 0.12); color: var(--theme-text-secondary, #475569); }

.activity-item__time {
  font-size: 0.78rem;
  color: var(--theme-text-muted, #94A3B8);
}

@media (max-width: 640px) {
  .activity-item__aside {
    align-items: flex-start;
    text-align: left;
  }
}

/* ===== State Banner ===== */
.state-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3, 12px);
  padding: var(--space-4, 16px) var(--space-5, 20px);
  border-radius: var(--radius-lg, 12px);
  margin-bottom: var(--space-4, 16px);
  border-left: 4px solid;
  position: relative;
}

.state-banner--success { background: rgba(16, 185, 129, 0.06); border-left-color: var(--success-color, #10B981); color: var(--success-color, #065F46); }
.state-banner--error { background: rgba(239, 68, 68, 0.06); border-left-color: var(--danger-color, #EF4444); color: var(--danger-color, #991B1B); }
.state-banner--warning { background: rgba(245, 158, 11, 0.08); border-left-color: var(--warning-color, #F59E0B); color: var(--warning-color, #92400E); }
.state-banner--info { background: rgba(59, 130, 246, 0.06); border-left-color: var(--info-color, #3B82F6); color: var(--info-color, #1E40AF); }

.state-banner__icon-box {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.state-banner--success .state-banner__icon-box { background: rgba(16, 185, 129, 0.15); color: var(--success-color, #059669); }
.state-banner--error .state-banner__icon-box { background: rgba(239, 68, 68, 0.15); color: var(--danger-color, #DC2626); }
.state-banner--warning .state-banner__icon-box { background: rgba(245, 158, 11, 0.15); color: var(--warning-color, #D97706); }
.state-banner--info .state-banner__icon-box { background: rgba(59, 130, 246, 0.15); color: var(--info-color, #2563EB); }

.state-banner__body {
  flex: 1;
  min-width: 0;
}

.state-banner__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.state-banner__message {
  font-size: 0.88rem;
  line-height: 1.5;
}

.state-banner__actions {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
}

.state-banner__dismiss {
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  opacity: 0.5;
  font-size: 0.95rem;
  color: inherit;
  border-radius: 4px;
  transition: opacity 0.15s;
}

.state-banner__dismiss:hover {
  opacity: 1;
}

/* ===== Skeletons ===== */
.skeleton-kpi {
  background: linear-gradient(90deg, var(--theme-border, #E2E8F0) 0%, rgba(0,0,0,0.04) 50%, var(--theme-border, #E2E8F0) 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-md, 8px);
  animation: skeleton-shimmer 1.4s infinite linear;
}

.skeleton-kpi--icon { width: 48px; height: 48px; border-radius: var(--radius-md, 10px); }
.skeleton-kpi--label { height: 12px; width: 80px; margin-bottom: 8px; }
.skeleton-kpi--value { height: 28px; width: 60%; }

.skeleton-list-item {
  background: linear-gradient(90deg, var(--theme-border, #E2E8F0) 0%, rgba(0,0,0,0.04) 50%, var(--theme-border, #E2E8F0) 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm, 4px);
  animation: skeleton-shimmer 1.4s infinite linear;
}

.skeleton-list-item--title { height: 14px; width: 70%; margin-bottom: 6px; }
.skeleton-list-item--meta { height: 11px; width: 90%; }
.skeleton-list-item--time { height: 13px; width: 70px; }

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== Bento Grid ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4, 16px);
}

.bento-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bento-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bento-grid--hero {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(120px, auto);
}

.bento-grid--hero > .bento-grid__item--span-2 { grid-column: span 2; }
.bento-grid--hero > .bento-grid__item--span-3 { grid-column: span 3; }
.bento-grid--hero > .bento-grid__item--span-4 { grid-column: span 4; }
.bento-grid--hero > .bento-grid__item--row-2 { grid-row: span 2; }

@media (max-width: 992px) {
  .bento-grid,
  .bento-grid--hero { grid-template-columns: repeat(2, 1fr); }
  .bento-grid--hero > .bento-grid__item--span-3,
  .bento-grid--hero > .bento-grid__item--span-4 { grid-column: span 2; }
}

@media (max-width: 576px) {
  .bento-grid,
  .bento-grid--2,
  .bento-grid--3,
  .bento-grid--hero { grid-template-columns: 1fr; }
  .bento-grid--hero > .bento-grid__item--span-2,
  .bento-grid--hero > .bento-grid__item--span-3,
  .bento-grid--hero > .bento-grid__item--span-4 { grid-column: span 1; }
}

.bento-grid__item {
  display: flex;
  flex-direction: column;
}

/* ===== Surface Card extras ===== */
.surface-card--hero {
  background: linear-gradient(135deg, var(--akdeniz-mavi-50, rgba(10,77,140,0.05)), rgba(255,255,255,0.6));
  border: 1px solid rgba(10, 77, 140, 0.18);
}

.surface-card--accent {
  border-left: 4px solid var(--akdeniz-turuncu, #E87722);
}

.surface-card--sticky {
  position: sticky;
  top: var(--space-5, 20px);
}

/* ===== Empty State Illustration ===== */
.empty-state-illustration {
  text-align: center;
  padding: var(--space-8, 32px) var(--space-4, 16px);
  color: var(--theme-text-muted, #94A3B8);
}

.empty-state-illustration__icon {
  font-size: 3rem;
  opacity: 0.4;
  margin-bottom: var(--space-3, 12px);
}

.empty-state-illustration__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--theme-text-secondary, #475569);
  margin: 0 0 6px;
}

.empty-state-illustration__description {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* ===== Onboarding Checklist (Dashboard) ===== */
.onboarding-checklist {
  background: var(--theme-card-bg, #fff);
  border: 1px solid var(--theme-border, #E2E8F0);
  border-radius: var(--radius-xl, 16px);
  padding: var(--space-5, 20px);
}

.onboarding-checklist__item {
  display: flex;
  align-items: center;
  gap: var(--space-3, 12px);
  padding: var(--space-3, 12px) 0;
  border-bottom: 1px solid var(--theme-border, #F1F5F9);
}

.onboarding-checklist__item:last-child {
  border-bottom: none;
}

.onboarding-checklist__step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 77, 140, 0.1);
  color: var(--akdeniz-mavi, #0A4D8C);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.onboarding-checklist__step--done {
  background: var(--success-color, #10B981);
  color: #fff;
}

.onboarding-checklist__content {
  flex: 1;
  min-width: 0;
}

.onboarding-checklist__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-text-primary, #1E293B);
  margin: 0;
}

.onboarding-checklist__description {
  font-size: 0.78rem;
  color: var(--theme-text-muted, #94A3B8);
  margin: 2px 0 0;
}

/* ===== Tab Navigation (Profil vs.) ===== */
.tab-nav-pills {
  display: flex;
  gap: 4px;
  background: var(--theme-bg-alt, #F1F5F9);
  padding: 4px;
  border-radius: var(--radius-lg, 12px);
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab-nav-pills__item {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: var(--radius-md, 8px);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--theme-text-secondary, #475569);
  cursor: pointer;
  border: none;
  background: transparent;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-nav-pills__item:hover {
  color: var(--akdeniz-mavi, #0A4D8C);
  text-decoration: none;
}

.tab-nav-pills__item--active {
  background: var(--theme-card-bg, #fff);
  color: var(--akdeniz-mavi, #0A4D8C);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ===== Sticky Summary Footer ===== */
.sticky-summary-footer {
  position: sticky;
  bottom: 0;
  background: var(--theme-card-bg, #fff);
  border-top: 1px solid var(--theme-border, #E2E8F0);
  padding: var(--space-4, 16px) var(--space-5, 20px);
  margin-top: var(--space-5, 20px);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
  border-radius: var(--radius-lg, 12px) var(--radius-lg, 12px) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4, 16px);
  z-index: 10;
}

.sticky-summary-footer__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ===== Dark Theme Overrides ===== */
[data-theme="dark"] .dashboard-hero {
  background: linear-gradient(135deg, #0d2440 0%, #16427a 100%);
}

[data-theme="dark"] .quick-action-tile {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .quick-action-tile:hover {
  background: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] .kpi-card {
  background: var(--theme-card-bg);
  border-color: var(--theme-border);
}

[data-theme="dark"] .kpi-card__value {
  color: var(--theme-text-primary);
}

[data-theme="dark"] .activity-feed {
  background: var(--theme-card-bg);
  border-color: var(--theme-border);
}

[data-theme="dark"] .activity-item__title {
  color: var(--theme-text-primary);
}

[data-theme="dark"] .onboarding-checklist {
  background: var(--theme-card-bg);
  border-color: var(--theme-border);
}

[data-theme="dark"] .onboarding-checklist__title {
  color: var(--theme-text-primary);
}

[data-theme="dark"] .sticky-summary-footer {
  background: var(--theme-card-bg);
  border-color: var(--theme-border);
}

[data-theme="dark"] .tab-nav-pills {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .tab-nav-pills__item--active {
  background: var(--theme-card-bg);
  color: var(--akdeniz-mavi-300);
}

[data-theme="dark"] .state-banner--success { background: rgba(16, 185, 129, 0.12); color: var(--success-color, #34D399); }
[data-theme="dark"] .state-banner--error { background: rgba(239, 68, 68, 0.12); color: var(--danger-color, #F87171); }
[data-theme="dark"] .state-banner--warning { background: rgba(245, 158, 11, 0.14); color: var(--warning-color, #FBBF24); }
[data-theme="dark"] .state-banner--info { background: rgba(59, 130, 246, 0.12); color: var(--info-color, #60A5FA); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .dashboard-hero { padding: var(--space-6, 24px) var(--space-5, 20px); }
  .dashboard-hero__user-name { font-size: 1.75rem; }
  .dashboard-hero__actions { grid-template-columns: repeat(2, 1fr); }
  .kpi-card { padding: var(--space-4, 16px); gap: var(--space-3, 12px); min-height: 84px; }
  .kpi-card__icon-box { width: 40px; height: 40px; font-size: 1.05rem; }
  .kpi-card__value { font-size: 1.4rem; }
  .sticky-summary-footer { flex-direction: column; align-items: stretch; }
}


/* =================================================================
   14. STATE-MANAGER (Phase 3)
   ================================================================= */

.state-manager-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
}

.state-manager-empty {
  text-align: center;
  padding: 32px 16px;
}

.state-manager-empty > i {
  font-size: 2.5rem;
  color: var(--metin-hafif, #94a3b8);
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2, rgba(10, 77, 140, 0.04));
  margin-bottom: 8px;
}

.state-manager-empty h3,
.state-manager-empty p {
  margin: 0;
}

/* =================================================================
   15. RESERVATION / ENROLLMENT FLOW INDICATOR (Phase 3)
   ================================================================= */

.flow-step-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface-1, rgba(10, 77, 140, 0.04));
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--ikincil-metin, #475569);
}

.flow-step-indicator__bar {
  flex: 1 1 auto;
  display: flex;
  gap: 4px;
}

.flow-step-indicator__segment {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--theme-border, #cbd5e1);
  transition: background 200ms;
}

.flow-step-indicator__segment--done { background: #10B981; }
.flow-step-indicator__segment--current { background: #0A4D8C; }

.flow-step-indicator__step-text {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--heading-color, #0f172a);
}

/* Reduced-motion guard — flow indicator transition'larını kapat */
@media (prefers-reduced-motion: reduce) {
  .flow-step-indicator__segment { transition: none !important; }
}

/* ===== Package Card (OnKayit) ===== */
.package-card {
  position: relative;
  background: var(--surface-1, #ffffff);
  border: 1.5px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-xl, 16px);
  padding: var(--space-5, 20px);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.04));
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary, #006EED);
  box-shadow: 0 12px 28px rgba(0, 33, 161, 0.08);
}

.package-card.selected-package {
  border: 2px solid var(--brand-accent, #FF5304) !important;
  background: rgba(255, 83, 4, 0.02);
  box-shadow: 0 0 0 3px rgba(255, 83, 4, 0.18), 0 8px 24px rgba(255, 83, 4, 0.12);
}

.package-card-inner {
  flex: 1;
}

.package-card-select {
  margin-top: var(--space-4, 16px);
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--surface-2, #f1f5f9);
  color: var(--text-secondary, #475569);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

.package-card:hover .package-card-select {
  background: rgba(0, 110, 237, 0.1);
  color: var(--brand-primary, #006EED);
}

.package-card.selected-package .package-card-select {
  background: var(--brand-accent, #FF5304);
  color: #ffffff;
  content: "Seçildi";
}

[data-theme="dark"] .package-card {
  background: var(--surface-1, #1e293b);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .package-card-select {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

/* ===== AnaPanel Segmented Toggle ===== */
.anapanel-service-toggle,
.auth-method-toggle {
  display: inline-flex;
  background: var(--surface-bg-sunken, #f1f5f9);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--theme-border, rgba(0, 0, 0, 0.08));
  gap: 4px;
}

.anapanel-service-toggle .toggle-btn,
.auth-method-toggle .toggle-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--theme-text-secondary, #64748b);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.anapanel-service-toggle .toggle-btn:hover:not(.active),
.auth-method-toggle .toggle-btn:hover:not(.active) {
  color: var(--theme-text-primary, #0f172a);
}

.anapanel-service-toggle .toggle-btn.active,
.auth-method-toggle .toggle-btn.active {
  background: var(--brand-primary, #006EED);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 110, 237, 0.3);
}

[data-theme="dark"] .anapanel-service-toggle,
[data-theme="dark"] .auth-method-toggle {
  background: var(--surface-2, #1e293b);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .anapanel-service-toggle .toggle-btn,
[data-theme="dark"] .auth-method-toggle .toggle-btn {
  color: #94a3b8;
}

[data-theme="dark"] .anapanel-service-toggle .toggle-btn.active,
[data-theme="dark"] .auth-method-toggle .toggle-btn.active {
  background: var(--brand-primary, #006EED);
  color: #ffffff;
}

/* ============================================================================
   ANAPANEL HERO & ACTIVITY FEED SIDE-BY-SIDE (Space-saving compact layout)
   ============================================================================ */
.anapanel-hero-feed-row {
  margin-top: var(--space-4, 16px);
  margin-bottom: var(--space-4, 16px);
}

.anapanel-hero-feed-row .dashboard-hero {
  border-radius: var(--radius-xl, 16px);
  padding: var(--space-5, 20px) var(--space-6, 24px);
  min-height: 220px;
}

.anapanel-hero-feed-row .dashboard-hero__inner {
  gap: var(--space-2, 8px);
}

.anapanel-hero-feed-row .dashboard-hero__user-name {
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
}

.anapanel-hero-feed-row .dashboard-hero__title {
  font-size: 0.95rem;
  margin-top: 4px;
}

.anapanel-hero-feed-row .dashboard-hero__subtitle {
  font-size: 0.82rem;
  margin-top: 2px;
}

.anapanel-hero-feed-row .activity-feed {
  border-radius: var(--radius-xl, 16px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.anapanel-hero-feed-row .activity-feed__header {
  padding: 10px 18px;
  flex-shrink: 0;
}

.anapanel-hero-feed-row .activity-feed__title {
  font-size: 0.95rem;
}

.anapanel-hero-feed-row .activity-feed__subtitle {
  font-size: 0.78rem;
}

.anapanel-hero-feed-row .activity-feed__body {
  padding: 4px 0;
  flex: 1;
  max-height: 200px;
  overflow-y: auto;
}

.anapanel-hero-feed-row .activity-feed__body::-webkit-scrollbar {
  width: 5px;
}

.anapanel-hero-feed-row .activity-feed__body::-webkit-scrollbar-thumb {
  background: var(--theme-border, #cbd5e1);
  border-radius: 4px;
}

.anapanel-hero-feed-row .activity-item {
  padding: 8px 18px;
  gap: 10px;
}

.anapanel-hero-feed-row .activity-item__icon-box {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
}

.anapanel-hero-feed-row .activity-item__title {
  font-size: 0.85rem;
}

.anapanel-hero-feed-row .activity-item__description {
  font-size: 0.76rem;
}

.anapanel-hero-feed-row .activity-item__status {
  font-size: 0.72rem;
  padding: 2px 8px;
}

.anapanel-hero-feed-row .activity-item__time {
  font-size: 0.72rem;
}

.anapanel-hero-feed-row .activity-feed__empty {
  padding: 24px 16px;
}

/* Reduce top spacing of subsequent section when hero-feed row is present */
.anapanel-hero-feed-row + section {
  padding-top: var(--space-4, 16px);
}


