/* Стили для секции задач */

/* Карточка задач */
.task-card {
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  padding: 0.5rem;
}

/* Поиск задач */
.task-search-container {
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.5rem;
}

.task-search-container .input-group {
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.task-search-container .input-group:focus-within {
  background: #fff;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.task-search-container .input-group-text {
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: none;
  color: #6c757d;
}

.task-search-container .form-control {
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  padding: 0.35rem 0.5rem;
  height: calc(1.5em + 0.7rem + 2px);
}

.task-search-container .form-control:focus {
  box-shadow: none;
}

.task-search-container .fa-search {
  font-size: 0.75rem;
}

/* Список задач */
.task-list {
  max-height: 235px;
  overflow-y: auto;
  padding: 0.25rem;
  margin: 0 -0.25rem;
}

/* Элемент задачи */
.task-item {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  background: #fff;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
  position: relative;
  cursor: pointer;
}

.task-item:last-child {
  margin-bottom: 0;
}

.task-item:hover {
  border-color: #4a90e2;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(74, 144, 226, 0.08);
}

.task-item:active {
  transform: translateY(0);
}

/* Заголовок задачи */
.task-header {
  padding: 0.5rem 0.75rem !important;
  background: transparent !important;
  border: none !important;
}

/* Информация о задаче */
.task-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-icon {
  color: #6c757d;
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.task-date {
  color: #495057;
  font-size: 0.8125rem;
  font-weight: 500;
}

.task-item:hover .task-icon,
.task-item:hover .task-date {
  color: #4a90e2;
}

/* Бейджи */
.task-badge {
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: 4px;
  color: white;
  background: var(--primary-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Действия */
.task-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-view-btn,
.task-menu {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: transparent;
}

.task-view-btn:hover,
.task-menu:hover {
  background: rgba(74, 144, 226, 0.08);
  color: #4a90e2;
}

.task-view-btn i,
.task-menu i {
  font-size: 0.75rem;
}

/* Выпадающее меню */
.task-dropdown-item {
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.task-dropdown-item i {
  font-size: 0.75rem;
  color: #6c757d;
  transition: color 0.2s ease;
}

.task-dropdown-item:hover {
  background: rgba(74, 144, 226, 0.08) !important;
  color: #4a90e2 !important;
}

.task-dropdown-item:hover i {
  color: #4a90e2;
}

.dropdown-menu {
  padding: 0.25rem;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Модальное окно */
.task-modal {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.task-modal .modal-header {
  padding: 1rem 1.25rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.task-modal .modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
}

.task-modal .close {
  padding: 0.5rem;
  margin: -0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.task-modal .close:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: rotate(90deg);
}

.task-modal .modal-body {
  padding: 1.25rem;
}

.task-content {
  color: #495057;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.task-modal .modal-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #e9ecef;
}

/* Полоса прокрутки */
.task-list::-webkit-scrollbar {
  width: 4px;
}

.task-list::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 2px;
}

.task-list::-webkit-scrollbar-thumb {
  background: #dee2e6;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.task-list::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}

/* Пустое состояние */
.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: #6c757d;
}

.empty-state p {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.empty-icon {
  font-size: 1.5rem;
  color: #adb5bd;
  opacity: 0.5;
}

/* Адаптивность */
@media (min-width: 768px) {
  .task-modal .modal-dialog {
    max-width: 550px;
  }
} 