/* 📦 Общие стили */
body {
  background-color: #f8f9fa;
  font-family: Arial, sans-serif;
  color: #333;
}

h2,
h3,
h4 {
  font-weight: 600;
}

.card {
  border-radius: 8px;
}

/* 🧭 Навигация */
.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
}

/* .navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: #dee2e6;
} */

/* ✍️ Формы */
.form-label {
  font-weight: 500;
}

input.form-control,
select.form-control {
  border-radius: 6px;
}

/* 📎 Вложения */
.list-group-item {
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
}

/* Стилизация страниц ошибок */
.error-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  background: #f9f9f9;
}

.error-container h1 {
  color: #d32f2f;
  margin-bottom: 1rem;
}

.error-container p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.debug-info {
  margin: 2rem 0;
  padding: 1rem;
  background: #fff3f3;
  border-left: 4px solid #d32f2f;
  text-align: left;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.08);
  }

  60% {
    transform: scale(0.96);
  }

  100% {
    transform: scale(1);
  }
}

.installed-pop {
  animation: pop 600ms ease;
}

#installToast {
  animation: fadeInUp 0.6s ease-in-out;
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 📱 Адаптация */
@media (max-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }

    .download-extension-btn {
      display: none !important;
    }

  .btn {
    font-size: 0.9rem;
  }


  .table th,
  .table td {
    font-size: 0.85rem;
  }



  .table-responsive {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
  }



  /* Обрезка длинных имен */
  .text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Иконки файлов */
  [class^="file-icon-"] {
    font-size: 1.2em;
    margin-right: 0.5rem;
  }

  /* Стили для отладки */
  .debug-info pre {
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
  }

  .btn:hover {
    background: #1565c0;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.1rem;
  }

  .table-responsive {
    font-size: 0.8rem;
  }
}

/* 💡 Flash-сообщения */
.alert {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}