/* Resume Import Pages */

/* ============================================================
   From: app/views/resume_imports/new.html.erb
   ============================================================ */

.resume-import-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.resume-import-header {
  margin-bottom: 3rem;
  text-align: center;
}

.resume-import-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.resume-import-header .subtitle {
  font-size: 1.1rem;
  color: #666;
}

.resume-import-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

@media (max-width: 768px) {
  .resume-import-content {
    grid-template-columns: 1fr;
  }
}

.upload-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.upload-card {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 2rem;
  background: #f9f9f9;
}

.upload-icon {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #2563eb;
}

.upload-form {
  margin-bottom: 1rem;
}

.file-input-label {
  display: block;
  cursor: pointer;
  border: 2px dashed #2563eb;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background: white;
  transition: all 0.3s ease;
}

.file-input-label:hover {
  border-color: #1d4ed8;
  background: #f0f7ff;
}

.resume-import-container .file-input {
  display: none;
}

.file-input-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.file-input-icon {
  font-size: 2rem;
}

.file-input-text {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.file-input-hint {
  color: #666;
  font-size: 0.9rem;
}

.file-preview {
  background: #e8f5e9;
  border: 1px solid #4caf50;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-preview-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-preview-name {
  font-weight: 600;
  color: #333;
}

.file-preview-remove {
  background: none;
  border: none;
  color: #d32f2f;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  width: 100%;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.upload-requirements {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
}

.upload-requirements h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.upload-requirements ul {
  list-style: none;
  padding: 0;
}

.upload-requirements li {
  padding: 0.5rem 0;
  color: #666;
}

.upload-benefits {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
}

.upload-benefits h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.benefit-item {
  display: flex;
  gap: 0.75rem;
}

.benefit-icon {
  font-size: 1.5rem;
}

.benefit-text h4 {
  margin: 0;
  font-size: 0.95rem;
}

.benefit-text p {
  margin: 0.25rem 0 0 0;
  font-size: 0.85rem;
  color: #666;
}

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

.help-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
}

.help-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: #333;
}

.help-card ul,
.help-card ol {
  margin: 0;
  padding-left: 1.5rem;
  color: #666;
  font-size: 0.9rem;
}

.help-card li {
  margin-bottom: 0.5rem;
}

.navigation-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-secondary {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  background: #e5e7eb;
  color: #333;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #d1d5db;
}

/* ============================================================
   From: app/views/resume_imports/create.html.erb
   ============================================================ */

.import-header {
  margin-bottom: 1.5rem;
}

.import-subtitle {
  color: var(--muted, #6b7280);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

.import-help-text {
  background-color: #f3f4f6;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.import-help-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text, #0f172a);
}

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

.import-help-text ul,
.import-help-text ol {
  margin: 0.5rem 0 1rem 1.5rem;
  padding: 0;
}

.import-help-text li {
  margin-bottom: 0.5rem;
  color: var(--text, #0f172a);
}

.file-size-note {
  color: var(--muted, #6b7280);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.import-privacy-note {
  display: flex;
  gap: 1rem;
  background-color: #ecfdf5;
  border: 1px solid #d1fae5;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 2rem;
  align-items: flex-start;
}

.privacy-icon {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.import-privacy-note p {
  margin: 0;
  color: var(--text, #0f172a);
  font-size: 0.95rem;
}

.import-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border, #e5e7eb);
  text-align: center;
}

.link-secondary {
  color: var(--primary, #007bff);
  text-decoration: none;
  font-weight: 500;
}

.link-secondary:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .import-container {
    padding: 0 1rem;
  }

  .import-page h1 {
    font-size: 1.75rem;
  }

  .import-help-text {
    padding: 1rem;
  }

  .import-privacy-note {
    gap: 0.75rem;
  }
}

/* ============================================================
   From: app/views/resume_imports/history.html.erb
   ============================================================ */

.history-table-wrapper {
  background: white;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.history-table thead {
  background-color: var(--bg-secondary, #f9fafb);
  border-bottom: 2px solid var(--border, #e5e7eb);
}

.history-table th {
  text-align: left;
  padding: 1rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  white-space: nowrap;
}

.history-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border, #e5e7eb);
  color: var(--text, #0f172a);
}

.history-table tbody tr:last-child td {
  border-bottom: none;
}

.history-table tbody tr:hover {
  background-color: var(--bg-secondary, #f9fafb);
}

.filename-col {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-icon {
  font-size: 1.5rem;
}

.filename {
  font-weight: 500;
  max-width: 250px;
  word-break: break-word;
}

.file-size-badge {
  display: inline-block;
  background-color: rgba(107, 114, 128, 0.1);
  color: #6b7280;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.status-col {
  width: 120px;
}

.date-col {
  width: 140px;
  text-align: center;
}

.time-value {
  display: block;
  font-size: 0.85rem;
  color: var(--muted, #6b7280);
}

.summary-col {
  min-width: 200px;
}

.summary-items {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.summary-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.status-text {
  color: var(--muted, #6b7280);
  font-style: italic;
}

.status-text.error {
  color: #ef4444;
}

.actions-col {
  width: 200px;
  text-align: center;
}

.action-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.action-link {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.action-link-details {
  color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.1);
}

.action-link-details:hover {
  background-color: rgba(59, 130, 246, 0.2);
}

.action-link-retry {
  color: #10b981;
  background-color: rgba(16, 185, 129, 0.1);
}

.action-link-retry:hover {
  background-color: rgba(16, 185, 129, 0.2);
}

.action-link-delete {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

.action-link-delete:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--bg-secondary, #f9fafb);
  border: 2px dashed var(--border, #e5e7eb);
  border-radius: 8px;
}

.empty-state-content {
  max-width: 400px;
  margin: 0 auto;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state-message {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  margin-bottom: 0.75rem;
}

.empty-state-description {
  font-size: 1rem;
  color: var(--muted, #6b7280);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.history-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border, #e5e7eb);
}

@media (max-width: 1024px) {
  .history-table {
    font-size: 0.9rem;
  }

  .history-table th,
  .history-table td {
    padding: 0.75rem;
  }

  .filename {
    max-width: 150px;
  }

  .summary-items {
    gap: 0.5rem;
  }

  .summary-item {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
  }
}

@media (max-width: 768px) {
  .history-table-wrapper {
    overflow-x: auto;
  }

  .history-table {
    font-size: 0.85rem;
    min-width: 800px;
  }

  .history-table th,
  .history-table td {
    padding: 0.75rem 0.5rem;
  }

  .date-col {
    width: 100px;
  }

  .actions-col {
    width: 150px;
  }

  .action-links {
    gap: 0.35rem;
  }

  .action-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .empty-state {
    padding: 2rem 1rem;
  }

  .empty-state-icon {
    font-size: 2.5rem;
  }

  .empty-state-message {
    font-size: 1.25rem;
  }

  .empty-state-description {
    font-size: 0.9rem;
  }
}
