body {
  font-family: "Inter", sans-serif;
  background-color: #f3f4f6;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  color: #111827;
}

#app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

#main-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  padding-bottom: 6rem;
  padding-top: 4.5rem; /* 👈 добавляем, чтобы контент не лез под шапку */
}

#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 1000;
}

/* Заголовок */
#header-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2563eb;
}

/* Карточки объявлений */
.ad-card {
  background-color: #f9fafb;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}
.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}
.ad-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e3a8a;
}
.ad-card p {
  font-size: 0.95rem;
  color: #374151;
}

/* Формы */
input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Кнопки */
button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  border: none;
}

button.primary {
  background-color: #2563eb;
  color: #fff;
}
button.primary:hover {
  background-color: #1e40af;
}
button.secondary {
  background-color: #f3f4f6;
  color: #111827;
}
button.secondary:hover {
  background-color: #e5e7eb;
}
button:active {
  transform: scale(0.97);
}

/* Спиннер */
.loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #2563eb;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
  margin: auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Навигация */
.nav-button {
  transition: color 0.3s;
}
.nav-button.active {
  color: #2563eb;
}
.nav-button:hover {
  color: #3b82f6;
}

/* Превью карточки */
#preview-card {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
#preview-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
#preview-card p {
  font-size: 1rem;
  opacity: 0.9;
}
