/**
 * Keila Foto Pro – Velzon-faithful content layer
 * Scoped to body.theme-pro so Album stays untouched.
 * Brand: lilla täisvärv + valge tekst nuppudes/märgendites/infokastides.
 */

body.theme-pro {
  --vz-body-bg: #f3f3f9;
  --vz-body-color: #212529;
  --vz-body-color-rgb: 33, 37, 41;
  --vz-heading-color: #212529;
  --vz-border-color: #e9ebec;
  --vz-border-width: 1px;
  --vz-border-radius: 0.25rem;
  --vz-input-bg-custom: #fff;
  --vz-input-border-custom: #ced4da;
  --vz-card-bg: #fff;
  --vz-card-cap-bg: #fff;
  --vz-card-spacer-y: 1rem;
  --vz-card-spacer-x: 1rem;
  --vz-secondary-bg: #f3f6f9;
  --vz-tertiary-bg: #f3f6f9;
  --vz-link-color: var(--kf-primary, #7c3aed);
  --vz-primary: var(--kf-primary, #7c3aed);
  --vz-primary-rgb: 124, 58, 237;
  --vz-primary-hover: var(--kf-primary-hover, #6d28d9);
  --vz-success: #0ab39c;
  --vz-warning: #f7b84b;
  --vz-danger: #f06548;
  --vz-info: #299cdb;
  --vz-secondary: #878a99;
  --vz-light: #f3f6f9;
  --vz-dark: #212529;
  --kf-page: var(--vz-body-bg);
  --kf-surface: var(--vz-card-bg);
  --kf-border: var(--vz-border-color);
  --kf-radius: var(--vz-border-radius);
  --kf-shadow: 0 1px 2px rgba(56, 65, 74, 0.15);
  --kf-muted: #878a99;
  --kf-text: var(--vz-body-color);
  --kf-primary-soft: #f3f6f9;
  --kf-primary-soft-2: #e9ebec;
  --kf-primary-deep: #212529;
}

body.theme-pro.kf-dark {
  --vz-body-bg: #1a1d21;
  --vz-body-color: #ced4da;
  --vz-body-color-rgb: 206, 212, 218;
  --vz-heading-color: #e9ecef;
  --vz-border-color: #32383e;
  --vz-input-bg-custom: #262a2f;
  --vz-input-border-custom: #2a2f34;
  --vz-card-bg: #212529;
  --vz-card-cap-bg: #212529;
  --vz-secondary-bg: #282b2e;
  --vz-tertiary-bg: #282b2e;
  --vz-light: #282b2e;
  --kf-primary: #7c3aed;
  --kf-primary-hover: #6d28d9;
  --kf-primary-soft: #282b2e;
  --kf-primary-soft-2: #32383e;
  --kf-primary-deep: #e9ecef;
}

body.theme-pro.has-pro-nav #screen-pro,
body.theme-pro.has-pro-nav #pro-dashboard {
  background: var(--vz-body-bg) !important;
  color: var(--vz-body-color);
}

/* ── Page title (Velzon page-title-box) ── */
body.theme-pro #pro-shell .pro-page-head {
  margin-bottom: 1.25rem;
}
body.theme-pro #pro-shell .pro-page-head h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--vz-heading-color);
  letter-spacing: 0;
  margin: 0;
}
body.theme-pro #pro-shell .pro-page-head p {
  color: var(--kf-muted);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

/* ── Card ── */
body.theme-pro #pro-shell .card,
body.theme-pro #pro-shell .kf-card,
body.theme-pro #pro-shell .pro-section,
body.theme-pro #pro-shell .pro-surface--card,
body.theme-pro #pro-shell .pro-chart-block,
body.theme-pro #pro-shell .pro-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--vz-card-bg);
  border: 0;
  border-radius: var(--vz-border-radius);
  box-shadow: var(--kf-shadow);
  word-wrap: break-word;
}

body.theme-pro #pro-shell .pro-section {
  padding: 0;
  margin-top: 0;
  border-top: none !important;
}
body.theme-pro #pro-shell .pro-section + .pro-section {
  margin-top: 1rem;
  padding-top: 0;
  border-top: none !important;
}

body.theme-pro #pro-shell .card-header,
body.theme-pro #pro-shell .kf-card__title,
body.theme-pro #pro-shell .pro-section__title,
body.theme-pro #pro-shell .pro-chart-block > h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--vz-heading-color);
  background: var(--vz-card-cap-bg);
  border-bottom: 1px solid var(--vz-border-color);
  border-radius: var(--vz-border-radius) var(--vz-border-radius) 0 0;
}

body.theme-pro #pro-shell .card-body,
body.theme-pro #pro-shell .kf-card {
  padding: 1.25rem;
  color: var(--vz-body-color);
}
body.theme-pro #pro-shell .kf-card.card-body,
body.theme-pro #pro-shell .card > .kf-card__title + *,
body.theme-pro #pro-shell .pro-section > .pro-section__title + * {
  /* title already padded via header */
}
body.theme-pro #pro-shell .pro-section > .pro-section__title ~ * {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-bottom: 1.25rem;
}
body.theme-pro #pro-shell .pro-section > form,
body.theme-pro #pro-shell .pro-section > .pro-artwork-workspace {
  padding: 1.25rem;
}
body.theme-pro #pro-shell .pro-section > .pro-section__title {
  margin-bottom: 0;
}
body.theme-pro #pro-shell .card-footer {
  padding: 1rem 1.25rem;
  background: var(--vz-card-cap-bg);
  border-top: 1px solid var(--vz-border-color);
}

body.theme-pro #pro-shell .card-header.border-0,
body.theme-pro #pro-shell .card-header.no-border {
  border-bottom: 0;
}

/* KPI cards (Velzon mini-stats) */
body.theme-pro #pro-shell .pro-kpi-grid,
body.theme-pro #pro-shell .row.g-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
body.theme-pro #pro-shell .pro-kpi,
body.theme-pro #pro-shell .card.card-animate {
  background: var(--vz-card-bg);
  border: 0;
  border-radius: var(--vz-border-radius);
  box-shadow: var(--kf-shadow);
  padding: 1.25rem;
}
body.theme-pro #pro-shell .pro-kpi--icon {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
body.theme-pro #pro-shell .pro-kpi__label {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--kf-muted);
  margin: 0;
}
body.theme-pro #pro-shell .pro-kpi__value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--vz-heading-color);
  margin-top: 0.35rem;
  letter-spacing: -0.02em;
}
body.theme-pro #pro-shell .pro-kpi__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
body.theme-pro #pro-shell .pro-kpi__icon--violet { background: #7c3aed; color: #fff; }
body.theme-pro #pro-shell .pro-kpi__icon--blue { background: #299cdb; color: #fff; }
body.theme-pro #pro-shell .pro-kpi__icon--green { background: #0ab39c; color: #fff; }
body.theme-pro #pro-shell .pro-kpi__icon--amber { background: #f7b84b; color: #fff; }

/* ── Buttons ── */
body.theme-pro #pro-shell .btn,
body.theme-pro #pro-shell .kf-btn,
body.theme-pro #pro-shell .pro-btn-primary,
body.theme-pro #pro-shell .pro-btn-secondary,
body.theme-pro #pro-shell .pro-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: var(--vz-border-radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  box-shadow: none;
}
body.theme-pro #pro-shell .btn-primary,
body.theme-pro #pro-shell .kf-btn-primary,
body.theme-pro #pro-shell .pro-btn-primary {
  color: #fff !important;
  background: var(--vz-primary) !important;
  border-color: var(--vz-primary) !important;
}
body.theme-pro #pro-shell .btn-primary:hover,
body.theme-pro #pro-shell .kf-btn-primary:hover,
body.theme-pro #pro-shell .pro-btn-primary:hover {
  background: var(--vz-primary-hover) !important;
  border-color: var(--vz-primary-hover) !important;
}
body.theme-pro #pro-shell .btn-soft-primary,
body.theme-pro #pro-shell .kf-btn-soft {
  color: #fff !important;
  background: var(--vz-primary) !important;
  border-color: var(--vz-primary) !important;
}
body.theme-pro #pro-shell .btn-soft-primary:hover,
body.theme-pro #pro-shell .kf-btn-soft:hover {
  color: #fff !important;
  background: var(--vz-primary-hover) !important;
  border-color: var(--vz-primary-hover) !important;
}
body.theme-pro #pro-shell .btn-outline-primary,
body.theme-pro #pro-shell .btn-light,
body.theme-pro #pro-shell .kf-btn-outline,
body.theme-pro #pro-shell .kf-btn-secondary,
body.theme-pro #pro-shell .pro-btn-secondary {
  color: var(--vz-body-color) !important;
  background: var(--vz-card-bg) !important;
  border-color: var(--vz-border-color) !important;
}
body.theme-pro #pro-shell .btn-outline-primary:hover,
body.theme-pro #pro-shell .kf-btn-outline:hover,
body.theme-pro #pro-shell .kf-btn-secondary:hover,
body.theme-pro #pro-shell .pro-btn-secondary:hover {
  color: var(--vz-body-color) !important;
  border-color: var(--vz-primary) !important;
  background: var(--vz-card-bg) !important;
}
body.theme-pro #pro-shell .btn-subtle,
body.theme-pro #pro-shell .kf-btn-ghost {
  color: var(--vz-body-color) !important;
  background: transparent !important;
  border-color: transparent !important;
  padding: 0.35rem 0.6rem;
}
body.theme-pro #pro-shell .btn-danger,
body.theme-pro #pro-shell .pro-btn-danger {
  color: #fff !important;
  background: #f06548 !important;
  border-color: #f06548 !important;
}
body.theme-pro #pro-shell .btn-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}
body.theme-pro #pro-shell .w-100 { width: 100%; }
body.theme-pro #pro-shell .flex-1 { flex: 1 1 0%; }

/* ── Forms ── */
body.theme-pro #pro-shell .form-label,
body.theme-pro #pro-shell label.block {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--vz-heading-color);
}
body.theme-pro #pro-shell .form-control,
body.theme-pro #pro-shell .form-select,
body.theme-pro #pro-shell .pro-input,
body.theme-pro #pro-shell select.pro-input,
body.theme-pro #pro-shell textarea.pro-input,
body.theme-pro #pro-shell input.pro-input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--vz-body-color);
  background-color: var(--vz-input-bg-custom);
  background-clip: padding-box;
  border: var(--vz-border-width) solid var(--vz-input-border-custom);
  border-radius: var(--vz-border-radius);
  appearance: none;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  box-shadow: none !important;
}
body.theme-pro #pro-shell .form-control:focus,
body.theme-pro #pro-shell .form-select:focus,
body.theme-pro #pro-shell .pro-input:focus {
  border-color: var(--vz-primary) !important;
  outline: 0;
  box-shadow: none !important;
}
body.theme-pro #pro-shell .form-control-sm {
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
}
body.theme-pro #pro-shell .form-text,
body.theme-pro #pro-shell .text-muted {
  color: var(--kf-muted) !important;
  font-size: 0.75rem;
}
body.theme-pro #pro-shell .form-check-input {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.15em;
  vertical-align: top;
  background-color: var(--vz-input-bg-custom);
  border: 1px solid var(--vz-input-border-custom);
  border-radius: 0.2em;
  appearance: auto;
}

/* ── Tables ── */
body.theme-pro #pro-shell .table-responsive,
body.theme-pro #pro-shell .kf-table-wrap {
  overflow-x: auto;
  background: var(--vz-card-bg);
  border-radius: var(--vz-border-radius);
  box-shadow: var(--kf-shadow);
}
body.theme-pro #pro-shell .card .table-responsive,
body.theme-pro #pro-shell .card .kf-table-wrap {
  box-shadow: none;
  border-radius: 0;
}
body.theme-pro #pro-shell .table,
body.theme-pro #pro-shell .kf-table {
  width: 100%;
  margin-bottom: 0;
  color: var(--vz-body-color);
  vertical-align: middle;
  border-color: var(--vz-border-color);
  border-collapse: collapse;
  font-size: 0.875rem;
}
body.theme-pro #pro-shell .table > :not(caption) > * > *,
body.theme-pro #pro-shell .kf-table th,
body.theme-pro #pro-shell .kf-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--vz-border-color);
  background: transparent;
}
body.theme-pro #pro-shell .table thead th,
body.theme-pro #pro-shell .kf-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--kf-muted);
  background: var(--vz-secondary-bg);
  border-bottom-width: 1px;
  white-space: nowrap;
}
body.theme-pro #pro-shell .table tbody tr,
body.theme-pro #pro-shell .kf-table tbody tr {
  cursor: pointer;
  transition: background-color .12s ease;
}
body.theme-pro #pro-shell .table tbody tr:hover,
body.theme-pro #pro-shell .kf-table tbody tr:hover {
  background: var(--vz-secondary-bg);
}
body.theme-pro #pro-shell .table tbody tr:last-child > *,
body.theme-pro #pro-shell .kf-table tbody tr:last-child > * {
  border-bottom: 0;
}
body.theme-pro #pro-shell .table-nowrap th,
body.theme-pro #pro-shell .table-nowrap td {
  white-space: nowrap;
}

/* ── Badges / pills ── */
body.theme-pro #pro-shell .badge,
body.theme-pro #pro-shell .kf-badge,
body.theme-pro #pro-shell .pro-badge,
body.theme-pro #pro-shell .pro-status-chip {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}
body.theme-pro #pro-shell .badge-soft-success,
body.theme-pro #pro-shell .kf-badge--ok,
body.theme-pro #pro-shell .pro-status-chip--live {
  color: #fff !important;
  background: #0ab39c !important;
}
body.theme-pro #pro-shell .badge-soft-warning,
body.theme-pro #pro-shell .kf-badge--warn,
body.theme-pro #pro-shell .pro-status-chip--pending {
  color: #fff !important;
  background: #f7b84b !important;
}
body.theme-pro #pro-shell .badge-soft-secondary,
body.theme-pro #pro-shell .kf-badge--muted {
  color: #fff !important;
  background: #878a99 !important;
}
body.theme-pro #pro-shell .badge-soft-primary,
body.theme-pro #pro-shell .pro-badge {
  color: #fff !important;
  background: var(--vz-primary) !important;
  border-radius: 0.25rem !important;
}

/* ── Toolbar / filters ── */
body.theme-pro #pro-shell .kf-toolbar,
body.theme-pro #pro-shell .card-header .kf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 0;
}
body.theme-pro #pro-shell .list-group {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin: 0;
}
body.theme-pro #pro-shell .list-group-item {
  position: relative;
  display: block;
  padding: 0.85rem 1.25rem;
  color: var(--vz-body-color);
  background: var(--vz-card-bg);
  border-bottom: 1px solid var(--vz-border-color);
}
body.theme-pro #pro-shell .list-group-item:last-child {
  border-bottom: 0;
}
body.theme-pro #pro-shell .list-group-item:hover {
  background: var(--vz-secondary-bg);
}
body.theme-pro #pro-shell .list-group-item-action {
  cursor: pointer;
  width: 100%;
  text-align: left;
}

/* ── Soft helpers / typography inside shell ── */
body.theme-pro #pro-shell .fw-semibold { font-weight: 600; }
body.theme-pro #pro-shell .fw-medium { font-weight: 500; }
body.theme-pro #pro-shell .fs-13 { font-size: 0.8125rem; }
body.theme-pro #pro-shell .fs-12 { font-size: 0.75rem; }
body.theme-pro #pro-shell .text-primary { color: var(--vz-primary) !important; }
body.theme-pro #pro-shell .bg-light { background: var(--vz-secondary-bg) !important; }
body.theme-pro #pro-shell .border { border: 1px solid var(--vz-border-color) !important; }
body.theme-pro #pro-shell .rounded { border-radius: var(--vz-border-radius) !important; }
body.theme-pro #pro-shell .mb-0 { margin-bottom: 0 !important; }
body.theme-pro #pro-shell .mb-3 { margin-bottom: 1rem !important; }
body.theme-pro #pro-shell .mb-4 { margin-bottom: 1.5rem !important; }
body.theme-pro #pro-shell .mt-3 { margin-top: 1rem !important; }
body.theme-pro #pro-shell .mt-4 { margin-top: 1.5rem !important; }
body.theme-pro #pro-shell .g-3 { gap: 1rem; }

/* Override old rounded-xl / heavy purple surfaces inside shell content */
body.theme-pro #pro-shell .pro-shell__main .rounded-xl,
body.theme-pro #pro-shell .pro-shell__main .rounded-2xl {
  border-radius: var(--vz-border-radius) !important;
}
body.theme-pro #pro-shell .pro-shell__main .bg-pro-50,
body.theme-pro #pro-shell .pro-shell__main .bg-pro-50\/80 {
  background: var(--vz-secondary-bg) !important;
}
body.theme-pro #pro-shell .pro-shell__main .border-pro-100,
body.theme-pro #pro-shell .pro-shell__main .border-pro-200,
body.theme-pro #pro-shell .pro-shell__main .border-gray-100,
body.theme-pro #pro-shell .pro-shell__main .border-gray-200 {
  border-color: var(--vz-border-color) !important;
}
body.theme-pro #pro-shell .pro-shell__main .text-pro-800,
body.theme-pro #pro-shell .pro-shell__main .text-pro-700,
body.theme-pro #pro-shell .pro-shell__main .text-pro-600 {
  color: var(--vz-heading-color) !important;
}
body.theme-pro #pro-shell .pro-shell__main .bg-pro-100 {
  background: var(--vz-primary) !important;
  color: #fff !important;
}
body.theme-pro #pro-shell .pro-shell__main .bg-pro-100.text-pro-600,
body.theme-pro #pro-shell .pro-shell__main .bg-pro-100 .text-pro-600 {
  color: #fff !important;
}
body.theme-pro #pro-shell .pro-dropzone {
  border-radius: var(--vz-border-radius);
  border-color: var(--vz-border-color);
  background: var(--vz-secondary-bg);
}
body.theme-pro #pro-shell .pro-tag {
  border-radius: 0.25rem;
  background: var(--vz-primary);
  color: #fff;
  font-weight: 500;
}
body.theme-pro #pro-shell .pro-stat-pill {
  background: var(--vz-secondary-bg);
  border-radius: var(--vz-border-radius);
  border: 0;
  padding: 0.55rem 0.4rem;
}
body.theme-pro #pro-shell .pro-stat-pill dt {
  white-space: nowrap;
  letter-spacing: 0.02em;
  font-size: 0.625rem;
  line-height: 1.2;
}

/* Product cards: Velzon media card */
body.theme-pro #pro-shell .pro-product-card__body {
  padding: 1rem 1.15rem 1.15rem;
}
body.theme-pro #pro-shell .pro-product-card__media {
  aspect-ratio: 4/3;
  background: var(--vz-secondary-bg);
}

body.theme-pro #pro-shell .card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--vz-heading-color);
}
body.theme-pro #pro-shell .table-light th,
body.theme-pro #pro-shell thead.table-light th {
  background: var(--vz-secondary-bg) !important;
}
body.theme-pro #pro-shell .vstack {
  display: flex;
  flex-direction: column;
}
body.theme-pro #pro-shell .gap-2 { gap: 0.5rem; }
body.theme-pro #pro-shell .gap-3 { gap: 1rem; }
body.theme-pro #pro-shell .p-0 { padding: 0 !important; }
body.theme-pro #pro-shell .p-3 { padding: 1rem !important; }
body.theme-pro #pro-shell .w-100 { width: 100% !important; }
body.theme-pro .kf-drawer .form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
}
body.theme-pro .kf-drawer .form-control,
body.theme-pro .kf-drawer .form-select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  border: 1px solid var(--vz-input-border-custom, #ced4da);
  border-radius: 0.25rem;
  background: var(--vz-input-bg-custom, #fff);
  color: var(--vz-body-color, #212529);
}
body.theme-pro .kf-drawer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.25rem;
  border: 1px solid transparent;
}
body.theme-pro .kf-drawer .btn-primary {
  background: var(--kf-primary, #7c3aed);
  color: #fff;
  border-color: var(--kf-primary, #7c3aed);
}
body.theme-pro .kf-drawer .btn-light {
  background: #fff;
  color: #212529;
  border-color: #e9ebec;
}
