/* --- Общие настройки --- */
body {
  font-family: 'Inter', sans-serif;
  background: #121212;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* --- Заголовки --- */
h1 {
  font-weight: 600;
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 30px;
  text-align: center;
}

/* --- Вкладки --- */
.nav-tabs .nav-link {
  color: #e0e0e0;
  background-color: #1f1f1f;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
  color: #ffd700;
  background-color: #121212;
  border-bottom: 2px solid #ffd700;
}

.nav-tabs .nav-link:hover {
  color: #ffd700;
}

/* --- Карточки категорий --- */
.category-card, .card {
  border-radius: 12px;
  padding: 12px 16px;
  margin: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  font-weight: 500;
  cursor: default;
  color: #f0f0f0;
}

.category-card:hover, .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.7);
}

/* --- Альфа и ВТБ карточки --- */
.alfa {
  background: linear-gradient(135deg, rgb(239, 49, 36), rgb(255, 120, 115));
  color: #fff !important;
}

.vtb {
  background: linear-gradient(135deg, rgb(0, 123, 255), rgb(102, 178, 255));
  color: #fff !important;
}

/* Смешанный градиент: красный Alfa + синий VTB */
.mixed {
    background: linear-gradient(135deg, rgb(239, 49, 36), rgb(0, 123, 255));
    color: #FFF !important;
}

.popular-category.selected {
    background-color: #198754; /* зелёный фон */
    color: #fff;
    border-color: #157347;
}

/* --- Популярные категории --- */
.popular-category {
  border: 1px solid #555;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #1f1f1f;
  color: #e0e0e0;
  transition: all 0.2s ease;
}

.popular-category:hover {
  background-color: #2c2c2c;
}

.popular-category.selected {
  background-color: #ffd700;
  color: #121212;
  border-color: #ffd700;
}

/* --- Inputs и select --- */
input[type="number"], input[type="text"], .form-select {
  background-color: #1f1f1f !important;
  border: 1px solid #555 !important;
  color: #f0f0f0 !important;
  border-radius: 8px;
  padding: 6px 10px;
  transition: all 0.2s ease;
}

/* Placeholder для input */
input::placeholder {
  color: #999;
  opacity: 1;
}
input::-webkit-input-placeholder { color: #999; }
input::-moz-placeholder { color: #999; }
input:-ms-input-placeholder { color: #999; }
input:-moz-placeholder { color: #999; }

/* Options внутри select */
.form-select option {
  background-color: #1f1f1f;
  color: #f0f0f0;
}

/* Фокус */
input:focus, .form-select:focus {
  border-color: #ffd700 !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
  outline: none;
}

/* --- Кнопки --- */
button, .btn {
  background-color: #1a1a1a;
  border: 1px solid #555;
  color: #ffd700;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

button:hover, .btn:hover {
  background-color: #333;
  border-color: #ffd700;
  color: #ffd700;
}

/* --- Секции --- */
#currentMonthCategories, #nextMonthCategories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

#nextMonthBlock {
  margin-top: 30px;
}

#selectedCategories {
  display: flex;
  flex-direction: column;
}

/* --- Иконки --- */
i[class^="bi"] {
  font-size: 1.8rem;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background-color: #121212;
}
.input-group-text {
    display: flex;
    align-items: center;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #f0f0f0 !important;           /* светлый текст */
    text-align: center;
    white-space: nowrap;
    background-color: #1f1f1f !important; /* тёмный фон */
    border: 1px solid #555 !important;    /* границы */
    border-radius: 8px;
}

/* Поле для новой категории */
.new-category-input {
    background-color: #1f1f1f !important;
    color: #f0f0f0 !important;           /* текст внутри input */
    border: 1px solid #555 !important;
    border-radius: 8px;
    padding: 6px 10px;

    /* Placeholder */
    --bs-placeholder-color: #999 !important;
}

/* Если используешь placeholder для браузеров, на всякий случай */
.new-category-input::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}
/* Контейнер с карточками категорий */
#currentMonthCategories, 
#nextMonthCategories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  justify-content: center;
}
