


:root {
 /* Neutrals */
 --neutral-50:  rgb(250, 250, 250);
 --neutral-100: rgb(244, 244, 245);
 --neutral-200: rgb(228, 228, 231);
 --neutral-300: rgb(212, 212, 216);
 --neutral-400: rgb(161, 161, 170);
 --neutral-500: rgb(113, 113, 122);
 --neutral-600: rgb(82, 82, 91);
 --neutral-700: rgb(63, 63, 70);
 --neutral-800: rgb(39, 39, 42);
 --neutral-900: rgb(24, 24, 27);
 --neutral-950: rgba(7, 7, 8);

 /* Font Sizes */
 --text-heading: 1.5rem;
 --text-l: 1.125rem;
 --text-m: 1rem;
 --text-sm: .875rem;
 --text-xs: .75rem;
 --text-badge: 0.60rem;

 /* Font Weights */
 --font-weight-normal: 400;
 --font-weight-medium:600;
 --font-weight-bold: 600;

 /* Line Heights */
 --line-height-body0: 1.75rem;
 --line-height-body1: 1.5rem;
 --line-height-body2: 1.25rem;
 --line-height-body3: 1rem;

 /* Borders */
 --border-light: var(--neutral-200);
 --border-dark: var(--neutral-300);
 --border-focus: var(--neutral-900);

 /* Text Colors */
 --text-primary: var(--neutral-900);
 --text-secondary: var(--neutral-700);
 --text-hover: var(--neutral-700);
 --text-tertiary: var(--neutral-500);

 /* Background Colors */
 --bg-default: var(--neutral-50);
 --bg-secondary: var(--neutral-100);
 --bg-active: var(--neutral-200);
 --bg-selected: var(--neutral-50);
 --bg-disabled: var(--neutral-100);
 --bg-dark: var(--neutral-900);
 --bg-hover: rgba(228, 228, 231,0.4);

 /* Ring Colors */
 --ring-default: var(--neutral-300);
 --ring-focus: var(--color-neutral-900);

 /* font-family */
 --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
 --font-secondary: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Base Reset */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: #ffffff;
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--text-hover);
  text-decoration: underline;
}

/* Layout Containers */
.page-container .pr-scan-page .repo-page{
 /* max-width: 1200px;*/
  max-width: 100%;
  margin: 0 auto;
  padding: 0rem 2.5rem;
}

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

.footer {
  display: none;
}


/* AI Fix Styles */
.ai-fix {
  vertical-align: middle;
  background: #eff6ff;
  color: #1e40af;
  border-radius: 10px;
  padding: 0.25rem 0.5rem;
  font-size: var(--text-xs);
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ai-fix-compact {
  margin: 0.0625rem 0;
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 2px;
  padding: 0.125rem 0.25rem;
  font-size: 0.6rem;
  line-height: 1.1;
}

.ai-fix-compact details summary {
  border-bottom: none;
}

.ai-fix-compact div {
  color: #3b82f6;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.6rem;
  line-height: 1.1;
}

.ai-fix-compact summary::-webkit-details-marker {
  display: none;
}

.ai-fix-compact summary::before {
  margin-right: 0.125rem;
}

.ai-fix-compact details[open] summary::after {
  transform: rotate(90deg);
}

.ai-fix-compact-content {
  margin-top: 0.125rem;
  padding-top: 0.125rem;
}

.ai-fix-compact-code {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1px;
  padding: 0.125rem;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.55rem;
  line-height: 1.1;
  white-space: pre-wrap;
  margin: 0.0625rem 0;
}

.ai-fix-compact-comment {
  color: #6b7280;
  font-size: 0.5rem;
  margin-top: 0.0625rem;
  font-style: italic;
  line-height: 1.0;
}

/* === UPDATED BADGE SYSTEM (Borderless, Clean Design) === */
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 10px; /* Smaller border radius for cleaner look */
  font-weight: var(--font-weight-medium) !important;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: 0.60rem;
  line-height: 1.2;
 padding: 4px 10px;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
  border: none; /* Remove all borders */
}

/* Badge Sizes */
.tag--xs {
  font-size: 0.55rem;
  padding: 2px 6px;
  border-radius: 10px;
  margin-right: 0.25rem;
}

.tag--sm {
  font-size: 0.60rem;
  padding: 3px 8px;
  border-radius: 10px;
}

.tag--md {
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 10px;
}

.tag--lg {
  font-size: 0.70rem;
  padding: 4px 12px;
  border-radius: 50px;
}



/* Badge Modifiers */
.tag--severity {
  font-weight: var(--font-weight-medium);
  text-transform: capitalize;
  padding: 3px 8px;
  opacity: 1;
}

.tag--tech {
  text-transform: lowercase;
  margin-right: 0.25rem;
  border-radius: 10px;
    background: var( --bg-disabled)!important;
  color: var(--text-tertiary) !important;
}

.tag--modal {
  margin-right: 0.5rem;
}


/* Badge Colors - EXACT MATCH TO PR SCAN CSS */
.tag--critical {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.3);
  opacity: 0.8;
}

.tag--high {
  color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.3);
  opacity: 0.8;
}

.tag--medium {
  color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.3);
  opacity: 0.8;
}

.tag--low {
  color: #22c55e;
  background-color: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.3);
  opacity: 0.8;
}

.tag--success {
  color: #16a34a;
  background-color: rgba(34, 197, 94, 0.08);
}

.tag--warning {
  color: #ea580c;
  background-color: rgba(245, 158, 11, 0.08);
}

.tag--danger {
  color: #dc2626;
  background-color: rgba(239, 68, 68, 0.08);
}

.tag--info {
  color: #2563eb;
  background-color: rgba(59, 130, 246, 0.08);
}

.tag--code {
  background: #eff6ff;
  color: #1e40af;
}

.tag--secret {
  background: #fef2f2;
  color: #b91c1c;
}

.tag--iac {
  background: #f3e8ff;
  color: #7c3aed;
}

.tag--package {
  background: #fff7ed;
  color: #c2410c;
}

.tag--license {
  background: #f0fdf4;
  color: #15803d;
}

.tag--secondary {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.tag--dark {
  background: var(--bg-dark);
  color: white;
  cursor: pointer;
  text-transform: none !important;
}

.tag--private {
  background: var(--neutral-800);
  color: white;
}

.tag--public {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.tag--opened {
  color: #16a34a;
  background-color: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.tag--closed {
  color: #dc2626;
  background-color: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.tag--reopened {
  color: #2563eb;
  background-color: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag--synchronize {
  color: #ea580c;
  background-color: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.tag--completed {
  color: #16a34a;
  background-color: rgba(34, 197, 94, 0.08);
}

.tag--not-started {
  color: #6b7280;
  background-color: rgba(107, 114, 128, 0.08);
}

.tag--pending {
  color: #ea580c;
  background-color: rgba(245, 158, 11, 0.08);
}

.tag--running {
  color: #2563eb;
  background-color: rgba(59, 130, 246, 0.08);
}

.tag--initiated {
  color: #8b5cf6;
  background-color: rgba(139, 92, 246, 0.08);
}

.tag--error {
  color: #dc2626;
  background-color: rgba(239, 68, 68, 0.08);
  font-weight: var(--font-weight-medium);
}

/* Risk Badge Colors - EXACT MATCH TO PR SCAN CSS */
.tag--low-risk {
  background-color: rgba(34, 197, 94, 0.08);
  color: #2c974b;
}

.tag--medium-risk {
  background-color: rgba(245, 158, 11, 0.08);
  color: #d97f00;
}

.tag--high-risk {
  background-color: rgba(239, 68, 68, 0.08);
  color: #cb2431;
}

/* Special GitHub tag */
.tag--github {
  background: var(--neutral-800);
  color: white;
  text-transform: none !important;
}

.tag--github a {
  color: white;
  text-decoration: none;
}

/* Hover effects for interactive tags */
.tag--dark:hover,
.tag--github:hover,
.tag--private:hover {
  background: var(--neutral-700);
}

/* Badge containers */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0;
  align-items: center;
}

.tag-container--tight {
  gap: 0.25rem;
}

.tag-container--no-gap {
  gap: 0;
}

/** extras **/


/* === BREADCRUMBS === */
.breadcrumb {
  margin-bottom: 0.6rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: var(--text-tertiary);
}

.breadcrumb-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: 0.9em;
  /*display: flex;*/
  gap: 0.25rem;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-current {
  color: var(--text-secondary);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.15s ease;
  height: 36px;
  text-decoration: none;
  background: white;
  color: var(--text-primary);
}

.btn:hover {
  border-color: var(--border-dark);
  background: var(--bg-hover);
  text-decoration: none;
}

.btn:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.05);
}

.btn--primary {
  background: var(--bg-dark);
  color: white;
  border-color: var(--bg-dark);
}

.btn--primary:hover {
  color: white !important;
  background: var(--neutral-800);
  border-color: var(--neutral-800);
}

.btn--primary:focus {
  background: var(--bg-dark) !important;
  color: white;
  border-color: var(--bg-dark);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.05);
}


/* Toggle Button */
.btn--toggle {
  gap: 0.5rem;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  flex-shrink: 0;
  height: 25px;
  position: relative;
}

.btn--toggle::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1rem;
  transition: transform 0.25s ease;
  pointer-events: none;
  z-index: 1;
}

.btn--toggle.expanded::after {
  transform: translateY(-50%) rotate(180deg);
}

.btn--toggle span {
  position: relative;
  z-index: 2;
}
.dropdown {
  position: relative;
  min-width: 120px;
  width: auto;
}

.dropdown__button {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: var(--font-weight-normal);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  height: 36px;
  cursor: pointer;
  transition: border-color 0.15s ease;
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  user-select: none;
  min-width: 140px;
}

.dropdown__button:hover {
  border-color: var(--border-dark);
}

.dropdown__button.open {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.05);
}

.dropdown__button::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.dropdown__button.open::after {
  transform: translateY(-50%) rotate(180deg);
}

.dropdown__button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  display: block;
}

.dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  margin-top: 2px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  width: 100%;
  box-sizing: border-box;
  /* Ensure dropdown doesn't get clipped */
  min-width: max-content;
}

.dropdown__menu.show {
  display: block;
}

.dropdown__option {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: background-color 0.1s ease;
  border-bottom: 1px solid var(--neutral-100);
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: var(--font-weight-normal);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  line-height: 1.25;
}

.dropdown__option:last-child {
  border-bottom: none;
}

.dropdown__option:hover {
  background: var(--bg-default);
}

.dropdown__option.selected {
  background: var(--bg-default);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

/* Dropdown Variants */
.dropdown--file {
  min-width: 350px;
  max-width: 350px;
  width: 350px;
}

.dropdown--file .dropdown__button {
  min-width: 350px;
  max-width: 350px;
  width: 350px;
  overflow: hidden;
  height: 36px;
}

.dropdown--file .dropdown__button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  display: block;
  padding-right: 2rem;
  line-height: 1.2;
}

.dropdown--file .dropdown__option {
  white-space: normal;
  line-height: 1.3;
  padding: 0.5rem 0.75rem;
  min-height: auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

.dropdown--file .dropdown__menu {
  min-width: 350px;
  max-width: 500px;
  width: auto;
}

.dropdown--org {
  min-width: 180px;
}


.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}


/* === MODAL COMPONENTS === */
.modal-content {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-default);
  padding: 1.5rem;
  border-radius: 8px 8px 0 0;
}

.modal-title {
  font-size: var(--text-l);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.modal-body {
  padding: 0;
  background: white;
   padding: 0rem 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  opacity: 0.5;
  font-size: 1.25rem;
  padding: 0.5rem;
  transition: opacity 0.15s ease;
  cursor: pointer;
}

.modal-close:hover {
  opacity: 0.8;
}

.modal-close:focus {
  outline: none;
  box-shadow: none;
}




.modal-body .subtle-box {
  border-radius: 6px;
  margin: 0.5rem 0;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.modal-body pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 1rem;
  font-size: 0.85rem;
  line-height: 1.4;
  overflow-x: auto;
  margin: 0.5rem 0;
}

.modal-body code {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

.modal-body pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

.modal-body details {
  margin: 1rem 0;
}

.modal-body details summary {
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.5rem;
  transition: color 0.15s ease;
}

.modal-body details summary:hover {
  color: var(--text-hover);
}

.modal-body details[open] summary {
  margin-bottom: 1rem;
}

.modal-body a {
  color: var(--text-primary);
  text-decoration: underline;
  transition: color 0.15s ease;
}

.modal-body a:hover {
  color: var(--text-hover);
}

.modal-body .text-muted {
  color: var(--text-tertiary) !important;
}

.modal-body .small {
  font-size: var(--text-xs) !important;
}

/* Patch Display */
#modal-patch {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 6px;
  /*padding: 1rem !important;*/
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.4;
  overflow-x: auto;
  white-space: pre-wrap !important;
}

#modal-patch div {
  padding: 2px 4px;
  margin: 1px 0;
  border-radius: 2px;
}

#modal-patch span[style*="background-color: #f8bbd0"] {
  background-color: rgba(239, 68, 68, 0.2) !important;
  padding: 0 2px;
  border-radius: 2px;
}

.modal-metadata-header {
  background-color: var(--bg-default);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-metadata-header:hover {
  border-color: var(--border-dark);
  background-color: var(--bg-hover);
}

.modal-metadata-content {
  background-color: var(--bg-default);
  border-radius: 6px;
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.modal-metadata-collapse {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.modal-metadata-collapse.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0 !important;
}

.modal-metadata-collapse.expanded {
  max-height: 1000px;
  opacity: 1;
}

.modal-file-path {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.modal-metadata-icon {
  transition: transform 0.2s ease;
  color: var(--text-tertiary);
}

.modal-metadata-icon.rotated {
  transform: rotate(180deg);
}

.modal-metadata-title {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

.modal-metadata-row {
  padding: 0.50rem 0;
}

.modal-metadata-row:last-child {
  border-bottom: none;
  padding-bottom: 0.5rem;
}

.modal-metadata-row:first-child {
  padding-top: 0.5rem;
}

.modal-metadata-label {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.25rem;
}

.modal-metadata-value {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-sm);
}

.modal-metadata-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.modal-tab-content {
  padding-top: 0;
  margin-top: 1.5rem;
}


.org-card {
  background: var(--bg-default);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: none;
}

.org-card.show {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.org-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.org-name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  margin: 0;
}

.org-url {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-decoration: none;
}

.pagination {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination-btn {
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 6px;
  min-width: 36px;
  height: 36px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(.disabled) {
  background: var(--bg-default);
  border-color: var(--border-dark);
  color: var(--text-hover);
}
.pagination-btn:hover{
  background: var(--bg-hover);
  border-color: var(--border-dark);
  color: var(--text-primary);
}

.pagination-btn.active {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}

.pagination-btn.active:hover {
 color: white !important;
  background: var(--neutral-800);
  border-color: var(--neutral-800);
}

.pagination-btn.active:active {
 color: white !important;
  background: var(--neutral-800);
  border-color: var(--neutral-800);
}


.pagination-btn.disabled {
  background: var(--bg-disabled);
  color: var(--text-tertiary);
  cursor: not-allowed;
  opacity: 0.6;
}
.pagination-info {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 1rem;
}


.search-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 5px 0px;
}
.search-input {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  font-size: var(--text-sm);
  color: var(--text-primary);
  width: 280px;
  height: 36px;
  transition: border-color 0.15s ease;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23999'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21 21-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0z'/%3e%3c/svg%3e");
  background-position: left 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.05);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

/* Search Input Variants */
.search-input--file {
  width: 95% !important;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  height: 33px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}
.search-input--file:focus {
  outline: none;
  border-color: var(--border-focus);
}
.search-input--file::placeholder {
  color: var(--text-tertiary);
}
/* .search-input--file:focus {
  border-color: var(--border-dark) !important;
  box-shadow: none !important;
} */




/* === LOADING STATES === */
.loading-message {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 3rem 2rem;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--neutral-200);
  border-top: 4px solid var(--neutral-900);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin: 0 auto 1.5rem auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-content h2 {
  font-size: var(--text-l, 1.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
  text-align: center;
}

.loading-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}


/* === TABS === */
.tabs {
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.tabs-nav {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tabs-nav li {
  margin: 0;
}

.tabs-link {
  display: block;
  padding: 0.75rem 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabs-link:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.tabs-link.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

.tabs-content {
  display: none;
   background: white;
}


.tabs-content.active {
  display: block;
}

/* Modal Tabs */
.tabs--modal {
  border-bottom: 1px solid var(--border-light);
  margin: 0;
  padding: 0 1.5rem;
}

.tabs--modal .tabs-link {
  color: var(--text-secondary);
  border: none;
  border-bottom: 2px solid transparent;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  padding: 1rem 1.5rem;
  background: none;
  transition: all 0.15s ease;
}

.tabs--modal .tabs-link:hover {
  color: var(--text-primary);
  border-color: transparent;
  background: none;
}

.tabs--modal .tabs-link.active {
  color: var(--text-primary);
  background: none;
  border-bottom-color: var(--text-primary);
  font-weight: var(--font-weight-bold);
}



.data-container {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  font-weight: var(--font-weight-medium);
  text-align: left;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.data-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
  background: white;
  transition: background-color 0.1s ease;
}

.data-table--clickable tbody tr {
  cursor: pointer;
}

.data-table tbody tr:hover td {
  background: var(--bg-default);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Data Items (for list-style layouts) */
.data-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  transition: background-color 0.1s ease;
  border-bottom: 1px solid var(--border-light);
}

.data-item:last-child {
  border-bottom: none;
}

.data-item:hover {
  background: var(--bg-default);
}

.data-item--clickable {
  cursor: pointer;
}

.data-item-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.data-item-content {
  min-width: 0;
  flex: 1;
}

.data-item-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Data Content */
.data-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  margin: 0 0 0.125rem 0;
  line-height: 1.25;
}

.data-subtitle {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.25;
  font-family: var(--font-secondary);
  padding: 10px 0px;
}



.data-arrow {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.data-item--clickable:hover .data-arrow,
.data-table--clickable tbody tr:hover .data-arrow {
  opacity: 1;
}