/**
 * TankLogic Design System CSS
 *
 * Centralized CSS definitions based on design/design profile.json
 * All custom component styles should be defined here rather than inline
 *
 * NOTE: This file now uses semantic CSS variables defined in main.ejs
 * For theming, modify the variables in :root and .dark selectors
 */

/* Design System Base Styles */
body {
  font-family: var(--font-family-primary, Inter), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background-color: var(--color-surface-tertiary, #F5F7FA);
}

/* Typography */
h1 { font-size: 36px; line-height: 1.2; font-weight: 600; }
h2 { font-size: 24px; line-height: 1.3; font-weight: 600; }
h3 { font-size: 20px; line-height: 1.4; font-weight: 600; }

/* Custom Job Header */
.text-job-header { 
  font-size: 28px; 
  line-height: 1.2; 
  font-weight: 500; 
}

/* Boolean Field Icons - uses semantic tokens */
.boolean-icon {
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
}

.boolean-yes {
  color: var(--color-status-success, #10b981); /* Green for true/yes */
}

.boolean-no {
  color: var(--color-status-error, #ef4444); /* Red for false/no */
}

.boolean-unknown {
  color: var(--color-text-tertiary, #6b7280); /* Gray for null/unknown */
}

/* ═══════════════════════════════════════════════════════════════════════════
 * Visibility Badges
 * Used to indicate whether content is internal-only or client-visible
 * See docs/ui/tlt-ui-foundations.md for usage guidelines
 * ═══════════════════════════════════════════════════════════════════════════ */

/* Base visibility badge styles */
.visibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.375rem;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.25rem;
  border-width: 1px;
  border-style: solid;
  white-space: nowrap;
}

/* Internal Only - Amber/Warning color (not visible to clients) */
.visibility-badge--internal {
  border-color: #fcd34d; /* amber-300 */
  background-color: #fffbeb; /* amber-50 */
  color: #b45309; /* amber-700 */
}
.dark .visibility-badge--internal {
  border-color: #d97706; /* amber-600 */
  background-color: rgba(180, 83, 9, 0.3); /* amber-900/30 */
  color: #fcd34d; /* amber-300 */
}

/* Client Visible - Green/Success color (visible to clients) */
.visibility-badge--client {
  border-color: #86efac; /* green-300 */
  background-color: #f0fdf4; /* green-50 */
  color: #15803d; /* green-700 */
}
.dark .visibility-badge--client {
  border-color: #16a34a; /* green-600 */
  background-color: rgba(21, 128, 61, 0.3); /* green-900/30 */
  color: #86efac; /* green-300 */
}

/* Card Component - uses semantic tokens */
.design-card {
  background: var(--color-surface-primary, #FFFFFF);
  border-radius: var(--radius-lg, 12px);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border-default, #E5E7EB);
  transition: all 0.2s ease;
}

/* Dark mode for design-card - inherits from semantic tokens */
.dark .design-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Compact Card for Job Details */
.design-card-compact {
  background: var(--color-surface-primary, #FFFFFF);
  border-radius: var(--radius-lg, 12px);
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border-default, #E5E7EB);
  transition: all 0.2s ease;
}

/* Result detail: prevent cards from forcing horizontal scroll */
.result-detail-layout .design-card-compact {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.result-detail-layout {
  width: 100%;
  max-width: calc(100vw - var(--sidebar-expanded)) !important;
  box-sizing: border-box;
}
.sidebar-collapsed .result-detail-layout {
  max-width: calc(100vw - var(--sidebar-collapsed)) !important;
}
@media (max-width: 1023px) {
  .result-detail-layout {
    max-width: 100vw !important;
  }
}
.result-detail-layout *,
.result-detail-layout *::before,
.result-detail-layout *::after {
  box-sizing: border-box;
  max-width: 100%;
}
.result-detail-layout .panel-field,
.result-detail-layout .panel-field-value {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.result-detail-layout .panel-field-value > * {
  max-width: 100%;
}
.result-detail-layout img {
  max-width: 100%;
  height: auto;
}
.result-detail-layout table {
  width: 100%;
  max-width: 100%;
}
.result-detail-layout .panel-drag-handle {
  cursor: grab;
}
.result-detail-layout .panel-drag-handle:active {
  cursor: grabbing;
}
.result-detail-layout [data-panel-id].panel-dragging {
  opacity: 0.6;
  outline: 2px dashed rgba(148, 163, 184, 0.6);
  outline-offset: 4px;
}
.result-detail-layout [data-panel-id].panel-drop-target {
  outline: 2px solid rgba(59, 130, 246, 0.5);
  outline-offset: 4px;
}
.result-detail-layout [data-panel-id].panel-drag-armed {
  outline: 2px dashed rgba(148, 163, 184, 0.4);
  outline-offset: 4px;
}
.result-detail-layout [data-panel-id].panel-overflow-debug {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.6);
}
.result-detail-layout .panel-drop-marker {
  height: 0;
  border-top: 2px solid rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
  margin: 6px 0;
  border-radius: 999px;
  pointer-events: none;
}

/* Dark mode for design-card-compact - inherits from semantic tokens */
.dark .design-card-compact {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.design-card:hover,
.design-card-compact:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.dark .design-card:hover,
.dark .design-card-compact:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

/* Button Components - uses semantic tokens */
.btn-primary {
  background: var(--color-text-link, #5B5FCF);
  color: var(--color-text-inverse, #FFFFFF);
  padding: 12px 24px;
  border-radius: var(--radius-md, 8px);
  font-size: 14px;
  font-weight: 500;
  border: none;
  transition: all 0.2s ease;
}
.btn-primary:hover {
  filter: brightness(0.9);
}

.btn-secondary {
  background: var(--color-surface-primary, #FFFFFF);
  color: var(--color-text-link, #5B5FCF);
  border: 2px solid var(--color-text-link, #5B5FCF);
  padding: 12px 24px;
  border-radius: var(--radius-md, 8px);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: var(--color-surface-secondary, #F3F4F6);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary, #6B7280);
  padding: 8px 16px;
  border-radius: var(--radius-sm, 6px);
  border: none;
  transition: all 0.2s ease;
}
.btn-ghost:hover {
  background: var(--color-surface-secondary, #F3F4F6);
}

/* Input Components - uses semantic tokens */
.design-input {
  background: var(--color-surface-primary, #FFFFFF);
  border: 1px solid var(--color-border-emphasis, #D1D5DB);
  border-radius: var(--radius-sm, 6px);
  padding: 10px 12px;
  font-size: 14px;
  transition: all 0.2s ease;
  color: var(--color-text-primary, inherit);
}
.design-input:focus {
  border-color: var(--color-text-link, #5B5FCF);
  outline: 2px solid var(--color-status-info-bg, #EEF2FF);
}

/* Search Dropdown Fix */
#search-dropdown-content {
  max-height: min(20rem, 50vh);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Prevent text truncation in search results */
#search-dropdown-content .font-medium,
#search-dropdown-content .text-xs {
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}

/* Layout Components - uses semantic tokens */
.design-sidebar {
  width: 240px;
  background: var(--color-surface-primary, #FFFFFF);
  border-right: 1px solid var(--color-border-default, #E5E7EB);
  padding: 16px;
}

.main-content-offset {
  margin-left: 240px;
}

.main-content-area {
  flex: 1;
  padding: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.sidebar-item {
  padding: 12px 16px;
  border-radius: var(--radius-md, 8px);
  color: var(--color-text-secondary, #6B7280);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-item:hover {
  background: var(--color-surface-secondary, #F3F4F6);
}
.sidebar-item.active {
  background: var(--color-status-info-bg, #EEF2FF);
  color: var(--color-text-link, #5B5FCF);
}

/* Badge Component - uses semantic tokens */
.design-badge {
  padding: 4px 8px;
  border-radius: var(--radius-sm, 4px);
  font-size: 12px;
  font-weight: 500;
  background: var(--color-surface-secondary, #F3F4F6);
  color: var(--color-text-secondary, #4B5563);
}

/* Integration badges (ServiceFusion/SendGrid style) */
.sendgrid-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.35);
}
.dark .sendgrid-badge {
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.35);
}

/* Google OAuth button (Gmail connect) */
.google-oauth-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #dadce0;
  background: #ffffff;
  color: #3c4043;
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
}
.google-oauth-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.2);
}
.google-oauth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.google-oauth-btn__icon {
  width: 18px;
  height: 18px;
}
.google-oauth-btn--small {
  padding: 6px 10px;
  font-size: 0.75rem;
}

/* Grid Layout */
.design-grid {
  display: grid;
  gap: 24px;
}

/* Site Edit Address Layout */
.site-address-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-address-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-address-label {
  min-width: 140px;
  text-transform: none;
}

.site-address-input {
  flex: 1;
}

.site-address-triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.site-address-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media (max-width: 900px) {
  .site-address-inline {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-address-label {
    min-width: auto;
  }
  .site-address-triple {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}
.design-grid-cols-1 { grid-template-columns: 1fr; }
.design-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.design-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Responsive Grid */
@media (max-width: 768px) {
  .design-grid-responsive { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
  .design-grid-responsive { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .design-grid-responsive { grid-template-columns: repeat(3, 1fr); }
}

/* Tab Component - uses semantic tokens */
.design-tabs {
  border-bottom: 1px solid var(--color-border-default, #E5E7EB);
  display: flex;
  gap: 32px;
}
.design-tab {
  padding: 16px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-secondary, #6B7280);
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.design-tab.active {
  color: var(--color-text-link, #5B5FCF);
  border-bottom-color: var(--color-text-link, #5B5FCF);
}

/* List Component - uses semantic tokens */
.design-list-item {
  padding: 16px;
  border-bottom: 1px solid var(--color-border-default, #E5E7EB);
  transition: all 0.2s ease;
}
.design-list-item:hover {
  background: var(--color-surface-secondary, #F9FAFB);
}

/* Job Detail Components - uses semantic tokens */
.job-detail-value-header {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary, #1F2937);
  margin-bottom: 3px;
  line-height: 1.3;
}
/* Dark mode inherits from semantic token automatically */

.fuel-stage-value-large {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.fuel-stage-value-medium {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--radius-md, 8px);
  display: inline-block;
}

.fuel-stage-value-small {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 4px 8px;
  border-radius: var(--radius-sm, 6px);
  display: inline-block;
}

.fuel-stage-value-xs {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 2px 6px;
  border-radius: var(--radius-sm, 4px);
  display: inline-block;
}

.entity-reference-links {
  font-size: 14px;
}

/* Rating Number Color Coding (1-5 scale) */
.rating-number {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--radius-md, 8px);
  text-align: center;
  min-width: 48px;
}

/* Compact rating badges for inline display */
.rating-compact {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm, 6px);
  text-align: center;
  min-width: 32px;
  margin-left: 8px;
}

.rating-1 {
  background-color: #FEF3F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.rating-2 {
  background-color: #FFFBEB;
  color: #D97706;
  border: 1px solid #FED7AA;
}

.rating-3 {
  background-color: #FEFCE8;
  color: #CA8A04;
  border: 1px solid #FEF08A;
}

.rating-4 {
  background-color: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

.rating-5 {
  background-color: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

/* Compact rating variants */
.rating-compact.rating-1 {
  background-color: #FEF3F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.rating-compact.rating-2 {
  background-color: #FFFBEB;
  color: #D97706;
  border: 1px solid #FED7AA;
}

.rating-compact.rating-3 {
  background-color: #FEFCE8;
  color: #CA8A04;
  border: 1px solid #FEF08A;
}

.rating-compact.rating-4 {
  background-color: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

.rating-compact.rating-5 {
  background-color: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

/* Dark mode variants */
.dark .rating-1 {
  background-color: #431313;
  color: #FCA5A5;
  border-color: #7F1D1D;
}

.dark .rating-2 {
  background-color: #451A03;
  color: #FCD34D;
  border-color: #92400E;
}

.dark .rating-3 {
  background-color: #422006;
  color: #FDE047;
  border-color: #A16207;
}

.dark .rating-4 {
  background-color: #14532D;
  color: #86EFAC;
  border-color: #166534;
}

.dark .rating-5 {
  background-color: #064E3B;
  color: #6EE7B7;
  border-color: #047857;
}

/* Photo Section Layouts */
.photo-section-horizontal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.photo-section-horizontal .photo-item {
  text-align: center;
}

.photo-section-horizontal .photo-item.fuel-stage-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.photo-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

/* Horizontal photo layout with custom spacing */
.photo-section-horizontal[data-layout="horizontal"] {
  display: flex;
  flex-wrap: wrap;
  gap: var(--photo-gap, 1rem);
}

.photo-section-horizontal[data-layout="horizontal"] .photo-item {
  flex: 0 0 auto;
}

/* For lid cover specific styling - 3 photos max in a row */
.photo-horizontal-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.photo-horizontal-3 .photo-item {
  flex: 0 0 auto;
}

/* Photo Sizes */
.photo-large {
  width: 200px;
  height: 200px;
}

.photo-medium {
  width: 120px;
  height: 120px;
}

.photo-small {
  width: 80px;
  height: 80px;
}

/* Rating Fields Layout */
.rating-fields-horizontal {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rating-fields-horizontal .rating-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
}

/* Boolean Yes/No Icons - styled version with backgrounds */
/* Uses semantic status tokens for theming */
.boolean-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm, 4px);
  font-weight: 700;
  font-size: 14px;
}

.boolean-yes {
  background-color: var(--color-status-success-bg, #DCFCE7);
  color: var(--color-status-success, #16A34A);
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, var(--color-status-success) 40%, transparent);
}

.boolean-no {
  background-color: var(--color-status-error-bg, #FEF2F2);
  color: var(--color-status-error, #DC2626);
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, var(--color-status-error) 40%, transparent);
}
/* Dark mode inherits from semantic tokens automatically */

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ========================================
   Picture Size Classes
   ======================================== */

/* Picture width classes - only sets width, height is auto */
.picture-width-300 {
  width: 300px;
  height: auto;
}

.picture-width-200 {
  width: 200px;
  height: auto;
}

.picture-width-100 {
  width: 100px;
  height: auto;
}

/* Make images clickable for modal */
.clickable-photo {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Photo Modal
   ======================================== */

/* Modal backdrop */
.photo-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  animation: fadeIn 0.3s ease;
}

.photo-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal content */
.photo-modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  max-width: 90%;
  max-height: 90vh;
  animation: zoomIn 0.3s ease;
}

/* Modal image */
.photo-modal-image {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Close button */
.photo-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
}

.photo-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Navigation arrows */
.photo-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: var(--radius-sm, 4px);
  transition: all 0.3s ease;
  user-select: none;
}

.photo-modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.photo-modal-prev {
  left: 20px;
}

.photo-modal-next {
  right: 20px;
}

/* Caption */
.photo-modal-caption {
  text-align: center;
  color: #ffffff;
  padding: 10px 20px;
  margin-top: 10px;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-sm, 4px);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .photo-modal-content {
    padding: 10px;
    max-width: 95%;
  }
  
  .photo-modal-close {
    top: -10px;
    right: -10px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
  
  .photo-modal-nav {
    font-size: 24px;
    padding: 8px 12px;
  }
  
  .photo-modal-prev {
    left: 10px;
  }
  
  .photo-modal-next {
    right: 10px;
  }
}

/* ========================================
   Type Indicator Component
   See: /docs/ui/tlt-ui-standards.md
   Purpose: Small colored chips/badges for entity types,
   match reasons, or categorization in lists and tables.
   ======================================== */

.type-indicator {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.375rem;  /* px-1.5 py-0.5 */
  border-radius: 0.25rem;      /* rounded */
  font-size: 0.5625rem;        /* text-[9px] */
  font-weight: 500;            /* font-medium */
  white-space: nowrap;
}

/* ========================================
   Add Entity Button
   See: /docs/ui/tlt-ui-standards.md
   Purpose: Consistent button style for adding new entities/items
   ======================================== */

.add-entity-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-link, #5B5FCF);
  background-color: var(--color-surface-primary, #FFFFFF);
  border: 1px solid var(--color-border-emphasis, #D1D5DB);
  border-radius: 0.375rem;
  transition: all 0.15s;
  cursor: pointer;
}

.add-entity-btn:hover {
  background-color: var(--color-surface-secondary, #F9FAFB);
  border-color: var(--color-text-link, #5B5FCF);
}

/* Dark mode */
.dark .add-entity-btn {
  background-color: var(--color-surface-secondary, #374151);
  border-color: var(--color-border-default, #4B5563);
  color: var(--color-status-info, #60A5FA);
}

.dark .add-entity-btn:hover {
  background-color: var(--color-surface-tertiary, #4B5563);
  border-color: var(--color-status-info, #60A5FA);
}
