/* === TaskManager Main Styles === */

/* Общие настройки */
body {
    background-color: #f5f6fa;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Навбар */
.navbar {
    background: linear-gradient(90deg, #343a40 0%, #23272b 100%);
    border-bottom: 2px solid #222;
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar .nav-link {
    color: #cfd2d6 !important;
    transition: 0.2s;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Контейнер основного контента */
main.container {
    flex: 1;
}

/* Карточки задач */
.task-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e2e2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.task-card h5 {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.task-meta {
    font-size: 0.9rem;
    color: #666;
}

/* Статусы задач */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.status-new {
    background-color: #3498db;
}

.status-in_progress {
    background-color: #f39c12;
}

.status-done {
    background-color: #2ecc71;
}

/* Кнопки */
.btn-primary {
    background-color: #0d6efd;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.btn-danger {
    border-radius: 8px;
}

/* Формы */
form {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

form .form-control {
  border-radius: 0.75rem;
  box-shadow: none;
}

form .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

.card {
  border-radius: 1rem !important;
}

form label {
    font-weight: 500;
}

input[type="text"],
input[type="date"],
textarea,
select {
    border-radius: 8px !important;
}

/* Подвал */
footer {
    font-size: 0.85rem;
    background-color: #23272b;
}

/* Анимация сообщений */
.alert {
    border-radius: 10px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Мелкие правки */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Категории (теги) === */
.btn-outline-category {
  border-radius: 20px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1.5px solid #ccc;
  transition: all 0.2s ease;
  background-color: #fff;
}

.btn-outline-category:hover {
  background-color: #f5f5f5;
  transform: translateY(-1px);
}

/* Активное состояние (при выборе чекбокса) */
.btn-check:checked + .btn-outline-category {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Цвета по названиям категорий */
label[for*="Курсы"],
label[for*="kursy"] {
  background-color: #28a745 !important;
}

label[for*="Конкурсы"],
label[for*="konkursy"] {
  background-color: #0d6efd !important;
}

label[for*="Госзаказ"],
label[for*="goszakaz"] {
  background-color: #dc3545 !important;
}

label[for*="Совместные"],
label[for*="sovmestnye"] {
  background-color: #fd7e14 !important;
}

label[for*="Платные"],
label[for*="platnye"] {
  background-color: #ffc107 !important;
}

/* Активное состояние — слегка ярче */
.btn-check:checked + label[for*="kursy"],
.btn-check:checked + label[for*="Курсы"] {
  background-color: #218838 !important;
}
.btn-check:checked + label[for*="konkursy"],
.btn-check:checked + label[for*="Конкурсы"] {
  background-color: #0b5ed7 !important;
}
.btn-check:checked + label[for*="goszakaz"],
.btn-check:checked + label[for*="Госзаказ"] {
  background-color: #c82333 !important;
}
.btn-check:checked + label[for*="sovmestnye"],
.btn-check:checked + label[for*="Совместные"] {
  background-color: #e8590c !important;
}
.btn-check:checked + label[for*="platnye"],
.btn-check:checked + label[for*="Платные"] {
  background-color: #e0a800 !important;
}

.bg-purple {
  background-color: #6f42c1 !important;
}
