@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #092f66;
  --secondary-color: #094296;
  --accent-color: #10b981;
  --bg-color: #f3f4f6;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
}

.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.spinner-wrapper {
  background-color: rgba(255, 255, 255, 0.9);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.3s ease;
}

.spinner-wrapper .fa-pulse {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.card-custom {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  padding: 2rem;
  margin-bottom: 2rem;
}

.nav-tabs {
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
}

.nav-tabs .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 1rem 1.5rem;
  transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
  color: var(--secondary-color);
  border-color: transparent;
}

.nav-tabs .nav-link.active {
  color: var(--secondary-color);
  background: transparent;
  border-color: transparent;
  border-bottom-color: var(--secondary-color);
}

.form-label {
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.input-group-text {
  background-color: #f9fafb;
  color: var(--text-muted);
  font-weight: 500;
}

.form-control, .form-select {
  border-color: var(--border-color);
  padding: 0.6rem 1rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(9, 66, 150, 0.25);
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.btn-success {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Mapping UI specific */
.mapping-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.mapping-box {
  flex: 1;
  background: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  min-height: 300px;
}

.mapping-item {
  background: white;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  cursor: grab;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.mapping-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.table-custom th {
  background-color: #f9fafb;
  color: var(--text-muted);
  font-weight: 600;
}

#createDatasetModal .modal-content > form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 3.5rem);
}

#createDatasetModal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.footer {
  margin-top: 4rem;
  padding: 2rem 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}
