/* =========================================================
   GLOBAL FOOTER
   koristi theme varijable iz config.js
========================================================= */

.appFooter{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:950;
  padding:8px calc(10px + var(--safeRight)) calc(8px + var(--safeBottom)) calc(10px + var(--safeLeft));
  background:transparent;
}

.appFooterInner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:40px;
  padding:7px 12px;

  border-radius:12px;
  border:1px solid var(--cardBorder);

  background:var(--footerBg, linear-gradient(
    180deg,
    color-mix(in srgb, var(--headerBg) 20%, white),
    color-mix(in srgb, var(--headerBg) 10%, white)
  ));

  color:var(--footerText, var(--tableText, #1e2b3d));
  box-shadow:0 6px 14px rgba(0,0,0,.05);

  flex-wrap:nowrap;
  white-space:nowrap;
  overflow-x:auto;
  overflow-y:hidden;

  -ms-overflow-style:none;
  scrollbar-width:none;
}

.appFooterLogo{
  height:24px;
  width:auto;
  display:block;
  flex:0 0 auto;
}

.appFooterCenter{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:0 1 auto;
  min-width:max-content;

  font-size:12px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
}

.appFooterInner::-webkit-scrollbar{
  display:none;
}

.appFooterLeft{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.appFooterCenter a,
.appFooterLink{
  color:var(--footerText, var(--tableText, #1e2b3d));
  text-decoration:none;
  font-weight:700;
}

.appFooterCenter a:hover,
.appFooterLink:hover{
  text-decoration:underline;
}

.appFooterVersion,
.appFooterUpdated{
  opacity:.85;
  white-space:nowrap;
}

.footerSep{
  opacity:.55;
  flex:0 0 auto;
  color:var(--footerText, var(--tableText, #1e2b3d));
}

.footerLegalLinks{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;
  white-space:nowrap;
}

/* =========================================
   FOOTER — MOBILE OPTIMIZATION
========================================= */

@media (max-width:640px){
  .appFooter{
    padding:8px calc(8px + var(--safeRight)) calc(8px + var(--safeBottom)) calc(8px + var(--safeLeft));
  }

  .appFooterInner{
    min-height:34px;
    padding:7px 10px;
    gap:8px;
  }

  .appFooterLogo{
    height:18px;
  }

  .appFooterCenter{
    gap:6px;
    font-size:10px;
    font-weight:600;
  }

  .footerLegalLinks{
    gap:6px;
  }
}