/* Base styles and variables */
:root {
  /* Color system */
  --primary: #2D5BFF;
  --primary-light: #5E80FF;
  --primary-dark: #1A3CB0;
  
  --secondary: #00C2CB;
  --secondary-light: #4CDEE6;
  --secondary-dark: #00939A;
  
  --accent: #FF7D3B;
  --accent-light: #FF9E6D;
  --accent-dark: #D95A1B;
  
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  
  /* Neutral tones */
  --neutral-50: #F9FAFB;
  --neutral-100: #F3F4F6;
  --neutral-200: #E5E7EB;
  --neutral-300: #D1D5DB;
  --neutral-400: #9CA3AF;
  --neutral-500: #6B7280;
  --neutral-600: #4B5563;
  --neutral-700: #374151;
  --neutral-800: #1F2937;
  --neutral-900: #111827;
  
  /* Light theme defaults */
  --bg-primary: var(--neutral-50);
  --bg-secondary: white;
  --bg-tertiary: var(--neutral-100);
  
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-700);
  --text-tertiary: var(--neutral-500);
  
  --border-color: var(--neutral-200);
  --shadow-color: rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;

  /* Spacing (8px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;

  /* Z-index layers */
  --z-header: 100;
  --z-panel: 200;
  --z-modal: 300;
  --z-context-menu: 400;
  --z-tooltip: 500;
}

/* Dark theme */
.dark-theme {
  --bg-primary: var(--neutral-900);
  --bg-secondary: var(--neutral-800);
  --bg-tertiary: var(--neutral-700);
  
  --text-primary: var(--neutral-50);
  --text-secondary: var(--neutral-200);
  --text-tertiary: var(--neutral-400);
  
  --border-color: var(--neutral-700);
  --shadow-color: rgba(0, 0, 0, 0.3);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  height: 100%;
  overflow: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  cursor: pointer;
  font-family: var(--font-family);
}

textarea, input, select {
  font-family: var(--font-family);
}

ul, ol {
  list-style-position: inside;
}

/* Layout */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}


.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo i {
  font-size: 1.5rem;
  color: var(--primary);
}

.logo-text {
  display: flex;
  flex-direction: column; /* stack vertically */
  line-height: 1.2;
}

.logo h1 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.tagline {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: #00f6ff;
  text-shadow: 0 0 3px #00f6ff33;
  font-style: italic;
  letter-spacing: 0.3px;
  opacity: 0.85;
  animation: fadeInTagline 0.8s ease forwards 0.4s;
}

@keyframes fadeInTagline {
  to {
    opacity: 0.85;
  }
}

.toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.toolbar-actions {
  display: flex;
  gap: var(--space-2);
}

.app-content {
  position: relative;
  height: calc(100vh - 60px);
  margin-top: 60px;
  overflow: hidden;
  display: flex;
}

#graph-container {
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: background-color var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.btn-secondary:hover {
  background-color: var(--neutral-200);
  border-color: var(--neutral-300);
}

.dark-theme .btn-secondary:hover {
  background-color: var(--neutral-600);
  border-color: var(--neutral-500);
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  padding: var(--space-1) var(--space-2);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-fast);
}

.btn-text:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-tertiary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-icon:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-icon i {
  font-size: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-4);
}

.form-row {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.form-group.half {
  flex: 1;
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--text-secondary);
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],

select,
textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm); /* Added box-shadow */
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.2);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.search-container {
  position: relative;
  width: 300px;
}

.search-container input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  padding-right: var(--space-6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.search-container i {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
}




/* Base styles and variables remain the same */

/* Panel styles */
.panel {
  position: absolute;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), opacity var(--transition-normal), background-color var(--transition-normal);
  z-index: var(--z-panel);
}

#entity-panel {
  top: var(--space-4);
  right: var(--space-4);
  width: 360px;
  max-height: calc(100% - var(--space-8));
  transform-origin: top right;
}

#entity-panel.collapsed {
  transform: translateX(calc(100% - 40px));
}

#entity-list-panel {
  top: var(--space-4);
  left: var(--space-4);
  width: 280px;
  height: calc(100% - var(--space-8));
  transform-origin: top left;
}

#entity-list-panel.collapsed {
  transform: translateX(-240px);
}

#notes-panel {
  bottom: var(--space-4);
  right: var(--space-4);
  width: 360px;
  height: 300px;
  transform-origin: bottom right;
}

.panel.hidden {
  display: none !important;
  pointer-events: none;
  box-shadow: none !important;
}


.panel.collapsed {
  transform: translateX(-90%);
}

.panel.collapsed.right {
  transform: translateX(90%);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-color);
}

.panel-actions {
  display: flex;
  gap: var(--space-1);
}

.panel-content {
  padding: var(--space-4);
  overflow-y: auto;
  flex: 1;
}

/* Entity List */
.entity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entity-item {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.entity-item:hover {
  background-color: var(--bg-tertiary);
}

.entity-item.selected {
  background-color: rgba(45, 91, 255, 0.1);
}

.entity-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-3);
  flex-shrink: 0;
}

.entity-icon.person { background-color: var(--primary); }
.entity-icon.organization { background-color: var(--secondary); }
.entity-icon.wallet { background-color: var(--accent); }
.entity-icon.ip { background-color: var(--warning); }
.entity-icon.location { background-color: var(--success); }
.entity-icon.transaction { background-color: var(--primary-dark); }
.entity-icon.social { background-color: var(--secondary-dark); }
.entity-icon.domain { background-color: var(--accent-dark); }
.entity-icon.website { background-color: var(--error); }

.entity-info {
  flex-grow: 1;
  min-width: 0;
}

.entity-label {
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entity-type {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Entity Details */
.entity-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.entity-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.entity-header-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.entity-header-info {
  flex-grow: 1;
  min-width: 0;
}

.entity-header-label {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entity-header-type {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.entity-section {
  margin-bottom: var(--space-4);
}

.entity-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.entity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.entity-tag {
  font-size: 0.75rem;
  padding: var(--space-1) var(--space-2);
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
}

.entity-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-top: var(--space-2);
}

.entity-metadata {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-4);
}

.entity-metadata-key {
  font-weight: 500;
  color: var(--text-secondary);
}

.entity-metadata-value {
  color: var(--text-primary);
}

.entity-connections {
  margin-top: var(--space-2);
}

.connection-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  cursor: pointer;
}

.connection-item:hover {
  background-color: var(--bg-tertiary);
}

.connection-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--neutral-400);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.connection-info {
  flex-grow: 1;
  min-width: 0;
}

.connection-label {
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.connection-relation {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.entity-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* Context Menu */
.context-menu {
  position: fixed;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-1);
  min-width: 160px;
  z-index: var(--z-context-menu);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.context-menu.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.context-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.context-menu li {
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.context-menu li:hover {
  background-color: var(--bg-tertiary);
}

.context-menu li i {
  width: 16px;
  text-align: center;
  color: var(--text-tertiary);
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  transition: opacity var(--transition-normal);
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modal-in 0.25s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-color);
}

.modal-body {
  padding: var(--space-4);
  overflow-y: auto;
}

/* Image upload */
.image-upload-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

#image-preview {
  width: 100%;
  height: 150px;
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#image-preview::before {
  content: 'No image selected';
  display: block;
}

#image-preview.has-image::before {
  content: '';
  display: none;
}

#node-image {
  display: none;
}

/* Filter options */
.filter-options {
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  transition: height var(--transition-normal), opacity var(--transition-normal), margin var(--transition-normal);
}

.filter-options.hidden {
  height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.filter-group {
  margin-bottom: var(--space-3);
}

.filter-group:last-child {
  margin-bottom: 0;
}

/* Styling for checkboxes */
input[type="checkbox"] {
  /* Basic reset */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--neutral-400);
  border-radius: var(--radius-sm);
  background-color: var(--neutral-100);
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

input[type="checkbox"]:checked {
  background-color: var(--primary); /* Primary color when checked */
  border-color: var(--primary);
}

input[type="checkbox"]:checked::after {
  content: '✔'; /* Checkmark symbol */
  color: var(--neutral-50); /* White checkmark */
  font-size: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

/* Adjust label alignment for checkboxes if needed */
label[for] {
  display: flex;
  align-items: center; /* Align label text with checkbox */
  gap: var(--space-2);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-2);
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: normal;
}

/* Notes panel */
#investigation-notes {
  width: 100%;
  height: 180px;
  resize: none;
  margin-bottom: var(--space-3);
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    height: auto;
    padding: var(--space-2);
  }
  
  .toolbar {
    width: 100%;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
  }
  
  .search-container {
    width: 100%;
    order: -1;
  }
  
  .app-content {
    margin-top: 120px;
    height: calc(100vh - 120px);
  }
  
  #entity-panel,
  #entity-list-panel,
  #notes-panel {
    position: fixed;
    width: 90%;
    max-width: 350px;
  }
  
  .panel.collapsed {
    transform: translateX(-95%);
  }
  
  .panel.collapsed.right {
    transform: translateX(95%);
  }
  
  .modal-content {
    width: 95%;
  }
}

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

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

.slide-in {
  animation: slideIn 0.3s ease;
}


/* OSINTrix Report Notes Panel Styles */
    .osintrix_report_container {
      position: fixed;
      bottom: var(--space-4, 16px);
      left: 50%;
      transform: translateX(-50%);
      width: 420px;
      background-color: var(--bg-secondary, #f5f7fa);
      border-radius: var(--radius-lg, 8px);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
      border: 1px solid var(--border-color, #e2e8f0);
      z-index: var(--z-panel, 1000);
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      flex-direction: column;
      max-height: 60vh;
    }

    .osintrix_report_container.osintrix_report_minimized {
      height: 46px;
      overflow: hidden;
    }

    .osintrix_report_header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 16px;
      border-bottom: 1px solid var(--border-color, #e2e8f0);
      background: linear-gradient(to right, var(--bg-secondary, #f5f7fa), var(--bg-tertiary, #edf2f7));
      border-radius: var(--radius-lg, 8px) var(--radius-lg, 8px) 0 0;
      cursor: move;
    }

    .osintrix_report_header_title {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--text-primary, #2d3748);
    }

    .osintrix_report_title {
      font-weight: 600;
      font-size: 1rem;
      margin: 0;
    }

    

    .osintrix_report_header_actions {
      display: flex;
      gap: 6px;
    }

    .osintrix_report_btn {
      background: none;
      border: none;
      width: 30px;
      height: 30px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-tertiary, #718096);
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .osintrix_report_btn:hover {
      background-color: var(--bg-tertiary, #edf2f7);
      color: var(--text-primary, #2d3748);
    }

    .osintrix_report_body {
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      flex: 1;
      overflow: hidden;
    }

    .osintrix_report_tabs {
      display: flex;
      border-bottom: 1px solid var(--border-color, #e2e8f0);
      margin-bottom: 8px;
    }

    .osintrix_report_tab {
      padding: 8px 16px;
      border-bottom: 2px solid transparent;
      cursor: pointer;
      font-size: 0.875rem;
      color: var(--text-tertiary, #718096);
      transition: all 0.2s ease;
    }

    .osintrix_report_tab.active {
      border-bottom: 2px solid var(--primary, #4a5af8);
      color: var(--primary, #4a5af8);
      font-weight: 500;
    }

    .osintrix_report_tab:hover:not(.active) {
      color: var(--text-secondary, #4a5568);
      background-color: var(--bg-tertiary, #edf2f7);
    }

    .osintrix_report_content {
      flex: 1;
      overflow-y: auto;
      position: relative;
    }

    .osintrix_report_tab_content {
      display: none;
      height: 100%;
    }

    .osintrix_report_tab_content.active {
      display: flex;
      flex-direction: column;
    }

    .osintrix_notes_editor {
      width: 100%;
      height: 100%;
      min-height: 200px;
      border: 1px solid var(--border-color, #e2e8f0);
      border-radius: var(--radius-md, 6px);
      background-color: var(--bg-secondary, #f5f7fa);
      color: var(--text-primary, #2d3748);
      font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
      font-size: 0.9rem;
      line-height: 1.5;
      display: flex;
      flex-direction: column;
    }

    .osintrix_notes_toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      padding: 8px;
      border-bottom: 1px solid var(--border-color, #e2e8f0);
      background-color: var(--bg-tertiary, #edf2f7);
      border-radius: var(--radius-md, 6px) var(--radius-md, 6px) 0 0;
    }

    .osintrix_notes_tool {
      background: none;
      border: 1px solid transparent;
      width: 32px;
      height: 32px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-tertiary, #718096);
      cursor: pointer;
      transition: all 0.2s ease;
      font-size: 14px;
    }

    .osintrix_notes_tool:hover {
      background-color: var(--bg-secondary, #f5f7fa);
      border-color: var(--border-color, #e2e8f0);
      color: var(--text-primary, #2d3748);
    }

    .osintrix_notes_tool.active {
      background-color: var(--primary-light, #ebf0ff);
      border-color: var(--primary, #4a5af8);
      color: var(--primary, #4a5af8);
    }

    .osintrix_notes_tool_group {
      display: flex;
      border-right: 1px solid var(--border-color, #e2e8f0);
      padding-right: 4px;
      margin-right: 4px;
    }

    .osintrix_notes_textarea {
      width: 100%;
      height: 100%;
      resize: none;
      padding: 12px;
      border: none;
      background-color: var(--bg-secondary, #f5f7fa);
      color: var(--text-primary, #2d3748);
      font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
      font-size: 0.9rem;
      line-height: 1.5;
      flex: 1;
    }

    .osintrix_notes_textarea:focus {
      outline: none;
    }

    .osintrix_report_field_row {
      display: flex;
      gap: 12px;
    }

    .osintrix_report_field {
      flex: 1;
    }

    .osintrix_report_field label {
      display: block;
      font-size: 0.75rem;
      font-weight: 500;
      margin-bottom: 4px;
      color: var(--text-tertiary, #718096);
    }

    .osintrix_report_field input, .osintrix_report_field select, .osintrix_report_field textarea {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid var(--border-color, #e2e8f0);
      border-radius: var(--radius-md, 6px);
      background-color: var(--bg-secondary, #f5f7fa);
      color: var(--text-primary, #2d3748);
      font-size: 0.875rem;
    }

    .osintrix_report_field input:focus, .osintrix_report_field select:focus, .osintrix_report_field textarea:focus {
      outline: none;
      border-color: var(--primary, #4a5af8);
      box-shadow: 0 0 0 2px rgba(45, 91, 255, 0.2);
    }

    .osintrix_timeline_editor {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .osintrix_timeline_toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 8px;
      border: 1px solid var(--border-color, #e2e8f0);
      border-radius: var(--radius-md, 6px);
      background-color: var(--bg-tertiary, #edf2f7);
    }

    .osintrix_timeline_toolbar_title {
      font-weight: 500;
      font-size: 0.875rem;
      margin-right: 8px;
      display: flex;
      align-items: center;
    }

    .osintrix_timeline_content {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .osintrix_report_timeline {
      margin-top: 16px;
      border-left: 2px solid var(--border-color, #e2e8f0);
      margin-left: 8px;
      padding-left: 16px;
    }

    .osintrix_report_timeline_entry {
      margin-bottom: 16px;
      position: relative;
    }

    .osintrix_report_timeline_entry::before {
      content: '';
      position: absolute;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: var(--primary, #4a5af8);
      left: -24px;
      top: 4px;
    }

    .osintrix_report_timeline_entry.high-priority::before {
      background-color: var(--danger, #e53e3e);
    }

    .osintrix_report_timeline_entry.medium-priority::before {
      background-color: var(--warning, #f6ad55);
    }

    .osintrix_report_timeline_time {
      font-size: 0.75rem;
      color: var(--text-tertiary, #718096);
      margin-bottom: 2px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .osintrix_report_timeline_actions {
      display: flex;
      gap: 4px;
      opacity: 0;
      transition: opacity 0.2s ease;
    }

    .osintrix_report_timeline_entry:hover .osintrix_report_timeline_actions {
      opacity: 1;
    }

    .osintrix_timeline_action {
      width: 20px;
      height: 20px;
      border-radius: 3px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      cursor: pointer;
      color: var(--text-tertiary, #718096);
      font-size: 12px;
      padding: 0;
    }

    .osintrix_timeline_action:hover {
      background-color: var(--bg-tertiary, #edf2f7);
      color: var(--text-primary, #2d3748);
    }

    .osintrix_report_timeline_content {
      font-size: 0.875rem;
      color: var(--text-primary, #2d3748);
    }

    .osintrix_report_timeline_content img {
      max-width: 100%;
      border-radius: 4px;
      margin-top: 8px;
    }

    .osintrix_report_footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 16px;
      border-top: 1px solid var(--border-color, #e2e8f0);
      background-color: var(--bg-secondary, #f5f7fa);
      border-radius: 0 0 var(--radius-lg, 8px) var(--radius-lg, 8px);
    }

    .osintrix_report_export_button {
      background-color: var(--primary, #4a5af8);
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: var(--radius-md, 6px);
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

    .osintrix_report_export_button:hover {
      background-color: var(--primary-dark, #323ee6);
    }



    .osintrix_report_actions {
      display: flex;
      gap: 8px;
    }

    .osintrix_report_btn_action {
      background-color: var(--bg-tertiary, #edf2f7);
      border: 1px solid var(--border-color, #e2e8f0);
      padding: 6px 12px;
      border-radius: var(--radius-md, 6px);
      font-size: 0.75rem;
      font-weight: 500;
      color: var(--text-secondary, #4a5568);
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .osintrix_report_btn_action:hover {
      background-color: var(--bg-secondary, #f5f7fa);
      border-color: var(--text-tertiary, #718096);
    }

    .osintrix_report_btn_primary {
      background-color: var(--primary, #4a5af8);
      border: none;
      color: white;
    }

    .osintrix_report_btn_primary:hover {
      background-color: var(--primary-dark, #3344dd);
      border-color: var(--primary-dark, #3344dd);
      color: white;
    }

    /* Image uploader */
    .osintrix_image_uploader {
      display: none;
      position: absolute;
      background-color: var(--bg-secondary, #f5f7fa);
      border: 1px solid var(--border-color, #e2e8f0);
      border-radius: var(--radius-md, 6px);
      padding: 16px;
      width: 300px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      z-index: 1010;
    }

    .osintrix_image_uploader_header {
      font-weight: 500;
      font-size: 0.875rem;
      margin-bottom: 12px;
    }

    .osintrix_image_upload_area {
      border: 2px dashed var(--border-color, #e2e8f0);
      border-radius: var(--radius-md, 6px);
      padding: 24px 16px;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .osintrix_image_upload_area:hover {
      border-color: var(--primary, #4a5af8);
      background-color: var(--primary-light, #ebf0ff);
    }

    .osintrix_image_upload_text {
      font-size: 0.875rem;
      color: var(--text-tertiary, #718096);
      margin-bottom: 8px;
    }

    .osintrix_image_url_input {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid var(--border-color, #e2e8f0);
      border-radius: var(--radius-md, 6px);
      margin-top: 12px;
      font-size: 0.875rem;
    }

    .osintrix_image_actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 12px;
    }

    /* Priority tags */
    .osintrix_priority_dropdown {
      position: relative;
      display: inline-block;
    }

    .osintrix_priority_menu {
      display: none;
      position: absolute;
      background-color: var(--bg-secondary, #f5f7fa);
      border: 1px solid var(--border-color, #e2e8f0);
      border-radius: var(--radius-md, 6px);
      min-width: 120px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      z-index: 1010;
      top: 100%;
      left: 0;
    }

    .osintrix_priority_menu.active {
      display: block;
    }

    .osintrix_priority_option {
      padding: 8px 12px;
      font-size: 0.875rem;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .osintrix_priority_option:hover {
      background-color: var(--bg-tertiary, #edf2f7);
    }

    .osintrix_priority_tag {
      display: inline-flex;
      align-items: center;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 0.75rem;
      font-weight: 500;
      margin-left: 8px;
    }

    .osintrix_priority_high {
      background-color: rgba(229, 62, 62, 0.1);
      color: var(--danger, #e53e3e);
    }

    .osintrix_priority_medium {
      background-color: rgba(246, 173, 85, 0.1);
      color: var(--warning, #f6ad55);
    }

    .osintrix_priority_low {
      background-color: rgba(72, 187, 120, 0.1);
      color: var(--success, #48bb78);
    }

    /* Dark theme adjustments */
    .dark-theme .osintrix_report_container {
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    }

    .dark-theme .osintrix_report_header {
      background: linear-gradient(to right, var(--bg-secondary, #1a202c), var(--neutral-700, #2d3748));
    }

    /* Resizer handle */
    .osintrix_report_resizers {
      position: absolute;
      width: 100%;
      height: 100%;
      pointer-events: none;
    }

    .osintrix_report_resizer_horizontal {
      position: absolute;
      top: 0;
      left: 0;
      width: 6px;
      height: 100%;
      cursor: ew-resize;
      pointer-events: all;
    }

    .osintrix_report_resizer_vertical {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 6px;
      cursor: ns-resize;
      pointer-events: all;
    }

    .osintrix_report_resizer_handle_h {
      position: absolute;
      width: 6px;
      height: 36px;
      top: 50%;
      transform: translateY(-50%);
      left: 0;
      background-color: var(--border-color, #e2e8f0);
      border-radius: 3px;
      opacity: 0.5;
      transition: opacity 0.2s ease;
    }

    .osintrix_report_resizer_handle_v {
      position: absolute;
      height: 6px;
      width: 36px;
      left: 50%;
      transform: translateX(-50%);
      bottom: 0;
      background-color: var(--border-color, #e2e8f0);
      border-radius: 3px;
      opacity: 0.5;
      transition: opacity 0.2s ease;
    }

    .osintrix_report_container:hover .osintrix_report_resizer_handle_h,
    .osintrix_report_container:hover .osintrix_report_resizer_handle_v {
      opacity: 1;
    }

    /* Font awesome icons replacement */
    .osintrix-icon {
      font-family: system-ui, -apple-system, sans-serif;
      font-style: normal;
      font-weight: normal;
      display: inline-block;
      line-height: 1;
    }



/* Add these styles to your existing CSS */

/* Notes Panel */
#notes-panel {
  width: 400px !important; /* Fixed width */
  height: 500px;
  background: var(--bg-secondary);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

#notes-panel.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  box-shadow: none !important;
}

/* Add these styles to your existing CSS */

/* Notes Panel Title */
.notes-title {
  flex: 1;
  margin-right: var(--space-4);
  position: relative;
}

.title-input {
  width: 100%;
  background: none;
  border: 1px solid transparent;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.title-input:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
}

.title-input:focus {
  outline: none;
  background-color: var(--bg-tertiary);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(45, 91, 255, 0.2);
}

.title-input::placeholder {
  color: var(--text-tertiary);
  opacity: 0.7;
}

/* Dark theme adjustments */
.dark-theme .title-input {
  color: var(--text-primary);
}

.dark-theme .title-input:hover,
.dark-theme .title-input:focus {
  background-color: var(--bg-tertiary);
}

/* Ensure the input is above other elements */
.panel-header {
  position: relative;
  z-index: 1;
}

/* Resize Handle */
.resize-handle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.resize-handle-n,
.resize-handle-e,
.resize-handle-s,
.resize-handle-w {
  position: absolute;
  pointer-events: auto;
}

.resize-handle-n {
  top: -5px;
  left: 0;
  right: 0;
  height: 10px;
  cursor: ns-resize;
}

.resize-handle-e {
  display: none; /* Hide east handle to prevent width resizing */
}

.resize-handle-s {
  bottom: -5px;
  left: 0;
  right: 0;
  height: 10px;
  cursor: ns-resize;
}

.resize-handle-w {
  display: none; /* Hide west handle to prevent width resizing */
}

/* Notes Editor */
.notes-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-bottom: -1px;
}

.notes-tool-group {
  display: flex;
  gap: 2px;
  padding-right: 8px;
  margin-right: 8px;
  border-right: 1px solid var(--border-color);
}

.notes-tool-group:last-child {
  border-right: none;
}

.notes-tool {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.notes-tool[data-command^="h"] {
  width: auto;
  padding: 0 8px;
  font-weight: 600;
}

.notes-tool:hover {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.notes-tool.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.notes-editor {
  width: 100%;
  min-height: 180px;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  overflow-y: auto;
  font-family: var(--font-family);
  line-height: 1.5;
}

.notes-editor:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(45, 91, 255, 0.2);
}

.notes-editor img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 8px 0;
}

.notes-editor a {
  color: var(--primary);
  text-decoration: none;
}

.notes-editor a:hover {
  text-decoration: underline;
}

.notes-editor h1,
.notes-editor h2,
.notes-editor h3 {
  margin: 16px 0 8px;
  color: var(--text-primary);
}

.notes-editor ul,
.notes-editor ol {
  padding-left: 24px;
  margin: 8px 0;
}

.notes-editor blockquote {
  border-left: 3px solid var(--primary);
  margin: 16px 0;
  padding-left: 16px;
  color: var(--text-secondary);
}

/* Image Upload Dialog */
.image-upload-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  width: 400px;
  max-width: 90vw;
  z-index: var(--z-modal);
  box-shadow: var(--shadow-lg);
}

.image-upload-dialog h3 {
  margin: 0 0 16px;
}

.image-upload-dialog input {
  width: 100%;
  margin-bottom: 16px;
}

.image-upload-dialog .actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}


/* Links Panel */
#links-panel {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-panel);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

#links-panel.hidden {
  display: none;
}

#links-panel.collapsed {
  max-height: 46px;
  overflow: hidden;
}

.links-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.links-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.links-content {
  padding: var(--space-4);
  overflow-y: auto;
}

.links-section {
  margin-bottom: var(--space-4);
}

.links-section-title {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.links-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-3);
}

.link-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  text-decoration: none;
  color: var(--text-primary);
}

.link-item:hover {
  background-color: var(--bg-tertiary);
  text-decoration: none;
}

.link-item i {
  color: var(--primary);
  width: 24px;
  text-align: center;
}

.link-info {
  flex: 1;
}

.link-name {
  font-weight: 500;
  margin-bottom: 2px;
}

.link-description {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.2;
}

/* Links Panel Search */
.links-search {
  display: flex;
  gap: var(--space-2);
  margin-right: var(--space-2);
}

#links-search {
  width: 200px;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
}

#links-category {
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
}

/* Hide sections when filtered */
.links-section.hidden {
  display: none;
}

/* Link item highlight when searched */
.link-item.highlight {
  background-color: rgba(45, 91, 255, 0.1);
}



/* Form styles update */
.repeatable-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.input-group {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  width: 100%;
}

.input-group input,
.input-group .map-link {
  flex: 1;
  border: none;
  background: none;
  color: var(--text-primary);
  padding: var(--space-1) var(--space-2);
  font-size: 0.875rem;
  width: 100%;
}

.input-group input:focus,
.input-group .map-link:focus {
  outline: none;
  box-shadow: none;
}

.map-link-container {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  margin-bottom: var(--space-3);
}

.map-link-container input {
  flex: 1;
  border: none;
  background: none;
  color: var(--text-primary);
  padding: var(--space-1) var(--space-2);
  font-size: 0.875rem;
}

.map-link-container input:focus {
  outline: none;
  box-shadow: none;
}

.map-link-container .btn-icon {
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.map-link-container .btn-icon:hover {
  color: var(--primary);
}

.add-field {
  align-self: flex-start;
  margin-top: var(--space-2);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-fast);
}

.add-field:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}

.remove-field {
  background: none;
  border: none;
  color: var(--text-tertiary);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.remove-field:hover {
  background-color: var(--error);
  color: white;
}

/* Required field indicator */
label[for] {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--space-2);
}

label[for]::after {
  content: "*";
  color: var(--error);
  display: none;
}

label[for].required::after {
  display: inline;
}

/* Dark theme adjustments */
.dark-theme .input-group,
.dark-theme .map-link-container {
  background: var(--neutral-800);
  border-color: var(--neutral-700);
}

.dark-theme .input-group input,
.dark-theme .map-link-container input {
  color: var(--text-primary);
}

.dark-theme .add-field {
  background: var(--neutral-700);
  border-color: var(--neutral-600);
}

.dark-theme .add-field:hover {
  background: var(--neutral-600);
  border-color: var(--primary);
}


/* Toolbar button hover data */
/* Tooltip container must be position: relative */
.btn-icon {
  position: relative;
  cursor: pointer;
}

/* Tooltip text */
.btn-icon[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 130%; /* slightly below the button */
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--neutral-900);
  color: var(--neutral-50);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  user-select: none;
  /* start slightly lower and fade in */
  transform-origin: top center;
}

/* Show tooltip smoothly */
.btn-icon[data-tooltip]:hover::after {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Arrow below the button */
.btn-icon[data-tooltip]:hover::before {
  content: '';
  position: absolute;
  top: 120%; /* adjust to align with the tooltip */
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background-color: var(--neutral-900);
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-icon[data-tooltip]:hover::before {
  opacity: 1;
}

.new-feature-badge {
  background-color: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-left: var(--space-2);
  vertical-align: super;
  text-transform: uppercase;
}
