body {
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #212529;
}

/* Jeśli używasz .page-content – zostawiam, ale teraz nie jest potrzebne */
.page-content{
  padding-top: 8px;
}

/* Dark */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #212529;
    color: #dee2e6;
  }
  .form-text { color:#dee2e6; }
}

/* Stare klasy dark-mode – mogą zostać, ale nie są używane */
body.dark-mode {
  background-color: #212529;
  color: #dee2e6;
}
.form-text.dark-mode{ color: #dee2e6; }

.hidden {
  display: none;
}

.wynik-blad {
  color: red;
  font-weight: bold;
}

#clearInput {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  opacity: .4;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
  animation: fadeInScale .12s ease;
}

#clearInput:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
}

@keyframes fadeInScale {
  from { opacity: 0; transform: translateY(-50%) scale(.7); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* Suggestions domyślnie niewidoczne */
#suggestions {
  display: none;
  margin-top: .5rem;
}

/* Safe area */
:root{
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

/* Żeby treść nie wjeżdżała pod system */
body{
  padding-top: 0;
  padding-bottom: var(--safe-bottom);
}

/* Sticky nagłówek */
.app-header{
  position: sticky;
  top: 0;
  z-index: 1000;

  padding-top: calc(var(--safe-top) + 10px);
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 12px;

  background: rgba(20, 24, 31, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.island-row{
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.island-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 12px;
  border-radius: 999px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);

  font-size: 12px;
  line-height: 1;
}

.island-chip .dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61,220,132,0.15);
}

.app-title{
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.92);
}

/* Footer */
.app-footer{
  border-top: 1px solid rgba(0,0,0,.08);
}

@media (prefers-color-scheme: dark) {
  .app-footer{
    border-top: 1px solid rgba(255,255,255,.10);
  }
}

@media (min-width: 768px){
  .island-row{ justify-content: flex-start; }
}
