/* Import Upload Component Styling */

.import-page {
  padding: 2rem 0;
  background-color: var(--bg, #f9f9f9);
  min-height: calc(100vh - 200px);
}

.import-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.import-page h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text, #333);
}

.import-instructions {
  background-color: #f0f8ff;
  border-left: 4px solid var(--primary, #007bff);
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.import-instructions p {
  margin: 0;
  color: var(--muted, #555);
  font-size: 1rem;
}

/* Upload Component */
.import-upload-component {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.upload-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* File Input Styling */
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.upload-input-container {
  position: relative;
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--bg-secondary, #fafafa);
}

.upload-input-container:hover {
  border-color: var(--primary, #007bff);
  background-color: #f0f8ff;
}

.upload-input-container.drag-over {
  border-color: var(--primary, #007bff);
  background-color: #f0f8ff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.upload-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  color: var(--primary, #007bff);
}

.upload-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.upload-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.upload-main-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text, #333);
  margin: 0;
}

.upload-sub-text {
  font-size: 0.9rem;
  color: var(--muted, #666);
  margin: 0;
}

/* File Info Display */
.file-info-display {
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 4px;
  padding: 1rem;
  margin-top: 1rem;
}

.file-info-display p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text, #333);
}

.file-name {
  font-weight: 600;
}

.file-size {
  font-size: 0.85rem;
  color: var(--muted, #666);
}

/* Upload Actions */
.upload-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.upload-btn {
  min-width: 150px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Error Messages */
.error-message {
  background-color: var(--error-bg, #ffebee);
  border: 1px solid var(--error-border, #ef5350);
  border-left: 4px solid var(--error, #d32f2f);
  color: var(--error-text, #c62828);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  font-size: 0.95rem;
  animation: slideIn 0.3s ease;
}

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

/* Info Section */
.import-info {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
}

.import-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text, #333);
}

.import-info h3:first-child {
  margin-top: 0;
}

.import-info ul,
.import-info ol {
  margin: 0;
  padding-left: 1.5rem;
}

.import-info li {
  margin-bottom: 0.5rem;
  color: var(--muted, #555);
  line-height: 1.5;
}

.file-size-note {
  font-size: 0.95rem;
  color: var(--muted, #666);
  margin-bottom: 1rem;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .import-container {
    padding: 0 0.5rem;
  }

  .import-upload-component {
    padding: 1.5rem 1rem;
  }

  .upload-input-container {
    padding: 1.5rem;
  }

  .upload-icon {
    width: 36px;
    height: 36px;
  }

  .upload-main-text {
    font-size: 1rem;
  }

  .upload-sub-text {
    font-size: 0.85rem;
  }

  .upload-actions {
    flex-direction: column;
  }

  .upload-btn,
  .btn-secondary {
    width: 100%;
  }
}
