/* Isletme portali — kurumsal giris ve komut merkezi */

:root {
  --ip-navy: #071525;
  --ip-navy-mid: #0c2548;
  --ip-blue: #2563eb;
  --ip-teal: #0d9488;
  --ip-grad: linear-gradient(145deg, #071525 0%, #0c2548 38%, #1e40af 68%, #0d9488 100%);
  --ip-surface: #ffffff;
  --ip-text: #0c1527;
  --ip-muted: #5b6578;
  --ip-border: rgba(12, 21, 39, 0.1);
  --ip-radius: 16px;
  --ip-shadow: 0 20px 60px rgba(7, 21, 37, 0.12);
}

body.ip-portal-host {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  background: var(--ip-navy);
  color: var(--ip-text);
  -webkit-font-smoothing: antialiased;
}

.ip-portal-host .portal-boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ip-navy);
  color: #94a3b8;
  font-size: 15px;
}

.ip-portal-host .portal-boot.is-hidden,
.ip-portal-host.blazor-connected .portal-boot {
  display: none !important;
  pointer-events: none !important;
}

/* Kabuk */
.portal-host .ip-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f0f4fa;
}

.portal-host .ip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ip-border);
}

.portal-host .ip-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-host .ip-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--ip-grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.portal-host .ip-logo {
  font-weight: 800;
  color: var(--ip-text);
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.portal-host .ip-header-title {
  font-weight: 600;
  color: var(--ip-muted);
  font-size: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--ip-border);
}

.portal-host .ip-header-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.portal-host .ip-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-host .ip-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid var(--ip-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--ip-text);
}

.portal-host .ip-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ip-grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-host .ip-main {
  flex: 1;
  padding: 0;
}

.portal-host .ip-main--auth {
  display: flex;
  min-height: calc(100vh - 64px - 52px);
}

.portal-host .ip-footer {
  padding: 14px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--ip-muted);
  border-top: 1px solid var(--ip-border);
  background: #fff;
}

.portal-host .ip-footer a {
  color: var(--ip-blue);
  text-decoration: none;
  font-weight: 600;
}

.portal-host .ip-footer a:hover {
  text-decoration: underline;
}

/* Butonlar */
.portal-host .ip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}

.portal-host .ip-btn-primary {
  background: linear-gradient(135deg, var(--ip-blue), #1d4ed8);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.portal-host .ip-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4);
}

.portal-host .ip-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.portal-host .ip-btn-ghost {
  background: #fff;
  border-color: var(--ip-border);
  color: var(--ip-text);
}

.portal-host .ip-btn-ghost:hover {
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--ip-blue);
  background: #eff6ff;
}

.portal-host .ip-btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* Giris — tam ekran bolunmus */
.portal-host .ip-auth {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: calc(100vh - 64px - 52px);
}

@media (min-width: 960px) {
  .portal-host .ip-auth {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.portal-host .ip-auth-brand {
  position: relative;
  padding: 48px 40px 56px;
  background: var(--ip-grad);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portal-host .ip-auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(13, 148, 136, 0.25), transparent 40%);
  pointer-events: none;
}

.portal-host .ip-auth-brand-inner {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.portal-host .ip-auth-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 20px;
}

.portal-host .ip-auth-brand h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.portal-host .ip-auth-brand > .ip-auth-brand-inner > p {
  margin: 0 0 32px;
  font-size: 1.02rem;
  line-height: 1.65;
  opacity: 0.9;
  max-width: 46ch;
}

.portal-host .ip-feature-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 600px) {
  .portal-host .ip-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.portal-host .ip-feature {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.portal-host .ip-feature strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.portal-host .ip-feature span {
  font-size: 0.82rem;
  opacity: 0.82;
  line-height: 1.5;
}

.portal-host .ip-auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background: #f4f7fc;
}

.portal-host .ip-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--ip-surface);
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 36px 32px 32px;
  box-shadow: var(--ip-shadow);
}

.portal-host .ip-login-card h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.portal-host .ip-login-sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--ip-muted);
  line-height: 1.5;
}

.portal-host .ip-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.portal-host .ip-field span {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.portal-host .ip-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  font-size: 15px;
  font-family: inherit;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.portal-host .ip-field input:focus {
  outline: none;
  background: #fff;
  border-color: var(--ip-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.portal-host .ip-field small {
  color: var(--ip-muted);
  font-size: 12px;
}

.portal-host .ip-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 20px;
  font-size: 14px;
  color: var(--ip-muted);
  cursor: pointer;
}

.portal-host .ip-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--ip-blue);
}

.portal-host .ip-login-card .ip-btn-primary {
  width: 100%;
}

.portal-host .ip-alert {
  padding: 13px 15px;
  border-radius: 11px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.45;
}

.portal-host .ip-alert-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.portal-host .ip-login-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  color: var(--ip-muted);
  line-height: 1.55;
  text-align: center;
}

.portal-host .ip-login-foot a {
  color: var(--ip-blue);
  font-weight: 600;
}

/* Komut merkezi (giris sonrasi) */
.portal-host .ip-hub {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.portal-host .ip-hub-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 34px;
  border-radius: 20px;
  background: var(--ip-grad);
  color: #fff;
  box-shadow: var(--ip-shadow);
  margin-bottom: 28px;
}

.portal-host .ip-hub-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.portal-host .ip-hub-hero p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 52ch;
  font-size: 0.95rem;
}

.portal-host .ip-hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-host .ip-hub-hero .ip-btn-primary {
  background: #fff;
  color: var(--ip-navy-mid);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.portal-host .ip-hub-hero .ip-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.portal-host .ip-hub-hero .ip-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.portal-host .ip-hub-section-title {
  margin: 0 0 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ip-muted);
}

.portal-host .ip-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.portal-host .ip-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  border-radius: var(--ip-radius);
  background: #fff;
  border: 1px solid var(--ip-border);
  text-decoration: none;
  color: var(--ip-text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  box-shadow: 0 4px 16px rgba(12, 21, 39, 0.04);
}

.portal-host .ip-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--ip-shadow);
  border-color: rgba(37, 99, 235, 0.35);
}

.portal-host .ip-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.portal-host .ip-tile-icon--sales { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.portal-host .ip-tile-icon--stock { background: linear-gradient(135deg, #059669, #10b981); }
.portal-host .ip-tile-icon--cari { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.portal-host .ip-tile-icon--report { background: linear-gradient(135deg, #d97706, #f59e0b); }

.portal-host .ip-tile strong {
  font-size: 1rem;
  font-weight: 700;
}

.portal-host .ip-tile span {
  font-size: 0.82rem;
  color: var(--ip-muted);
  line-height: 1.45;
}

.portal-host .ip-hub-split {
  display: grid;
  gap: 20px;
}

@media (min-width: 800px) {
  .portal-host .ip-hub-split {
    grid-template-columns: 1fr 1fr;
  }
}

.portal-host .ip-card {
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 24px 26px;
  box-shadow: 0 4px 16px rgba(12, 21, 39, 0.04);
}

.portal-host .ip-card h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ip-text);
}

.portal-host .ip-card p {
  margin: 0 0 14px;
  color: var(--ip-muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.portal-host .ip-kv {
  display: grid;
  gap: 0;
  margin: 0;
}

.portal-host .ip-kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

.portal-host .ip-kv dt {
  color: var(--ip-muted);
  margin: 0;
}

.portal-host .ip-kv dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.portal-host .ip-license-ring {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.portal-host .ip-license-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 3px solid var(--ip-blue);
  flex-shrink: 0;
}

.portal-host .ip-license-badge strong {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ip-blue);
  line-height: 1;
}

.portal-host .ip-license-badge span {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ip-muted);
}

.portal-host .ip-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--ip-muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.portal-host .ip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-host .ip-loading {
  padding: 48px;
  text-align: center;
  color: var(--ip-muted);
}
