@use '../../../../shared/styles/panel-shared' as panel;

.import-result-container {
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: 0 auto;
}

.panel-header {
  @include panel.panel-header;
}

.dialog-content {
  padding: 1.5rem;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;

  @media (max-width: 480px) {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  text-align: center;
  padding: 1rem;
  background: var(--overlay-background);
  border-radius: 8px;

  .stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;

    &.total {
      color: var(--primary-color);
    }

    &.success {
      color: #22c55e;
    }

    &.failed {
      color: #ef4444;
    }
  }

  .stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary-color);
  }
}

.processed-info {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  margin-bottom: 1rem;

  .processed-label {
    font-size: 0.875rem;
    color: var(--text-secondary-color);
    margin-bottom: 0.25rem;
  }

  .processed-time {
    font-size: 1rem;
    font-family: monospace;
    color: var(--text-color);
  }
}

.results-list {
  max-height: 350px;
  overflow-y: auto;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.file-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid;
  transition: all 0.2s ease;

  &.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.4);

    .status-icon {
      color: #22c55e;
    }
  }

  &.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);

    .status-icon {
      color: #ef4444;
    }
  }

  .status-icon {
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
  }

  .file-details {
    display: flex;
    flex-direction: column;

    .file-name {
      font-weight: 500;
      font-size: 0.875rem;
      color: var(--text-color);
    }

    .file-message {
      font-size: 0.875rem;
      color: var(--text-secondary-color);
    }
  }
}
