:root {
  --portal-primary: #1e3a5f;
  --portal-primary-light: #2d5a8e;
  --portal-accent: #0d6efd;
  --portal-bg: #f4f6f9;
  --portal-card-radius: 12px;
}

body {
  background-color: var(--portal-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.portal-navbar {
  background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-light) 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.logo-placeholder {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.portal-card {
  background: #fff;
  border-radius: var(--portal-card-radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.drop-zone {
  border: 2px dashed #c5cdd8;
  border-radius: var(--portal-card-radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  background: #fafbfc;
}

.drop-zone:hover,
.drop-zone:focus {
  border-color: var(--portal-accent);
  background: #f0f6ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.drop-zone.drag-over {
  border-color: var(--portal-accent);
  background: #e8f1ff;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.file-preview {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.format-example {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  white-space: pre-wrap;
  font-family: 'Consolas', 'Monaco', monospace;
}

.portal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}

.status-badge {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35em 0.75em;
}

.status-created {
  background-color: #d1e7dd;
  color: #0f5132;
}

.status-failed {
  background-color: #f8d7da;
  color: #842029;
}

.status-pending {
  background-color: #fff3cd;
  color: #664d03;
}

.task-id-link {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.875rem;
}

@media (max-width: 576px) {
  .drop-zone {
    padding: 2rem 1rem;
  }

  .table-responsive {
    font-size: 0.875rem;
  }
}
