/* Стили для alert-модалки с результатами загрузки */
.alert-modal-content .modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

.alert-message-content {
  color: #ddd;
  line-height: 1.6;
}

/* Общая информация */
.alert-summary {
  padding: 12px 16px;
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-summary.has-errors {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
}

.alert-summary-text {
  margin: 0;
  font-weight: 500;
}

/* Список результатов загрузки */
.upload-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.upload-result-item {
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-result-item.success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}

.upload-result-item.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.upload-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.upload-result-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.upload-result-item.success .upload-result-icon {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.upload-result-item.error .upload-result-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.upload-result-filename {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
  word-break: break-word;
}

.upload-result-error {
  margin: 0;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-size: 13px;
  color: #fca5a5;
  line-height: 1.5;
}

/* Простое текстовое сообщение (fallback) */
.alert-simple-message {
  padding: 16px;
  border-left: 4px solid transparent;
  border-radius: 8px;
  line-height: 1.6;
}

.alert-simple-message--error {
  background: rgba(239, 68, 68, 0.1);
  border-left-color: #ef4444;
  color: #fca5a5;
}

.alert-simple-message--success {
  background: rgba(34, 197, 94, 0.12);
  border-left-color: #22c55e;
  color: #bbf7d0;
}

.alert-simple-message--info {
  background: rgba(59, 130, 246, 0.12);
  border-left-color: #3b82f6;
  color: #bfdbfe;
}

/* Иконки статуса */
.status-icon-success::before {
  content: "✓";
}

.status-icon-error::before {
  content: "✕";
}

/* Скроллбар для списка ошибок */
.alert-modal-content .modal-body::-webkit-scrollbar {
  width: 8px;
}

.alert-modal-content .modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.alert-modal-content .modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.alert-modal-content .modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Базовые стили для модалок */
.modal {
  display: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal[aria-hidden="false"] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
