/* Базовые стили для карточек */
.card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.06);
}

/* Кнопки */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: #4361ee;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #2740c7;
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: white;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: rgba(239, 68, 68, 0.1);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ef4444;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

/* Бейджи статусов */
.badge-status-new {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  background-color: rgba(59, 130, 246, 0.1);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #3b82f6;
}

.badge-status-progress {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  background-color: rgba(234, 179, 8, 0.1);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #eab308;
}

.badge-status-review {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  background-color: rgba(168, 85, 247, 0.1);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a855f7;
}

.badge-status-closed {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  background-color: rgba(34, 197, 94, 0.1);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #22c55e;
}

/* Бейджи приоритетов */
.badge-priority-low {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  background-color: rgba(100, 116, 139, 0.1);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
}

.badge-priority-medium {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  background-color: rgba(59, 130, 246, 0.1);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #3b82f6;
}

.badge-priority-high {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  background-color: rgba(249, 115, 22, 0.1);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #f97316;
}

.badge-priority-critical {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  background-color: rgba(239, 68, 68, 0.1);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ef4444;
}

/* Инпуты */
.input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #0b1120;
  padding: 0.5rem 1rem;
  color: white;
  transition: all 0.2s ease;
}

.input:focus {
  border-color: #4361ee;
  outline: none;
  ring: 1px solid #4361ee;
}

.input::placeholder {
  color: #64748b;
}

.textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #0b1120;
  padding: 0.5rem 1rem;
  color: white;
  transition: all 0.2s ease;
}

.textarea:focus {
  border-color: #4361ee;
  outline: none;
  ring: 1px solid #4361ee;
}

.textarea::placeholder {
  color: #64748b;
}

.select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #0b1120;
  padding: 0.5rem 1rem;
  color: white;
  transition: all 0.2s ease;
}

.select:focus {
  border-color: #4361ee;
  outline: none;
  ring: 1px solid #4361ee;
}

/* Таблицы */
.table-container {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.03);
}

.table {
  min-width: 100%;
}

.table th {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.table td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.table tbody tr {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

/* Уведомления */
.alert-success {
  border-radius: 0.75rem;
  background-color: rgba(34, 197, 94, 0.1);
  padding: 1rem;
  color: #22c55e;
}

.alert-error {
  border-radius: 0.75rem;
  background-color: rgba(239, 68, 68, 0.1);
  padding: 1rem;
  color: #ef4444;
}

.alert-warning {
  border-radius: 0.75rem;
  background-color: rgba(245, 158, 11, 0.1);
  padding: 1rem;
  color: #f59e0b;
}

.alert-info {
  border-radius: 0.75rem;
  background-color: rgba(59, 130, 246, 0.1);
  padding: 1rem;
  color: #3b82f6;
}

/* Модальные окна */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  max-height: 90vh;
  width: 100%;
  max-width: 28rem;
  overflow-y: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #0b1120;
  padding: 1.5rem;
}