/* =============================================================================
   ARConnex Global Layout System
   Spacing scale: 8 | 16 | 24 | 32 | 48 | 64
   Compiled from resources/assets/less/layout-system.less
   ============================================================================= */

/* -----------------------------------------------------------------------------
   App shell
   ----------------------------------------------------------------------------- */

body.with-navbar {
  padding-top: 72px;
  background-color: #f4f6f9;
}

.app-main {
  min-height: calc(100vh - 72px);
  padding-top: 24px;
  padding-bottom: 48px;
}

/* -----------------------------------------------------------------------------
   AppContainer
   ----------------------------------------------------------------------------- */

.app-container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

@media (min-width: 1600px) {
  .app-container {
    max-width: 1500px;
  }
}

@media (max-width: 991px) {
  .app-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 767px) {
  .app-container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.app-container--form {
  max-width: 1100px;
}

.app-container--full {
  max-width: 1400px;
}

/* Normalize nested Bootstrap containers inside our shell */
.app-container > .container,
.app-container > .container-fluid,
.app-container .spark-screen.container,
.app-container .spark-screen {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

.app-container > .container-fluid.parallax,
.app-container > .container-fluid.parallax2 {
  padding-left: 0;
  padding-right: 0;
}

/* -----------------------------------------------------------------------------
   Typography
   ----------------------------------------------------------------------------- */

.app-page-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
  color: #1a1f2e;
}

.app-section-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 16px;
  color: #1a1f2e;
}

.app-card-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
  color: #1a1f2e;
}

.app-body-text {
  font-size: 16px;
  line-height: 1.5;
  color: #334155;
}

.app-small-text {
  font-size: 14px;
  line-height: 1.45;
  color: #64748b;
}

/* -----------------------------------------------------------------------------
   PageHeader
   ----------------------------------------------------------------------------- */

.app-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.app-page-header__main {
  flex: 1;
  min-width: 0;
}

.app-page-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.app-page-header__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 12px;
  font-size: 14px;
  color: #64748b !important;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  text-decoration: none !important;
}

.app-page-header__back:hover {
  color: #334155 !important;
  background: #f8fafc;
}

/* -----------------------------------------------------------------------------
   PageSection
   ----------------------------------------------------------------------------- */

.app-page-section {
  margin-bottom: 24px;
}

.app-page-section:last-child {
  margin-bottom: 0;
}

.app-page-section__header {
  margin-bottom: 16px;
}

/* -----------------------------------------------------------------------------
   Card
   ----------------------------------------------------------------------------- */

.app-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin-bottom: 24px;
}

.app-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.app-card__body {
  padding: 24px;
}

.app-card__footer {
  padding: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fafbfc;
}

/* Bridge legacy panels to card system */
.app-container .panel.panel-default {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.06);
  margin-bottom: 24px;
  background: #fff;
}

.app-container .panel.panel-default > .panel-heading {
  padding: 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  font-size: 20px;
  font-weight: 500;
  color: #1a1f2e;
}

.app-container .panel.panel-default > .panel-body {
  padding: 24px;
}

.app-container .panel.panel-default > .panel-footer {
  padding: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fafbfc;
}

/* -----------------------------------------------------------------------------
   SidebarLayout (25% / 75%)
   ----------------------------------------------------------------------------- */

.app-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(240px, 25%) minmax(0, 75%);
  gap: 24px;
  align-items: start;
}

.app-sidebar-layout__sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.app-sidebar-layout__content {
  min-width: 0;
}

@media (max-width: 991px) {
  .app-sidebar-layout {
    grid-template-columns: 1fr;
  }
}

/* Settings content panels + sidebar nav */
.app-sidebar-layout__content .tab-content > .tab-pane > .panel,
.app-sidebar-layout__content .tab-content > .tab-pane > div > .panel {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.06);
}

.app-sidebar-layout .panel.panel-default.panel-flush,
.app-sidebar-layout .panel.panel-default {
  margin-bottom: 0;
}

.app-sidebar-layout .panel-heading {
  font-size: 16px;
  font-weight: 600;
}

.app-sidebar-layout .spark-settings-stacked-tabs > li > a {
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.app-sidebar-layout .spark-settings-stacked-tabs > li.active > a,
.app-sidebar-layout .spark-settings-stacked-tabs > li > a:hover {
  background: #f1f5f9;
}

/* -----------------------------------------------------------------------------
   Form layout (global form-horizontal normalization)
   ----------------------------------------------------------------------------- */

.app-form-layout {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.app-form-layout .form-horizontal .form-group {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 24px;
  max-width: 100%;
}

.app-form-layout .form-horizontal .control-label,
.app-form-layout .form-horizontal label.control-label {
  width: 220px;
  flex: 0 0 220px;
  max-width: 220px;
  margin-bottom: 0;
  padding-top: 10px;
  text-align: left;
  font-weight: 500;
  font-size: 16px;
}

/* Direct field-wrapper columns inside form-group become flex containers
   so nested radio/checkbox option cols display side-by-side */
.app-form-layout .form-horizontal .form-group > .col-md-8,
.app-form-layout .form-horizontal .form-group > .col-md-9,
.app-form-layout .form-horizontal .form-group > .col-md-7,
.app-form-layout .form-horizontal .form-group > .col-sm-8 {
  flex: 1 1 0;
  width: auto !important;
  max-width: none !important;
  padding-left: 0;
  padding-right: 0;
  float: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}

/* Legacy col-md-4 / col-sm-4 that are direct children of form-group
   (used as field wrappers on their own) */
.app-form-layout .form-horizontal .form-group > .col-md-4,
.app-form-layout .form-horizontal .form-group > .col-sm-4 {
  flex: 1 1 0;
  width: auto !important;
  max-width: none !important;
  padding-left: 0;
  padding-right: 0;
  float: none;
}

/* Nested radio/checkbox option columns inside the field wrapper */
.app-form-layout .form-horizontal .form-group > [class*="col-"] > .col-md-4,
.app-form-layout .form-horizontal .form-group > [class*="col-"] > .col-md-6,
.app-form-layout .form-horizontal .form-group > [class*="col-"] > .col-sm-4,
.app-form-layout .form-horizontal .form-group > [class*="col-"] > .col-sm-6,
.app-form-layout .form-horizontal .form-group > [class*="col-"] > .col-xs-12 {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
  padding-left: 0;
  padding-right: 20px;
  float: none;
}

/* Radio/checkbox labels inside option columns — inline, vertically centred */
.app-form-layout .form-horizontal .form-group > [class*="col-"] > [class*="col-"] > label,
.app-form-layout .form-horizontal .form-group > [class*="col-"] > [class*="col-"] > label input[type="radio"],
.app-form-layout .form-horizontal .form-group > [class*="col-"] > [class*="col-"] > label input[type="checkbox"] {
  display: inline;
  vertical-align: middle;
  margin-right: 6px;
  cursor: pointer;
}

.app-form-layout .form-horizontal .col-md-offset-1,
.app-form-layout .form-horizontal .col-md-offset-2,
.app-form-layout .form-horizontal .col-md-offset-3 {
  margin-left: 0;
}

.app-form-layout .form-horizontal .form-control,
.app-form-layout .form-horizontal .custom-file-input,
.app-form-layout .form-horizontal select.form-control {
  width: 100%;
  max-width: 100%;
  flex: 1 1 100%; /* fills the flex field-wrapper when it's the only child */
  border-radius: 8px;
  min-height: 42px;
}

.app-form-layout .form-horizontal .help-tips {
  flex: 1 1 100%;
  margin-left: calc(220px + 24px);
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 14px;
}

.app-form-layout .form-horizontal .form-group > .btn.pull-right,
.app-form-layout .form-horizontal .form-group > button.pull-right {
  position: absolute;
  right: 0;
  top: 0;
}

.app-form-layout .form-horizontal .form-group {
  position: relative;
  padding-right: 48px;
}

.app-form-layout .form-horizontal > p.pull-right.col-md-3 {
  flex: 1 1 100%;
  margin-left: calc(220px + 24px);
  float: none !important;
  width: auto !important;
  max-width: none !important;
  font-size: 14px;
  color: #64748b;
}

@media (max-width: 767px) {
  .app-form-layout .form-horizontal .control-label,
  .app-form-layout .form-horizontal label.control-label {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    padding-top: 0;
  }

  .app-form-layout .form-horizontal .help-tips,
  .app-form-layout .form-horizontal > p.pull-right.col-md-3 {
    margin-left: 0;
  }
}

/* Strip the grey card box around Landing Page / CTA section inside #subscription-features */
.app-form-layout #subscription-features > div[style] {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Remove gradient backgrounds from legacy form sections */
.app-form-layout .gradient-patternStart,
.app-form-layout .gradient-pattern2 {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* FormRow component */
.app-form-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.app-form-row__label {
  width: 220px;
  flex-shrink: 0;
  padding-top: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #334155;
}

.app-form-row__field {
  flex: 1;
  min-width: 0;
}

/* -----------------------------------------------------------------------------
   DataTable
   ----------------------------------------------------------------------------- */

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

.app-data-table thead th {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 16px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fafbfc;
}

.app-data-table tbody td {
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 16px;
}

.app-data-table tbody tr:last-child td {
  border-bottom: none;
}

.app-container .table.table-borderless {
  width: 100%;
}

.app-container .table.table-borderless thead th {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  padding: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.app-container .table.table-borderless tbody td {
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.app-container .table.table-borderless tbody tr:last-child td {
  border-bottom: none;
}

.app-container .table.table-borderless .spark-profile-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* -----------------------------------------------------------------------------
   ActionButtons
   ----------------------------------------------------------------------------- */

.app-action-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.app-action-buttons--end {
  justify-content: flex-end;
}

/* -----------------------------------------------------------------------------
   Navbar alignment
   ----------------------------------------------------------------------------- */

.navbar > .app-container::before,
.navbar > .app-container::after {
  display: table;
  content: " ";
}

.navbar > .app-container::after {
  clear: both;
}

/* Quick nav tiles in page headers */
.app-nav-tile {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #fff;
  color: #334155;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.app-nav-tile:hover {
  background: #f8fafc;
  color: #1a1f2e;
}

.app-nav-tile:focus,
.app-nav-tile:active {
  outline: none;
  box-shadow: 0 0 0 2px rgba(66, 134, 244, 0.3);
  background: #f1f5f9;
}

.app-nav-tile i {
  font-size: 24px;
  margin-bottom: 4px;
}

.app-nav-tile span,
.app-nav-tile div {
  font-size: 12px;
  line-height: 1.2;
}

/* -----------------------------------------------------------------------------
   Dashboard / grid helpers
   ----------------------------------------------------------------------------- */

.app-grid {
  display: grid;
  gap: 24px;
}

.app-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 991px) {
  .app-grid--2,
  .app-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* AR dashboard tiles keep working inside container */
.app-container .parallax,
.app-container .parallax2 {
  background: transparent;
}

/* -----------------------------------------------------------------------------
   AR experiences index (PushAR)
   ----------------------------------------------------------------------------- */

.ar-index-subtitle {
  margin: -8px 0 0;
}

.ar-team-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  border-radius: 10px;
  padding: 8px 14px;
}

.ar-team-switcher__photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.app-nav-tile--primary {
  border-color: rgba(223, 0, 0, 0.25);
  color: #c00;
}

.app-nav-tile--primary:hover {
  background: #fff5f5;
  color: #a00;
}

.ar-experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.ar-experience-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ar-experience-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.ar-experience-card--video {
  border-top: 4px solid #4ccc1e;
}

.ar-experience-card--3d {
  border-top: 4px solid #4286f4;
}

.ar-experience-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}

.ar-experience-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1f2e;
  word-break: break-word;
}

.ar-experience-card__type {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.ar-experience-card__type.is-video {
  background: #edf9e6;
  color: #3d8f12;
}

.ar-experience-card__type.is-3d {
  background: #e8f2ff;
  color: #2563eb;
}

.ar-experience-card__body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.ar-experience-card__target {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border-radius: 10px;
  background: #f1f5f9 url("/img/Transparency1000.jpg");
  background-size: cover;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-decoration: none !important;
}

.ar-experience-card__target--empty {
  cursor: default;
}

.ar-experience-card__media-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  color: #94a3b8;
  font-size: 11px;
  text-align: center;
  padding: 8px;
}

.ar-experience-card__media-placeholder.is-visible {
  display: flex;
}

.ar-experience-card__media-placeholder i {
  font-size: 28px;
}

.ar-experience-card__target-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.ar-experience-card__details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ar-experience-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ar-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.ar-badge--success {
  background: #dcfce7;
  color: #166534;
}

.ar-badge--muted {
  background: #f1f5f9;
  color: #64748b;
}

.ar-experience-card__cta img {
  max-width: 100%;
  max-height: 44px;
  border-radius: 6px;
}

.ar-experience-card__extras {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ar-experience-card__logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.ar-experience-card__description {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}

.ar-experience-card__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 6px;
  padding: 4px 8px;
  align-self: flex-start;
}

.ar-experience-card__actions {
  padding: 0 16px 12px;
}

.ar-experience-card__action-form {
  margin: 0;
}

.ar-experience-card__publish {
  margin-top: auto;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fafbfc;
}

.ar-experience-card__publish-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 10px;
}

.ar-experience-card__publish-form {
  margin: 0;
  flex-shrink: 0;
}

.ar-publish-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ar-publish-row__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.ar-publish-row__hint {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.ar-publish-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.ar-publish-chip--processing {
  background: #fff7ed;
  color: #c2410c;
}

.ar-publish-chip--staged {
  background: #fef2f2;
  color: #b91c1c;
}

.ar-publish-chip--waiting,
.ar-publish-chip--muted {
  background: #f1f5f9;
  color: #64748b;
}

.ar-publish-chip--inactive {
  background: #f8fafc;
  color: #475569;
}

.ar-publish-chip--live {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  padding: 6px 12px;
}

.ar-publish-chip .ar-status__loader {
  width: 14px;
  height: 14px;
  border-width: 2px;
  margin: 0;
}

.ar-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.ar-status strong {
  display: block;
  font-size: 14px;
}

.ar-status span {
  color: #64748b;
}

.ar-status--processing {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.ar-status--staged {
  background: #fef2f2;
  border: 1px solid #fecaca;
  flex-direction: column;
  align-items: flex-start;
}

.ar-status--waiting {
  margin: 8px 0 0;
  text-align: center;
  font-weight: 600;
  color: #64748b;
}

.ar-status--inactive {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.ar-status--live {
  justify-content: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 18px;
  padding: 14px;
}

.ar-status--live .glyphicon {
  font-size: 22px;
}

.ar-status__loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #fed7aa;
  border-top-color: #ea580c;
  border-radius: 50%;
  animation: ar-upload-spin 1s linear infinite;
  flex-shrink: 0;
}

.ar-status__content {
  flex: 1;
  min-width: 0;
}

.ar-experience-card__deeplink {
  margin-top: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
}

.ar-experience-card__deeplink-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.ar-experience-card__deeplink-url {
  display: block;
  font-size: 11px;
  word-break: break-all;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
}

.ar-experience-card__deeplink-url:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.ar-radio-group {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 7px;
  flex-wrap: wrap;
}

.ar-radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
}

.ar-radio-option input[type="radio"] {
  margin: 0;
  position: relative;
  top: 0;
}

.ar-empty-state,
.ar-access-denied {
  text-align: center;
  padding: 48px 24px;
}

.ar-empty-state__icon {
  font-size: 48px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.ar-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.ar-index-footer {
  display: flex;
  justify-content: center;
}

@media (max-width: 767px) {
  .ar-experience-card__body {
    grid-template-columns: 1fr;
  }

  .ar-experience-card__target {
    width: 100%;
    height: 160px;
  }

  .ar-team-switcher__toggle {
    max-width: 180px;
  }
}

/* Confirmation modal (replaces browser confirm on PushAR page) */
.ar-confirm-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ar-confirm-modal.is-visible {
  display: flex;
}

body.ar-confirm-modal-open {
  overflow: hidden;
}

.ar-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.ar-confirm-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  padding: 28px 24px 24px;
  text-align: center;
  animation: ar-confirm-in 0.18s ease-out;
}

@keyframes ar-confirm-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ar-confirm-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 16px;
  font-size: 22px;
}

.ar-confirm-modal__icon--danger {
  background: #fef2f2;
  color: #dc2626;
}

.ar-confirm-modal__icon--primary {
  background: #eff6ff;
  color: #2563eb;
}

.ar-confirm-modal__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  color: #1a1f2e;
}

.ar-confirm-modal__message {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: #64748b;
}

.ar-confirm-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.ar-confirm-modal__actions .btn {
  min-width: 110px;
  padding: 10px 18px;
  border-radius: 8px;
}

/* Upload overlay (moved from inline create styles) */
#ar-upload-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(40, 48, 60, 0.75);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

#ar-upload-overlay.is-visible {
  display: flex;
}

.ar-upload-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  max-width: 420px;
  width: 90%;
  padding: 32px 24px;
  text-align: center;
}

.ar-upload-modal .loader {
  margin: 0 auto 16px;
  display: block;
  border: 4px solid #e5eefc;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  animation: ar-upload-spin 1s linear infinite;
}

.ar-upload-modal h4 {
  margin: 0 0 10px;
  color: #2c3e50;
  font-weight: 600;
}

.ar-upload-modal p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

@keyframes ar-upload-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Alerts inside cards */
.app-container .alert {
  border-radius: 8px;
  margin-bottom: 24px;
}

/* -----------------------------------------------------------------------------
   Profile / team photo preview — settings pages
   Spark scopes .profile-photo-preview and .team-photo-preview inside
   .spark-screen which our custom sidebar-layout does not include, so we
   declare dimensions here without that scope.
   ----------------------------------------------------------------------------- */
.profile-photo-preview,
.team-photo-preview {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e2e8f0;
  background-color: #f1f5f9;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.profile-photo-wrapper,
.team-photo-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-sidebar-layout .panel-body .help-block {
  margin-top: 8px;
  color: #64748b;
  font-size: 13px;
}

.app-sidebar-layout .btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =============================================================================
   Bug fixes — UI polish batch
   ============================================================================= */

/* Fix: Extra black border on CreateAR / PushAR home buttons on hover/click */
.ar-home-btn,
.ar-home-btn:hover,
.ar-home-btn:focus,
.ar-home-btn:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: #abb9c2 !important;
  text-decoration: none !important;
}

/* Fix: Extra focus outline/border on PushAR button and all action buttons */
.js-ar-confirm-btn:focus,
.js-ar-confirm-btn:active,
.js-ar-confirm-btn:focus:active,
.ar-experience-card .btn:focus,
.ar-experience-card .btn:active,
.ar-confirm-modal__actions .btn:focus,
.ar-confirm-modal__actions .btn:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Fix: Extra shadow from create/edit form panels */
.app-form-layout .panel,
.app-form-layout .panel-default {
  box-shadow: none !important;
  border: 1px solid #e2e8f0 !important;
}

/* Fix: Remove extra top/bottom spacing inside form card header */
.app-form-layout .app-card__header {
  padding-bottom: 0;
}

/* Fix: Choose File input button overlap — ensure it sits below label */
.app-form-layout .form-horizontal input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-size: 13px;
}

/* Fix: bullet/list alignment in info sections */
.app-form-layout ul,
.app-form-layout ol {
  padding-left: 20px;
  margin: 8px 0 12px;
  font-size: 13px;
  line-height: 1.65;
  color: #475569;
}

.app-form-layout li {
  margin-bottom: 4px;
}

/* Fix: font size in help/tip text should be smaller */
.app-form-layout .help-tips,
.app-form-layout .help-block,
.app-form-layout p.text-muted,
.app-form-layout small {
  font-size: 13px !important;
  line-height: 1.55;
}

/* Fix: Extra space above first form group in panels */
.app-form-layout .panel-body > .form-group:first-child,
.app-form-layout .form-horizontal > .form-group:first-child {
  margin-top: 0;
}

/* Fix: Settings page — match live site panel styling */
.app-sidebar-layout .panel {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(15,23,42,.06);
}

.app-sidebar-layout .panel-heading {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 10px 10px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: #1a1f2e;
  padding: 14px 20px;
}

.app-sidebar-layout .panel-body {
  padding: 24px 20px;
}

/* Fix: Profile photo — ensure it always renders in sidebar settings pages */
.app-sidebar-layout .profile-photo-preview,
.app-sidebar-layout .team-photo-preview {
  display: block !important;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e2e8f0;
  background: #f1f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='%23cbd5e1'%3E%3Cpath d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E") center/50% no-repeat;
}

/* Copyright year — ensure footer text is readable */
.panel-footer .copyright,
footer .copyright {
  font-size: 12px;
  color: #94a3b8;
}
