/* Dashboard Layout */

.dashboard-container {
  min-height: 100vh;
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dashboard-nav {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.dashboard-nav-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: #0f172a;
  text-decoration: none;
}

.dashboard-logo-icon {
  font-size: 1.5rem;
}

.dashboard-nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-email {
  font-size: 0.875rem;
  color: #64748b;
}

.nav-button {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-button-secondary {
  background: #f1f5f9;
  color: #475569;
}

.nav-button-secondary:hover {
  background: #e2e8f0;
}

/* Dashboard Content */

.dashboard-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.dashboard-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.btn-create {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #6366f1;
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-create:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Empty State */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 1rem;
  border: 2px dashed #e2e8f0;
}

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

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.empty-state-description {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Agent Cards Grid */

.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
  gap: 1.5rem;
}

.agent-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.agent-card-header {
  margin-bottom: 1.25rem;
}

.agent-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.agent-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: fit-content;
}

.agent-status-active {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.agent-status-inactive {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.agent-description {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  flex-grow: 1;
}

.agent-description-empty {
  font-style: italic;
  color: #94a3b8;
}

.agent-share-link {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.agent-share-link-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.agent-share-link-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agent-share-link-input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: white;
  color: #475569;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
  transition: border-color 0.2s;
}

.agent-share-link-input:focus {
  outline: none;
  border-color: #6366f1;
}

.agent-share-link-button {
  padding: 0.625rem 1rem;
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  transition: all 0.2s;
}

.agent-share-link-button:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.agent-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.agent-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agent-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: auto;
}

.btn-agent {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-agent-primary {
  background: #6366f1;
  color: white;
  box-shadow: 0 1px 2px rgba(99, 102, 241, 0.1);
}

.btn-agent-primary:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-agent-secondary {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-agent-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-agent-danger {
  background: white;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn-agent-danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  transform: translateY(-1px);
}

/* Form Styles */

.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.form-header {
  margin-bottom: 2rem;
}

.form-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.form-description {
  font-size: 1rem;
  color: #64748b;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
}

.form-field-hint {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.form-field-input,
.form-field-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #0f172a;
  transition: all 0.2s;
  font-family: inherit;
}

.form-field-input:focus,
.form-field-textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-field-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.btn-form {
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-form-primary {
  flex: 1;
  background: #6366f1;
  color: white;
}

.btn-form-primary:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-form-secondary {
  background: #f1f5f9;
  color: #475569;
}

.btn-form-secondary:hover {
  background: #e2e8f0;
}

/* Flash Messages */

.flash-messages {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem 0;
}

.flash-message-dashboard {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.flash-message-dashboard.alert {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.flash-message-dashboard.notice {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Agent Detail Page */

.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: #0f172a;
}

.agent-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.agent-detail-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.agent-detail-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.agent-detail-header-actions {
  display: flex;
  gap: 0.75rem;
}

.btn-action {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-action-primary {
  background: #6366f1;
  color: white;
}

.btn-action-primary:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-action-secondary {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-action-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.agent-detail-description {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
}

/* Stats Grid */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-card-link {
  cursor: pointer;
  padding: 0;
}

.stat-card-link-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.stat-icon {
  font-size: 2rem;
  line-height: 1;
}

.stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

.stat-value-small {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.stat-label {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Agent Detail Sections */

.agent-detail-section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.instructions-box {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  color: #475569;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Conversations List */

.conversations-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.conversation-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.2s;
}

.conversation-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: #fafbfc;
  border-bottom: 1px solid #e2e8f0;
}

.conversation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
}

.conversation-id {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
  color: #475569;
  font-weight: 600;
}

.conversation-time {
  color: #64748b;
}

.conversation-ip {
  color: #94a3b8;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;
}

.conversation-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.conversation-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.conversation-message-count {
  color: #6366f1;
}

.toggle-icon {
  color: #94a3b8;
  font-size: 0.75rem;
}

.conversation-messages {
  padding: 1.5rem;
  background: #fafbfc;
}

/* Messages List */

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.2s;
}

.message:hover {
  border-color: #cbd5e1;
}

.message-user {
  border-left: 3px solid #6366f1;
}

.message-assistant {
  border-left: 3px solid #10b981;
}

.message-system {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
}

.message-role {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.message-content {
  color: #0f172a;
  line-height: 1.7;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.message-time {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Pagination & Notes */

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.pagination-button {
  padding: 0.75rem 1.5rem;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.pagination-button:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pagination-button-disabled {
  padding: 0.75rem 1.5rem;
  background: #f1f5f9;
  color: #94a3b8;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: not-allowed;
  white-space: nowrap;
}

.pagination-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.pagination-pages {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.pagination-items {
  font-size: 0.8125rem;
  color: #64748b;
}

.conversation-note {
  text-align: center;
  padding: 1rem;
  margin-top: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  color: #64748b;
  font-size: 0.875rem;
}

.breadcrumb-separator {
  color: #cbd5e1;
  margin: 0 0.5rem;
}

.conversation-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */

@media (max-width: 768px) {
  .dashboard-nav-content {
    padding: 0 1rem;
  }

  .dashboard-nav-right {
    gap: 0.75rem;
  }

  .user-email {
    display: none;
  }

  .dashboard-content {
    padding: 1.5rem 1rem;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .dashboard-title {
    font-size: 1.75rem;
  }

  .dashboard-subtitle {
    font-size: 0.9375rem;
  }

  .btn-create {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.25rem;
  }

  .agents-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .agent-card {
    padding: 1.25rem;
  }

  .agent-name {
    font-size: 1.25rem;
  }

  .agent-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .agent-share-link {
    padding: 0.875rem;
    margin-bottom: 1rem;
  }

  .agent-share-link-controls {
    flex-direction: column;
    gap: 0.625rem;
  }

  .agent-share-link-input {
    font-size: 0.8125rem;
    padding: 0.625rem 0.75rem;
  }

  .agent-share-link-button {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .agent-meta {
    font-size: 0.75rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .agent-actions {
    gap: 0.5rem;
  }

  .btn-agent {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }

  .form-card {
    padding: 1.5rem;
  }

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

  .agent-detail-header {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .agent-detail-header-left {
    gap: 0.625rem;
  }

  .agent-detail-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }

  .btn-action {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }

  .agent-detail-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .agent-detail-description {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
  }

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

  .stat-card {
    padding: 1rem;
  }

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

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-card-link-inner {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .instructions-box {
    padding: 1.25rem;
    font-size: 0.9375rem;
  }

  .breadcrumb {
    margin-bottom: 1rem;
  }

  .breadcrumb-link {
    font-size: 0.875rem;
  }

  .conversation-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .conversation-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nav-button {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }

  .empty-state {
    padding: 3rem 1.5rem;
  }

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

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

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

/* Message Feedback Display */
.message-feedback-display {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.feedback-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.feedback-stat-like {
  background: #d1fae5;
  color: #10b981;
}

.feedback-stat-unlike {
  background: #fee2e2;
  color: #ef4444;
}

/* Required Fields Management */

.section-header {
  margin-bottom: 1rem;
}

.section-title-tight {
  margin-bottom: 0.5rem;
}

.hint-no-margin {
  margin-top: 0 !important;
  margin-bottom: 1rem;
}

.required-fields-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  min-height: 60px;
}

.required-field-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.2s ease;
  position: relative;
}

.required-field-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.required-field-item:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.required-field-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: #0f172a;
  transition: all 0.2s;
  font-family: inherit;
  background: white;
}

.required-field-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.05);
}

.required-field-input::placeholder {
  color: #94a3b8;
}

.required-field-select {
  min-width: 160px;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: #0f172a;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.required-field-select:hover {
  border-color: #cbd5e1;
}

.required-field-select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.05);
}

.remove-field-button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 300;
  padding: 0;
  flex-shrink: 0;
}

.remove-field-button:hover {
  background: #fef2f2;
  border-color: #dc2626;
  transform: scale(1.1);
}

.remove-field-button:active {
  transform: scale(0.95);
}

.add-field-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.2s;
  border: 2px dashed #cbd5e1;
  background: white;
  color: #475569;
  border-radius: 0.75rem;
  cursor: pointer;
  width: 100%;
  justify-content: center;
}

.add-field-btn:hover {
  border-color: #6366f1;
  color: #6366f1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.add-field-icon {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 400;
}

.required-fields-empty-state {
  text-align: center;
  padding: 2.5rem 2rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 2px dashed #e2e8f0;
  margin-bottom: 0.75rem;
}

.required-fields-empty-state .empty-state-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  opacity: 0.6;
}

.required-fields-empty-state .empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.375rem;
}

.required-fields-empty-state .empty-state-text {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Checkbox styling */

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-field-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  accent-color: #6366f1;
}

.form-field-checkbox:hover {
  border-color: #cbd5e1;
}

.form-field-checkbox:checked {
  background: #6366f1;
  border-color: #6366f1;
}

.checkbox-label {
  cursor: pointer;
  margin: 0;
  user-select: none;
}

/* Responsive adjustments for required fields */

@media (max-width: 768px) {
  .required-field-item {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }

  .required-field-select {
    min-width: auto;
    width: 100%;
  }

  .remove-field-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
  }
}
