/* Toast close button styling - Blue color */
.toast .btn-close {
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23007bff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
  opacity: 1 !important;
  width: 1em;
  height: 1em;
}

.toast .btn-close:hover {
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23004085'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
  opacity: 1 !important;
}

/* Toast styling to ensure proper background */
.toast {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.125) !important;
}

.toast-header {
  background-color: rgba(248, 249, 250, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125) !important;
}

/* Dark mode toast styling */
[data-theme="dark"] .toast {
  background-color: rgba(33, 37, 41, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.125) !important;
  color: #fff !important;
}

[data-theme="dark"] .toast-header {
  background-color: rgba(52, 58, 64, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.125) !important;
  color: #fff !important;
}

[data-theme="dark"] .toast .btn-close {
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236ea8fe'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
  opacity: 1 !important;
}

[data-theme="dark"] .toast .btn-close:hover {
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23adbce6'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
  opacity: 1 !important;
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] .toast {
    background-color: rgba(33, 37, 41, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.125) !important;
    color: #fff !important;
  }

  [data-theme="auto"] .toast-header {
    background-color: rgba(52, 58, 64, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.125) !important;
    color: #fff !important;
  }
  
  [data-theme="auto"] .toast .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236ea8fe'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
    opacity: 1 !important;
  }
  
  [data-theme="auto"] .toast .btn-close:hover {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23adbce6'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat !important;
    opacity: 1 !important;
  }
}

/* Remove border/shadow from job action buttons in active jobs dropdown */
.job-action-btn {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  margin: 0;
  line-height: 1;
  min-width: 0;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.job-action-btn:focus {
  outline: none;
  box-shadow: none !important;
}
/* No extra custom styles needed for Bootstrap 5 dropdown/list-group redesign */
.dependencies-section .dependencies-table tbody tr:hover, .dependencies-section .dependencies-table tbody tr:hover td {
  background-color: #e9ecef !important;
  transition: background 0.15s;
}
/* Hover sur les lignes du tableau des dépendances */
.dependencies-table tbody tr:hover {
  background: #f5f5f5;
  transition: background 0.15s;
}

@media (prefers-color-scheme: dark) {
  .dependencies-table tbody tr:hover {
    background: #232323;
  }
}
.theme-dropdown {
  position: relative;
}
.theme-dropdown-btn {
  color: #6c757d;
  font-size: 1.5rem;
  transition: color 0.2s;
}
.theme-dropdown-btn:hover, .theme-dropdown-btn:focus {
  color: #0066cc;
  outline: none;
}
.theme-dropdown-menu {
  min-width: 120px;
  padding: 0.5rem 0;
}
.theme-option {
  font-size: 1.1rem;
  color: #212529;
  transition: background 0.2s, color 0.2s;
}
.theme-option:hover, .theme-option.active {
  background: #e9ecef;
  color: #0066cc;
  text-decoration: none;
}


.theme-icons {
  gap: 1.2rem !important;
}
.theme-icon {
  font-size: 1.5rem;
  color: #6c757d;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.theme-icon:hover {
  color: #0066cc;
  text-decoration: none;
}
/* Force all dashboard backgrounds to pure white in light mode */
body, .main-container, .dashboard, .bg-light, .card, .card-body, .card-header, .card-footer, [class*="bg-"] {
  background: #ffffff !important;
  background-color: #ffffff !important;
}
/* Ensure dropdowns and tables use design tokens for backgrounds and borders */
.dropdown-menu, .dropdown-content, .dropdown, .dropdown-menu.show {
  background: var(--card) !important;
  color: var(--card-foreground) !important;
  border-color: var(--border) !important;
}

table, .table, .table-striped, .table-dark, .table-bordered, .table-hover, .table-responsive, thead, tbody, tfoot, tr, th, td {
  background: var(--card) !important;
  color: var(--card-foreground) !important;
  border-color: var(--border) !important;
}

/* Remove Bootstrap's .table-dark and .bg-dark overrides in dark mode */
.dark .table-dark, .dark .bg-dark, .dark .table-striped > tbody > tr:nth-of-type(odd) {
  background: var(--card) !important;
  color: var(--card-foreground) !important;
}
/* Figma-style Design Tokens and Dark Mode for Rails App */


:root {
  --background: #ffffff;
  --foreground: #232323;
  --card: #ffffff;
  --card-foreground: #232323;
  --border: rgba(0,0,0,0.1);
}

.dark {
  --background: #000000;
  --foreground: #ffffff;
  --card: #000000;
  --card-foreground: #ffffff;
  --border: #222;
}


body {
  background: #ffffff !important;
  color: var(--foreground) !important;
}

.card, .card-body, .card-header, .card-footer {
  background: var(--card) !important;
  color: var(--card-foreground) !important;
  border-color: var(--border) !important;
}
.btn, .button, button {
  background: var(--card) !important;
  color: var(--card-foreground) !important;
  border-color: var(--border) !important;
}


/* Remove all previous brute-force dark mode overrides */
/* --- UNIFIED DARK THEME (TRUE BLACK AS IN SCREENSHOT) --- */
[data-theme="dark"] body,
[data-theme="dark"] body.bg-light {
  background: #000000 !important;
  color: #ffffff !important;
}

/* Force TRUE BLACK background as in screenshot */
[data-theme="dark"] .main-container,
[data-theme="dark"] .bg-light,
[data-theme="dark"] div[style*="background: #ffffff"],
[data-theme="dark"] div[style*="background:#ffffff"],
[data-theme="dark"] div[style*="background: white"],
[data-theme="dark"] div[style*="background:white"] {
  background: #000000 !important;
  color: #ffffff !important;
}

/* Cards - FORCE TRUE BLACK */
[data-theme="dark"] .card,
[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .card-body,
[data-theme="dark"] .dashboard-summary,
[data-theme="dark"] .dashboard-panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .card-body,
html[data-theme="dark"] .dashboard-summary,
html[data-theme="dark"] .dashboard-panel {
  background: #000000 !important;
  background-color: #000000 !important;
  border: 1px solid #333333 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
}

/* Tables */
[data-theme="dark"] th,
[data-theme="dark"] td {
  background: transparent !important;
  color: #f0f6fc !important;
  border-color: #30363d !important;
}

/* Dropdowns */
[data-theme="dark"] .dropdown-menu {
  background-color: #161b22 !important;
  border-radius: 6px !important;
  border: 1px solid #30363d !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.32) !important;
  padding: 0.25rem 0 !important;
}
[data-theme="dark"] .dropdown-menu .dropdown-item {
  font-size: 1rem !important;
  padding: 0.375rem 0.75rem !important;
  border-radius: 4px !important;
  margin: 0 0.05rem;
  color: #f0f6fc !important;
  background: none !important;
  transition: background 0.15s, color 0.15s;
}
[data-theme="dark"] .dropdown-menu .dropdown-item.active,
[data-theme="dark"] .dropdown-menu .dropdown-item:active,
[data-theme="dark"] .dropdown-menu .dropdown-item:focus,
[data-theme="dark"] .dropdown-menu .dropdown-item:hover {
  background-color: #30363d !important;
  color: #f0f6fc !important;
  box-shadow: none !important;
  outline: none !important;
}
[data-theme="dark"] .dropdown-menu .dropdown-header {
  color: #8b949e !important;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem 0.25rem 1rem !important;
  pointer-events: none;
  background: none !important;
}

/* Buttons */

/* UNIVERSAL TRUE BLACK OVERRIDE FOR DARK THEME */
html[data-theme="dark"] body,
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .card,
html[data-theme="dark"] [class*="bg-"],
html[data-theme="dark"] [class*="card"],
html[data-theme="dark"] *[style*="background"],
html[data-theme="dark"] *[style*="background-color"],
html[data-theme="dark"] * {
  background: #000000 !important;
  background-color: #000000 !important;
  box-shadow: none !important;
  border-color: #222 !important;
}

/* Remove any non-black backgrounds in dark mode */
html[data-theme="dark"] *[style*="#161b22"],
html[data-theme="dark"] *[style*="#21262d"],
html[data-theme="dark"] *[style*="#0d1117"],
html[data-theme="dark"] *[style*="#30363d"],
html[data-theme="dark"] *[style*="#f8f9fa"],
html[data-theme="dark"] *[style*="white"],
html[data-theme="dark"] *[style*="#fff"],
html[data-theme="dark"] *[style*="#ffffff"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* STRONGEST OVERRIDE - TRUE BLACK background as in screenshot */
html[data-theme="dark"] body,
html[data-theme="dark"] body.bg-light,
html[data-theme="dark"] .main-container,
html[data-theme="dark"] .bg-light {
  background-color: #000000 !important;
  background: #000000 !important;
  color: #ffffff !important;
}

/* NUCLEAR OPTION - Force all backgrounds to black in dark mode */
[data-theme="dark"] *[style*="background"],
[data-theme="dark"] .bg-*,
[data-theme="dark"] [class*="bg-"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* Badge style for patch/minor/major */
[data-theme="dark"] .badge {
  border-radius: 999px !important;
  font-size: 0.875em !important;
  font-weight: 500;
  padding: 0.25em 0.75em !important;
  background: #21262d !important;
  color: #f0f6fc !important;
  border: 1px solid #30363d !important;
  letter-spacing: 0.01em;
}
[data-theme="dark"] .badge-patch {
  background: #238636 !important;
  color: #fff !important;
  border-color: #238636 !important;
}
[data-theme="dark"] .badge-minor {
  background: #b08800 !important;
  color: #fff !important;
  border-color: #b08800 !important;
}
[data-theme="dark"] .badge-major {
  background: #da3633 !important;
  color: #fff !important;
  border-color: #da3633 !important;
}
/* --- GLOBAL DARK THEME OVERRIDES (UNIFIED) --- */
[data-theme="dark"] .modal-content,
[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-light,
[data-theme="dark"] .alert,
[data-theme="dark"] .form-control,
[data-theme="dark"] .input-group-text,
[data-theme="dark"] .list-group-item,
[data-theme="dark"] .table,
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  background-color: #161b22 !important;
  color: #f0f6fc !important;
  border-color: #30363d !important;
}
.form-select {
  font-size: 0.8125rem !important;
  font-weight: 500;
}

[data-theme="dark"] .border-bottom {
  border-color: #30363d !important;
  background: #0d1117 !important;
}

[data-theme="dark"] .main-container {
  background: #0d1117 !important;
  color: #f0f6fc !important;
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary {
  color: #8b949e !important;
}

[data-theme="dark"] .btn-success {
  background-color: #238636 !important;
  color: #f0f6fc !important;
  border-color: #238636 !important;
}

[data-theme="dark"] .btn-outline-primary {
  color: #f0f6fc !important;
  border-color: #30363d !important;
  background-color: transparent !important;
}
[data-theme="dark"] .btn-outline-primary:hover {
  background-color: #30363d !important;
  color: #f0f6fc !important;
  border-color: #30363d !important;
}

[data-theme="dark"] .btn-primary {
  background-color: #21262d !important;
  color: #f0f6fc !important;
  border-color: #30363d !important;
}
[data-theme="dark"] .btn-primary:hover {
  background-color: #30363d !important;
  color: #f0f6fc !important;
  border-color: #30363d !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background-color: #161b22 !important;
  color: #f0f6fc !important;
  border-color: #30363d !important;
}

[data-theme="dark"] .modal-backdrop {
  background-color: #0d1117 !important;
}

[data-theme="dark"] .alert-success {
  background-color: #238636 !important;
  color: #f0f6fc !important;
  border-color: #238636 !important;
}
[data-theme="dark"] .alert-danger {
  background-color: #da3633 !important;
  color: #f0f6fc !important;
  border-color: #da3633 !important;
}
[data-theme="dark"] .alert-warning {
  background-color: #b08800 !important;
  color: #f0f6fc !important;
  border-color: #b08800 !important;
}
[data-theme="dark"] .alert-info {
  background-color: #1f6feb !important;
  color: #f0f6fc !important;
  border-color: #1f6feb !important;
}
/* EXACT Screenshot Match Styles */
.stats-card-screenshot {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 90px;
}

.stats-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stats-icon-blue {
  color: #4285f4;
  font-size: 1.5rem;
}

.stats-icon-orange {
  color: #ff9800;
  font-size: 1.5rem;
}

.stats-icon-red {
  color: #dc3545;
  font-size: 1.5rem;
}

.stats-icon-green {
  color: #28a745;
  font-size: 1.5rem;
}

.stats-icon-violet {
  color: #6f42c1;
  font-size: 1.5rem;
}

.stats-content {
  flex: 1;
}

.stats-label-top {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-number-big {
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
  line-height: 1;
}
.stats-number-middle {
  font-size: 1.9rem;
  font-weight: bold;
  color: #2c3e50;
  line-height: 1;
}
/* Filter Tabs Screenshot Match - Compact Design */
.filter-tabs-screenshot {
  display: inline-flex;
  gap: 0;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  background: #f8f9fa;
  padding: 2px;
  margin-bottom: 1.5rem;
}

.filter-tab-screenshot {
  background: transparent;
  border: none;
  padding: 0.375rem 0.75rem;
  margin: 0;
  font-size: 0.8125rem;
  color: #6c757d;
  cursor: pointer;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-tab-screenshot.active {
  color: #2c3e50;
  background: white;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Project Cards Screenshot Match */
.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease;
}

.project-card-link:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
}

.project-card-link:hover .project-card-screenshot {
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.project-card-screenshot {
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.project-header-screenshot {
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid #f1f3f4;
}

.project-title-screenshot {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.project-date-screenshot {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 0;
}

.project-status-screenshot {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #dc3545;
}

.project-body-screenshot {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dependencies-title-screenshot {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.dependencies-stats-screenshot {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.dependencies-list-screenshot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  overflow: hidden;
  max-height: 120px;
}

.dependency-item-screenshot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.375rem 0;
}

.dependency-name-screenshot {
  font-size: 0.8125rem;
  color: #495057;
  flex: 1;
}

.dependency-count-screenshot {
  background: #f8f9fa;
  color: #495057;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  min-width: 24px;
  text-align: center;
}

.badge-majeur-screenshot {
  background: #2c3e50;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dependencies Table View */
.dependencies-section {
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  padding: 1.5rem;
}

.dependencies-header {
  margin-bottom: 1.5rem;
}

.dependencies-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.dependencies-count {
  font-size: 0.8125rem;
  color: #6c757d;
  margin: 0;
}

.dependencies-table-wrapper {
  overflow-x: auto;
}

.dependencies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.dependencies-table th {
  background: #f8f9fa;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dependencies-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
}

.dependencies-section .dependencies-table tbody tr:hover {
  background: #e9ecef !important;
  transition: background 0.15s;
}

.package-name {
  font-weight: 500;
  color: #2c3e50;
}

.project-name {
  color: #495057;
}

.current-version, .latest-version {
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.75rem;
  color: #6c757d;
}

.type-badge-majeur {
  background: #dc3545;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.type-badge-critical {
  background: #6f42c1;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.type-badge-minor {
  background: #fd7e14;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.type-badge-patch {
  background: #007bff;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.type-badge-success {
  background: #28a745;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Cohérence des couleurs avec les badges */
.text-violet {
  color: #6f42c1 !important;
}

.text-orange {
  color: #fd7e14 !important;
}

.text-blue {
  color: #007bff !important;
}

/* Styles pour les icônes des statistiques */
.stats-icon-green {
  color: #28a745;
  font-size: 1.5rem;
  opacity: 0.7;
}

.stats-icon-blue {
  color: #007bff;
  font-size: 1.5rem;
  opacity: 0.7;
}

.stats-icon-orange {
  color: #fd7e14;
  font-size: 1.5rem;
  opacity: 0.7;
}

.stats-icon-red {
  color: #dc3545;
  font-size: 1.5rem;
  opacity: 0.7;
}

/* Styles pour les en-têtes de tableau triables */
.dependencies-table th[data-action*="table-sort#sort"] {
  user-select: none;
  transition: background-color 0.15s ease;
}

.dependencies-table th[data-action*="table-sort#sort"]:hover {
  background-color: #f8f9fa;
}

/* Améliorations pour la barre de recherche et les filtres */
.dependencies-header .form-control {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
}

.dependencies-header .form-control:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.days-delayed {
  color: #dc3545;
  font-weight: 500;
}

.stats-icon {
  font-size: 1.5rem;
  opacity: 0.7;
}

.stats-content {
  flex: 1;
}

.stats-number-large {
  font-size: 2rem;
  font-weight: bold;
  color: #2c3e50;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stats-label-small {
  font-size: 0.8125rem;
  color: #6c757d;
  margin: 0;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-tab {
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #6c757d;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 500;
}

.filter-tab.active {
  color: #2c3e50;
  border-bottom-color: #2c3e50;
  font-weight: 600;
}

/* Project Cards Exact Layout */
.project-card-exact {
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 1.25rem;
  min-height: 120px;
}

.project-header-exact {
  padding: 1.25rem 1.25rem 0.75rem 1.25rem;
  border-bottom: 1px solid #f1f3f4;
}

.project-title-exact {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.375rem;
}

.project-date {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.project-status {
  font-size: 0.875rem;
  font-weight: 500;
  color: #dc3545;
}

.project-body {
  padding: 1rem 1.25rem 1.25rem 1.25rem;
}

.dependencies-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 1rem;
}

.dependency-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f8f9fa;
}

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

.dependency-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.dependency-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2c3e50;
}

.dependency-count {
  font-size: 0.75rem;
  color: #6c757d;
  min-width: 20px;
}

.dependency-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-majeur {
  background: #2c3e50;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-days {
  background: #dc3545;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  min-width: 24px;
  text-align: center;
}

/* Header Styles */
.header-version {
  font-size: 0.75rem;
  color: #6c757d;
  margin: 0;
}

.header-filters {
  font-size: 0.8125rem;
}

.header-filters span {
  margin-right: 1rem;
}

/* Dashboard Styles - Matching Screenshots */
.dashboard-header {
  padding: 0 0 1rem 0;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 1.5rem;
}

/* Responsive dashboard header */
@media (max-width: 767.98px) {
  .main-container > .border-bottom {
    padding: 1rem 0.5rem !important;
  }
  .main-container > .border-bottom .d-flex.justify-content-between.align-items-start {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }
  .main-container > .border-bottom nav.d-flex {
    flex-wrap: wrap;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem;
  }
  .main-container > .border-bottom .d-flex.align-items-center.gap-3 {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }
  .main-container > .border-bottom .dropdown.position-relative {
    margin-bottom: 0.5rem;
  }
}
/* Responsive improvements for project show page */
.card .row.justify-content-center.mb-3 > [class^="col-"] {
  min-width: 120px;
}

@media (max-width: 575.98px) {
  .card .row.justify-content-center.mb-3 > [class^="col-"] {
    min-width: 0;
    margin-bottom: 1rem;
  }
  .card .row.justify-content-center.mb-3 {
    flex-direction: column;
    align-items: center;
  }
  .card .row.justify-content-center.mb-3 > .col-12 {
    width: 100%;
  }
  .card .row.justify-content-center.mb-3 > .col-6 {
    width: 100%;
  }
}

.collapse .bg-dark {
  font-size: 0.8em;
  word-break: break-all;
}
/* Custom Bootstrap overrides for a clean, minimal look */
body {
  background-color: #f8f9fa !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
}

.bg-light {
  background-color: #f8f9fa !important;
}

.btn {
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
}

.btn-outline-primary {
  border-color: #0066cc;
  color: #0066cc;
}

.btn-outline-primary:hover {
  background-color: #0066cc;
  border-color: #0066cc;
}

.text-primary {
  color: #0066cc !important;
}

.text-success {
  color: #28a745 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-danger {
  color: #dc3545 !important;
}

.text-info {
  color: #17a2b8 !important;
}

hr.text-white-50 {
  border-color: #dee2e6 !important;
}

/* Dashboard Styles - Matching Screenshots */
.dashboard-header {
  padding: 0 0 1rem 0;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 1.5rem;
}

.dashboard-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.dashboard-header p {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

/* Statistics Cards - Compact Design */
.stats-card {
  background: white;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 0.5rem;
  border: 1px solid #e9ecef;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats-number {
  font-size: 1.75rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.stats-label {
  color: #6c757d;
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.2;
}

.stats-value {
  font-size: 1.75rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 0.25rem;
  line-height: 1;
}

/* Project Grid - Matching Screenshot Layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.project-card {
  background: white;
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.project-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border-color: #d6d9dc;
}

.project-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid #f1f3f4;
  padding-bottom: 0.75rem;
}

.project-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.project-client {
  color: #6c757d;
  font-size: 0.8125rem;
  margin: 0;
}

/* Project Statistics - Horizontal Layout */
.project-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.125rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.6875rem;
  color: #6c757d;
  line-height: 1.2;
}

/* Dependencies Section */
.project-dependencies {
  border-top: 1px solid #f1f3f4;
  padding-top: 1rem;
}

.project-dependencies h6 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dependency-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.375rem 0;
  border-bottom: 1px solid #f8f9fa;
  font-size: 0.8125rem;
}

.dependency-row:last-child {
  border-bottom: none;
}

.dependency-info {
  flex: 1;
}

.dependency-name {
  font-weight: 500;
  color: #2c3e50;
  display: block;
  margin-bottom: 0.125rem;
  font-size: 0.8125rem;
}

.dependency-versions {
  font-size: 0.6875rem;
  color: #6c757d;
}

.current-version, .new-version {
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 0.6875rem;
}

.current-version {
  background: #f8f9fa;
  color: #495057;
}

.new-version {
  background: #e7f3ff;
  color: #0066cc;
}

.update-badge {
  background: #fff3cd;
  color: #856404;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 0.625rem;
  font-weight: 500;
  white-space: nowrap;
}

.more-dependencies {
  text-align: center;
  color: #6c757d;
  font-size: 0.75rem;
  padding-top: 0.375rem;
  margin-top: 0.375rem;
  border-top: 1px solid #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .project-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stats-card {
    margin-bottom: 0.5rem;
  }
}

/* Project Detail Page Styles */
.project-detail-header {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
}

.stats-card.stats-info {
  border-left-color: #17a2b8;
}

.stats-card.stats-critical {
  border-left-color: #dc3545;
}

.version-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.version-badge.current {
  background: #e9ecef;
  color: #495057;
}

.version-badge.new {
  background: #d4edda;
  color: #155724;
}

.badge-major {
  background: #dc3545 !important;
  color: white !important;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

.badge-à-jour {
  background: #28a745 !important;
  color: white !important;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

.days-behind {
  color: #dc3545;
  font-weight: 500;
}

/* Table improvements - Clean Design */
.card {
  border-radius: 6px !important;
  border: 1px solid #e9ecef;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card-header {
  background: #fafbfc !important;
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 1.25rem;
}

.card-header h5 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.table th {
  background: #fafbfc;
  border: none;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
  color: #495057;
  font-size: 0.8125rem;
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

.table td {
  border: none;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: middle;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

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

.table-hover tbody tr:hover {
  background-color: #fafbfc;
}

/* Badge Updates */
.badge-major {
  background: #dc3545 !important;
  color: white !important;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-à-jour {
  background: #28a745 !important;
  color: white !important;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Version Badge Updates */
.version-badge {
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.version-badge.current {
  background: #f1f3f4;
  color: #495057;
}

.version-badge.new {
  background: #d4edda;
  color: #155724;
}

.days-behind {
  color: #dc3545;
  font-weight: 500;
  font-size: 0.8125rem;
}

/* DARK THEME STYLES - Exact Screenshot Match */
[data-theme="dark"] {
  background-color: #0d1117 !important;
  color: #f0f6fc !important;
}

[data-theme="dark"] .bg-light {
  background-color: #0d1117 !important;
}

[data-theme="dark"] .border-bottom {
  border-color: #21262d !important;
  background: #0d1117 !important;
}

[data-theme="dark"] .stats-card-screenshot {
  background: #161b22 !important;
  border-color: #30363d !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24) !important;
  color: #f0f6fc !important;
}

[data-theme="dark"] .stats-label-top {
  color: #8b949e !important;
}

[data-theme="dark"] .stats-number-big {
  color: #f0f6fc !important;
}

[data-theme="dark"] .text-muted {
  color: #8b949e !important;
}

[data-theme="dark"] .project-card-screenshot {
  background: #161b22 !important;
  border-color: #30363d !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24) !important;
}

[data-theme="dark"] .project-card-screenshot h6 {
  color: #f0f6fc !important;
}

[data-theme="dark"] .project-card-screenshot .text-muted {
  color: #8b949e !important;
}

[data-theme="dark"] .project-stats .text-muted {
  color: #8b949e !important;
}

[data-theme="dark"] .project-stats strong {
  color: #f0f6fc !important;
}

[data-theme="dark"] .filter-tabs-screenshot {
  border-color: #21262d !important;
}

[data-theme="dark"] .filter-tabs-screenshot .nav-link {
  color: #8b949e !important;
  border-color: transparent !important;
}

[data-theme="dark"] .filter-tabs-screenshot .nav-link.active {
  background-color: #0969da !important;
  color: #ffffff !important;
  border-color: #0969da !important;
}

[data-theme="dark"] .table {
  background-color: #161b22 !important;
  color: #f0f6fc !important;
}

[data-theme="dark"] .table th {
  background-color: #21262d !important;
  color: #f0f6fc !important;
  border-color: #30363d !important;
}

[data-theme="dark"] .table td {
  background-color: #161b22 !important;
  color: #f0f6fc !important;
  border-color: #21262d !important;
}

[data-theme="dark"] .dependencies-table {
  background: #161b22 !important;
  border-color: #30363d !important;
}

[data-theme="dark"] .dependencies-table th {
  background: #0d1117 !important;
  color: #f0f6fc !important;
  border-bottom-color: #30363d !important;
}

[data-theme="dark"] .dependencies-table td {
  background: #161b22 !important;
  color: #f0f6fc !important;
  border-bottom-color: #21262d !important;
}

[data-theme="dark"] .dependencies-table tbody tr:hover {
  background: #21262d !important;
}

[data-theme="dark"] .dependencies-table tbody tr:hover td {
  background: #21262d !important;
}

[data-theme="dark"] .package-name {
  color: #f0f6fc !important;
}

[data-theme="dark"] .current-version,
[data-theme="dark"] .latest-version {
  color: #8b949e !important;
}

[data-theme="dark"] .dependencies-table-wrapper {
  background: #161b22 !important;
}

[data-theme="dark"] .dependencies-subtitle {
  color: #f0f6fc !important;
}

[data-theme="dark"] .dependencies-count {
  color: #8b949e !important;
}

[data-theme="dark"] .days-delayed {
  color: #f85149 !important;
}

[data-theme="dark"] .dependencies-section {
  background: #0d1117 !important;
}

[data-theme="dark"] .dependencies-header {
  background: #0d1117 !important;
}

/* More specific selectors for table in dark theme */
[data-theme="dark"] .dependencies-section .dependencies-table-wrapper {
  background: #0d1117 !important;
}

[data-theme="dark"] .dependencies-section .dependencies-table {
  background: #0d1117 !important;
  border-color: #30363d !important;
}

[data-theme="dark"] .dependencies-section .dependencies-table th {
  background: #161b22 !important;
  color: #f0f6fc !important;
  border-bottom-color: #30363d !important;
}

[data-theme="dark"] .dependencies-section .dependencies-table td {
  background: #0d1117 !important;
  color: #f0f6fc !important;
  border-bottom-color: #21262d !important;
}

[data-theme="dark"] .dependencies-section .dependencies-table tbody tr {
  background: #0d1117 !important;
}

[data-theme="dark"] .dependencies-section .dependencies-table tbody tr:hover {
  background: #21262d !important;
}

[data-theme="dark"] .dependencies-section .dependencies-table tbody tr:hover td {
  background: #21262d !important;
}

/* Force override any Bootstrap or other table styles */
[data-theme="dark"] table,
[data-theme="dark"] table th,
[data-theme="dark"] table td,
[data-theme="dark"] table tr {
  background: #0d1117 !important;
  color: #f0f6fc !important;
  border-color: #30363d !important;
}

[data-theme="dark"] table thead th {
  background: #161b22 !important;
  color: #f0f6fc !important;
  border-color: #30363d !important;
}

/* Ensure no white backgrounds anywhere in dark theme tables */
[data-theme="dark"] .table,
[data-theme="dark"] .table-responsive,
[data-theme="dark"] .table > tbody > tr > td,
[data-theme="dark"] .table > tbody > tr > th,
[data-theme="dark"] .table > tfoot > tr > td,
[data-theme="dark"] .table > tfoot > tr > th,
[data-theme="dark"] .table > thead > tr > td,
[data-theme="dark"] .table > thead > tr > th {
  background: #0d1117 !important;
  color: #f0f6fc !important;
  border-color: #30363d !important;
}

/* Additional styles to ensure the container area is also dark */
[data-theme="dark"] div[style*="padding"] {
  background: transparent !important;
}

[data-theme="dark"] .dependencies-section *,
[data-theme="dark"] .dependencies-table-wrapper *,
[data-theme="dark"] .dependencies-table * {
  background-color: inherit !important;
}

/* Reset specific table cell backgrounds */
[data-theme="dark"] .dependencies-table tbody tr td {
  background-color: #0d1117 !important;
}

[data-theme="dark"] .btn-link {
  color: #8b949e !important;
}

[data-theme="dark"] .system-dropdown-menu {
  background: #161b22 !important;
  border-color: #30363d !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
}

[data-theme="dark"] .system-dropdown-menu * {
  background: #161b22 !important;
  color: #f0f6fc !important;
}

[data-theme="dark"] .system-dropdown-menu .dropdown-item {
  background: #161b22 !important;
  color: #f0f6fc !important;
}

[data-theme="dark"] .system-dropdown-menu .dropdown-item:hover {
  background-color: #21262d !important;
  color: #f0f6fc !important;
}

[data-theme="dark"] .system-dropdown-menu .dropdown-item.active {
  background-color: #0969da !important;
  color: #ffffff !important;
}

[data-theme="dark"] .system-dropdown-menu .dropdown-header {
  background: #161b22 !important;
  color: #8b949e !important;
}

/* Light theme - ensure dropdown is light */
html:not([data-theme="dark"]) .system-dropdown-menu {
  background: #ffffff !important;
  border-color: #dee2e6 !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important;
}

html:not([data-theme="dark"]) .system-dropdown-menu * {
  background: transparent !important;
  color: #212529 !important;
}

html:not([data-theme="dark"]) .system-dropdown-menu .dropdown-item {
  background: transparent !important;
  color: #212529 !important;
}

html:not([data-theme="dark"]) .system-dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

html:not([data-theme="dark"]) .system-dropdown-menu .dropdown-item.active {
  background-color: #e9ecef !important;
  color: #212529 !important;
}

html:not([data-theme="dark"]) .system-dropdown-menu .dropdown-header {
  background: transparent !important;
  color: #6c757d !important;
}

/* Status Filter Dropdown Styles */
.status-dropdown-menu {
  background: #ffffff !important;
  border-color: #dee2e6 !important;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important;
}

.status-dropdown-menu .dropdown-item {
  background: transparent !important;
  color: #212529 !important;
}

.status-dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

.status-dropdown-menu .dropdown-item.active {
  background-color: #e9ecef !important;
  color: #212529 !important;
}

/* Dark theme for status dropdown */
[data-theme="dark"] .status-dropdown-menu {
  background: #161b22 !important;
  border-color: #30363d !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
}

[data-theme="dark"] .status-dropdown-menu .dropdown-item {
  background: transparent !important;
  color: #f0f6fc !important;
}

[data-theme="dark"] .status-dropdown-menu .dropdown-item:hover {
  background-color: #21262d !important;
  color: #f0f6fc !important;
}

[data-theme="dark"] .status-dropdown-menu .dropdown-item.active {
  background-color: #0969da !important;
  color: #ffffff !important;
}

[data-theme="dark"] .main-container {
  background: #0d1117 !important;
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
  color: #f0f6fc !important;
}

/* Auto theme - matches system preference */
@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    background-color: #0d1117 !important;
    color: #f0f6fc !important;
  }
  
  [data-theme="auto"] .bg-light {
    background-color: #0d1117 !important;
  }
  
  [data-theme="auto"] .main-container {
    background: #0d1117 !important;
  }
  
  [data-theme="auto"] .border-bottom {
    border-color: #21262d !important;
    background: #0d1117 !important;
  }
  
  [data-theme="auto"] .stats-card-screenshot {
    background: #161b22 !important;
    border-color: #30363d !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24) !important;
    color: #f0f6fc !important;
  }
  
  [data-theme="auto"] .stats-label-top {
    color: #8b949e !important;
  }
  
  [data-theme="auto"] .stats-number-big {
    color: #f0f6fc !important;
  }
  
  [data-theme="auto"] .text-muted {
    color: #8b949e !important;
  }
  
  [data-theme="auto"] .project-card-screenshot {
    background: #161b22 !important;
    border-color: #30363d !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24) !important;
  }
  
  [data-theme="auto"] .project-card-screenshot h6 {
    color: #f0f6fc !important;
  }
  
  [data-theme="auto"] .project-card-screenshot .text-muted {
    color: #8b949e !important;
  }
  
  [data-theme="auto"] .filter-tabs-screenshot .nav-link {
    color: #8b949e !important;
  }
  
  [data-theme="auto"] .filter-tabs-screenshot .nav-link.active {
    background-color: #0969da !important;
    color: #ffffff !important;
    border-color: #0969da !important;
  }
  
  [data-theme="auto"] h1, [data-theme="auto"] h2, [data-theme="auto"] h3,
  [data-theme="auto"] h4, [data-theme="auto"] h5, [data-theme="auto"] h6 {
    color: #f0f6fc !important;
  }
  
  [data-theme="auto"] .system-dropdown-menu {
    background: #161b22 !important;
    border-color: #30363d !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
  }

  [data-theme="auto"] .system-dropdown-menu .dropdown-item {
    color: #f0f6fc !important;
  }

  [data-theme="auto"] .system-dropdown-menu .dropdown-item:hover {
    background-color: #21262d !important;
    color: #f0f6fc !important;
  }

  [data-theme="auto"] .system-dropdown-menu .dropdown-item.active {
    background-color: #0969da !important;
    color: #ffffff !important;
  }

  [data-theme="auto"] .system-dropdown-menu .dropdown-header {
    color: #8b949e !important;
  }
}

/* Token verification styles */
.token-verification-status {
  min-height: 20px;
}

.token-verification-status .spinner-border-sm {
  width: 0.875rem;
  height: 0.875rem;
}

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

.token-verification-status .spinner-border {
  animation: spin 1s linear infinite;
}

/* Token input validation styles */
.token-input-valid {
  border-color: #198754 !important;
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25) !important;
}

.token-input-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}
