:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #6366f1;
  --accent: #7c3aed;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --light: #f9fafb;
  --dark: #1f2937;
  --gray: #9ca3af;
  --gray-light: #e5e7eb;
  --gray-dark: #4b5563;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-color: #f3f4f6;
  color: #374151;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 16px 16px;
  border-bottom: 1px solid var(--gray-light);
}

.logo {
      display: flex;
      align-items: center;
      font-weight: bold;
      font-size: 1.5rem;
      color: var(--primary);
    }
    
    .logo span {
      color: var(--gray-800);
    }

.nav {
  display: flex;
  gap: 24px;
}

.nav-item {
  color: var(--gray-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s;
}

.nav-item:hover {
  color: var(--primary);
}

.nav-item.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.subtitle {
  font-size: 18px;
  color: var(--gray-dark);
  margin-bottom: 32px;
}

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin-bottom: 24px;
}

.card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.card-title svg {
  margin-right: 12px;
  color: var(--primary);
}

.steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 60%;
  right: 0;
  height: 2px;
  background-color: var(--gray-light);
  z-index: 1;
}

.step:last-child::after {
  display: none;
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--gray-light);
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  position: relative;
  z-index: 2;
  font-weight: 500;
}

.step.active .step-number {
  background-color: var(--primary);
  color: white;
}

.step.completed .step-number {
  background-color: var(--success);
  color: white;
}

.step-label {
  font-size: 14px;
  color: var(--gray-dark);
  font-weight: 500;
}

.step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

.step.completed .step-label {
  color: var(--success);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  font-size: 16px;
  background-color: white;
  transition: border-color 0.2s;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--light);
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.checkbox-item:hover {
  background-color: #eef2ff;
}

.checkbox-item input {
  margin-right: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: white;
  border: 1px solid var(--gray-light);
  color: var(--gray-dark);
}

.btn-secondary:hover {
  background-color: var(--gray-light);
}

.btn svg {
  margin-right: 8px;
}

.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

.flex {
  display: flex;
}

.gap-4 {
  gap: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.model-card {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.model-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

.model-card-selected {
  border-color: var(--primary);
  background-color: #eff6ff;
}

.model-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: #dbeafe;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.model-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.model-desc {
  font-size: 14px;
  color: var(--gray-dark);
}

.field-preview {
  display: flex;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  margin-bottom: 16px;
}

.document-preview {
  flex: 1;
  padding: 16px;
  background-color: #f9fafb;
  border-right: 1px solid var(--gray-light);
  min-height: 400px;
  overflow: auto;
}

.field-editor {
  flex: 1;
  padding: 16px;
}

.field-list {
  margin-top: 16px;
}

.field-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  margin-bottom: 8px;
}

.field-item-name {
  font-weight: 500;
}

.field-item-type {
  font-size: 14px;
  color: var(--gray-dark);
  background-color: var(--gray-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.field-item-actions {
  display: flex;
  gap: 8px;
}

.field-item-actions button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-dark);
}

.field-item-actions button:hover {
  color: var(--primary);
}

.upload-area {
  border: 2px dashed var(--gray-light);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
}

.upload-icon {
  font-size: 48px;
  color: var(--gray);
  margin-bottom: 16px;
}

.upload-text {
  margin-bottom: 16px;
}

.progress-container {
  margin-top: 16px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--gray-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary);
  width: 75%;
}

.confidence-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.confidence-bar {
  flex: 1;
  height: 8px;
  background-color: var(--gray-light);
  border-radius: 4px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background-color: var(--success);
}

.confidence-text {
  font-size: 14px;
  font-weight: 500;
}

.high-confidence {
  color: var(--success);
}

.medium-confidence {
  color: var(--warning);
}

.low-confidence {
  color: var(--danger);
}

.tab-navigation {
  display: flex;
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 20px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.validation-rule {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.validation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.validation-title {
  font-weight: 600;
}

.validation-body {
  background-color: #f9fafb;
  padding: 16px;
  border-radius: 4px;
}

.rule-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.rule-block {
  background-color: white;
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
}

.rule-field {
  background-color: #e0f2fe;
  border-color: #7dd3fc;
}

.rule-operator {
  background-color: #f0fdf4;
  border-color: #86efac;
}

.rule-value {
  background-color: #fef9c3;
  border-color: #fde047;
}

.rule-action {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--gray-light);
}

.workflow-canvas {
  min-height: 400px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 24px;
  background-color: #f9fafb;
  position: relative;
}

.workflow-node {
  position: absolute;
  width: 180px;
  background-color: white;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.node-start {
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e0f2fe;
  border-color: #7dd3fc;
}

.node-condition {
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f0fdf4;
  border-color: #86efac;
}

.node-action1 {
  top: 220px;
  left: 25%;
  transform: translateX(-50%);
  background-color: #fef9c3;
  border-color: #fde047;
}

.node-action2 {
  top: 220px;
  left: 75%;
  transform: translateX(-50%);
  background-color: #fef9c3;
  border-color: #fde047;
}

.node-end {
  top: 320px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fee2e2;
  border-color: #fca5a5;
}

.node-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.node-content {
  font-size: 12px;
  color: var(--gray-dark);
}

.workflow-line {
  position: absolute;
  background-color: var(--gray);
  z-index: 0;
}

.line-1 {
  width: 2px;
  height: 40px;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
}

.line-2 {
  width: 2px;
  height: 40px;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
}

.line-3 {
  width: 25%;
  height: 2px;
  top: 180px;
  left: 37.5%;
}

.line-4 {
  width: 25%;
  height: 2px;
  top: 180px;
  left: 50%;
}

.line-5 {
  width: 2px;
  height: 40px;
  top: 180px;
  left: 25%;
  transform: translateX(-50%);
}

.line-6 {
  width: 2px;
  height: 40px;
  top: 180px;
  left: 75%;
  transform: translateX(-50%);
}

.line-7 {
  width: 50%;
  height: 2px;
  top: 280px;
  left: 25%;
}

.line-8 {
  width: 2px;
  height: 40px;
  top: 280px;
  left: 50%;
  transform: translateX(-50%);
}

.tabs-container {
  margin-bottom: 32px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.ai-assistant {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.ai-assistant:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}
/* For demo purposes - switch between steps */
.step-content {
  display: none;
}

.step-content.active {
  display: block;
}
.step-content {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  padding: 2rem;
  margin-bottom: 2rem;
}

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.step-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-right: 1rem;
}
.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.step-subtitle {
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-hint {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid var(--gray-300);
  background-color: white;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

textarea.form-control {
  min-height: 6rem;
  resize: vertical;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 0.75rem;
  pointer-events: none;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
}

.btn-outline:hover {
  background-color: var(--gray-100);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.table-bordered{
      border: 1px solid #eee;
      width: 100%;
      padding: 10px;
      margin-bottom: 20px;
}
.table-bordered th,.table-bordered td{
  border-bottom: 1px solid #eee;
  padding: 5px 0;
}
.table-bordered tbody tr:last-child td{
  border-bottom: 0;
}
.layout {
    display: flex;
    min-height: calc(100vh - 4rem);
}
.sidebar {
    width: 250px;
    background-color: white;
    border-right: 1px solid var(--gray-200);
    padding: 1.5rem 0;
}
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu li {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}
.sidebar-menu li.active {
    background-color: var(--gray-100);
    color: var(--primary);
    font-weight: 500;
    border-left: 3px solid var(--primary);
}
.main-content {
    flex: 1;
    padding: 2rem;
    background-color: #f9fafb;
}

.chat-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensure content doesn't overflow rounded corners */
}

#chat-log {
    padding: 15px;
    height: 300px;
    overflow-y: scroll;
    border-bottom: 1px solid #ddd;
}

.message {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 20px;
    clear: both; /* Prevent floating issues */
    max-width: 70%; /* Limit message width for readability */
    word-wrap: break-word; /* Handle long words */
}

.user-message {
    background-color: #DCF8C6; /* Light green */
    float: right; /* Align to the right */
}

.bot-message {
    background-color: #ECE5DD; /* Light gray */
    float: left; /* Align to the left */
}

.input-area {
    padding: 10px;
}

#user-input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

#send-button {
    padding: 8px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#send-button:hover {
    background-color: #0056b3;
}
.bio{
  position: relative;
}
.bio sup{
    color: red;
    position: absolute;
    top: -12px;
    right: -14px;
}
.sidebar-menu a{
      text-decoration: none;
    color: var(--primary);
}
.spanner, .overlay {
    opacity: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    visibility: hidden;
    top: 0;
    z-index: 1000;
}
.spanner {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    display: block;
    text-align: center;
    height: 300px;
    color: #fff;
    transform: translateY(-50%);
    z-index: 1001;
    visibility: hidden;
}
.loader {
    color: #ffffff;
    font-size: 10px;
    margin: 80px auto;
    position: relative;
    text-indent: -9999em;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}
.loader, .loader:before, .loader:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation: load7 1.8s infinite ease-in-out;
    animation: load7 1.8s infinite ease-in-out;
}
.spanner.show, .overlay.show {
    opacity: 1;
        visibility: visible;
}
@-webkit-keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}
@keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.card {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}
.sidebar-heading {
    padding: 1.25rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    font-weight: 600;
}