/* PEER Audit Dashboard - Bootstrap 5 Dark Theme Customizations */

:root {
  --sidebar-width: 260px;
  --sidebar-bg: #0d1117;
  --content-bg: #161b22;
  --card-bg: #21262d;
  --border-color: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --accent-blue: #58a6ff;
  --accent-green: #3fb950;
  --accent-yellow: #d29922;
  --accent-red: #f85149;
  --accent-purple: #a371f7;
}

/* Override Bootstrap dark theme */
[data-bs-theme="dark"] {
  --bs-body-bg: var(--content-bg);
  --bs-body-color: var(--text-primary);
  --bs-card-bg: var(--card-bg);
  --bs-border-color: var(--border-color);
}

body {
  background: var(--content-bg);
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h4 {
  color: var(--accent-blue);
  font-weight: 600;
}

.sidebar-section {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
  padding: 0.5rem 0;
  flex: 1;
}

.sidebar-nav .nav-item {
  padding: 0 0.75rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.15s ease;
  margin-bottom: 0.25rem;
}

.sidebar-nav .nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav .nav-link.active {
  color: var(--text-primary);
  background: rgba(88, 166, 255, 0.15);
  font-weight: 500;
}

.sidebar-nav .nav-link i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
}

.sidebar-nav .badge {
  font-size: 0.7rem;
  font-weight: 500;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  padding: 2rem;
  min-height: 100vh;
  width: calc(100% - var(--sidebar-width));
}

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

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
}

.section-header h2 i {
  color: var(--accent-blue);
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
}

.card-header h6 {
  font-weight: 600;
}

/* Score Circle */
.score-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(88, 166, 255, 0.1) 100%);
}

.score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--sidebar-bg);
  border: 4px solid var(--accent-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.score-circle::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(88, 166, 255, 0.3);
}

.score-value,
.score-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.score-grade {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Sidebar branding */
.sidebar-logo {
  width: 32px;
  height: 32px;
  margin-right: 0.75rem;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.sidebar-header {
  display: flex;
  align-items: center;
}

/* Content header */
.content-header {
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Stat card labels */
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0;
}

/* Severity badges for security section */
.severity-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 0.5rem;
}

.severity-badge.critical {
  background: rgba(248, 81, 73, 0.2);
  color: var(--accent-red);
  border: 2px solid var(--accent-red);
}

.severity-badge.high {
  background: rgba(240, 136, 62, 0.2);
  color: #f0883e;
  border: 2px solid #f0883e;
}

.severity-badge.medium {
  background: rgba(210, 153, 34, 0.2);
  color: var(--accent-yellow);
  border: 2px solid var(--accent-yellow);
}

.severity-badge.low {
  background: rgba(139, 148, 158, 0.2);
  color: var(--text-secondary);
  border: 2px solid var(--text-secondary);
}

/* Score colors */
.score-circle.score-a { border-color: var(--accent-green); }
.score-circle.score-a::after { border-color: rgba(63, 185, 80, 0.3); }
.score-circle.score-a .score-number { color: var(--accent-green); }

.score-circle.score-b { border-color: var(--accent-blue); }
.score-circle.score-b::after { border-color: rgba(88, 166, 255, 0.3); }
.score-circle.score-b .score-number { color: var(--accent-blue); }

.score-circle.score-c { border-color: var(--accent-yellow); }
.score-circle.score-c::after { border-color: rgba(210, 153, 34, 0.3); }
.score-circle.score-c .score-number { color: var(--accent-yellow); }

.score-circle.score-d { border-color: #f0883e; }
.score-circle.score-d::after { border-color: rgba(240, 136, 62, 0.3); }
.score-circle.score-d .score-number { color: #f0883e; }

.score-circle.score-f { border-color: var(--accent-red); }
.score-circle.score-f::after { border-color: rgba(248, 81, 73, 0.3); }
.score-circle.score-f .score-number { color: var(--accent-red); }

/* Stat Cards */
.stat-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* Tables */
.table {
  margin: 0;
  color: var(--text-primary);
}

.table thead th {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
}

.table tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Buttons */
.btn-copy {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Progress bars */
.progress {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Form controls */
.form-select {
  background-color: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.form-select:focus {
  background-color: var(--card-bg);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 0.2rem rgba(88, 166, 255, 0.25);
  color: var(--text-primary);
}

/* Vulnerability items */
.vulnerability-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
}

.vulnerability-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

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

.vulnerability-severity {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.vulnerability-severity.critical {
  background: rgba(248, 81, 73, 0.2);
  color: var(--accent-red);
}

.vulnerability-severity.high {
  background: rgba(210, 153, 34, 0.2);
  color: var(--accent-yellow);
}

.vulnerability-severity.medium {
  background: rgba(88, 166, 255, 0.2);
  color: var(--accent-blue);
}

.vulnerability-severity.low {
  background: rgba(139, 148, 158, 0.2);
  color: var(--text-secondary);
}

/* Fix module items */
.fix-module {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.fix-module:last-child {
  border-bottom: none;
}

.fix-module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.fix-module-name {
  font-weight: 600;
}

.fix-module-confidence {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.fix-module-confidence.high {
  background: rgba(63, 185, 80, 0.2);
  color: var(--accent-green);
}

.fix-module-confidence.medium {
  background: rgba(210, 153, 34, 0.2);
  color: var(--accent-yellow);
}

.fix-module-confidence.low {
  background: rgba(139, 148, 158, 0.2);
  color: var(--text-secondary);
}

/* Quarantine items */
.quarantine-item {
  padding: 0.75rem;
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.2);
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.quarantine-item:last-child {
  margin-bottom: 0;
}

/* Chart container */
.chart-container {
  position: relative;
}

/* Loading state */
#loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

/* Toast customization */
.toast {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
}

.toast-header {
  background: var(--sidebar-bg);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

/* Code/command blocks */
.command-block {
  background: var(--sidebar-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.command-block code {
  color: var(--accent-green);
  flex: 1;
  overflow-x: auto;
}

/* Badge styling */
.badge {
  font-weight: 500;
}

/* Update type badges */
.update-type {
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
}

.update-type.major {
  background: rgba(248, 81, 73, 0.2);
  color: var(--accent-red);
}

.update-type.minor {
  background: rgba(210, 153, 34, 0.2);
  color: var(--accent-yellow);
}

.update-type.patch {
  background: rgba(88, 166, 255, 0.2);
  color: var(--accent-blue);
}

/* License risk */
.license-risk {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.license-risk.high {
  background: rgba(248, 81, 73, 0.2);
  color: var(--accent-red);
}

.license-risk.medium {
  background: rgba(210, 153, 34, 0.2);
  color: var(--accent-yellow);
}

.license-risk.low {
  background: rgba(63, 185, 80, 0.2);
  color: var(--accent-green);
}

/* Responsive */
@media (max-width: 991.98px) {
  .sidebar {
    width: 70px;
    overflow: visible;
  }

  .sidebar-header h4 span,
  .sidebar-header small,
  .sidebar-section label,
  .sidebar-nav .nav-link span:not(.badge),
  .sidebar-footer small {
    display: none;
  }

  .sidebar-header {
    padding: 1rem;
    text-align: center;
  }

  .sidebar-header h4 {
    font-size: 1.5rem;
  }

  .sidebar-section {
    padding: 0.75rem;
  }

  .sidebar-section .form-select {
    font-size: 0;
    padding: 0.5rem;
    background-position: center;
  }

  .sidebar-nav .nav-link {
    justify-content: center;
    padding: 0.75rem;
  }

  .sidebar-nav .nav-link i {
    margin: 0;
    font-size: 1.25rem;
  }

  .sidebar-nav .badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    font-size: 0.6rem;
    padding: 0.15rem 0.3rem;
  }

  .sidebar-nav .nav-item {
    position: relative;
  }

  .sidebar-footer {
    padding: 0.75rem;
  }

  .sidebar-footer .btn {
    padding: 0.5rem;
    font-size: 0;
  }

  .sidebar-footer .btn i {
    font-size: 1.25rem;
    margin: 0 !important;
  }

  .main-content {
    margin-left: 70px;
    width: calc(100% - 70px);
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    border-right: none;
    border-top: 1px solid var(--border-color);
  }

  .sidebar-header,
  .sidebar-section,
  .sidebar-footer {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 0;
    overflow-x: auto;
  }

  .sidebar-nav .nav-item {
    flex: 1;
    padding: 0;
  }

  .sidebar-nav .nav-link {
    flex-direction: column;
    padding: 0.75rem 0.5rem;
    font-size: 0.7rem;
    gap: 0.25rem;
    border-radius: 0;
    margin: 0;
  }

  .sidebar-nav .nav-link i {
    font-size: 1.25rem;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
    padding-bottom: 5rem;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--sidebar-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Animation for section transitions */
.content-section {
  animation: fadeIn 0.2s ease;
}

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

/* Empty state styling */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* ============================================
   DEEP DATA UI COMPONENTS
   ============================================ */

/* Expandable Table Rows */
.expandable-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.expandable-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.expandable-row.expanded {
  background: rgba(88, 166, 255, 0.05);
}

.expandable-row .expand-toggle {
  width: 40px;
  text-align: center;
  cursor: pointer;
}

.expandable-row .expand-toggle i {
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.expandable-row.expanded .expand-toggle i {
  color: var(--accent-blue);
}

.expanded-content-row {
  background: var(--sidebar-bg);
}

.expanded-content-row td {
  padding: 0 !important;
  border-bottom: 2px solid var(--accent-blue);
}

.expanded-content {
  padding: 1.25rem;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Confidence Badge */
.confidence-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.confidence-badge.confidence-high {
  background: rgba(63, 185, 80, 0.2);
  color: var(--accent-green);
}

.confidence-badge.confidence-medium {
  background: rgba(210, 153, 34, 0.2);
  color: var(--accent-yellow);
}

.confidence-badge.confidence-low {
  background: rgba(139, 148, 158, 0.2);
  color: var(--text-secondary);
}

/* Status Badge */
.status-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.status-badge.status-active,
.status-badge.status-used {
  background: rgba(63, 185, 80, 0.2);
  color: var(--accent-green);
}

.status-badge.status-unused,
.status-badge.status-dead {
  background: rgba(248, 81, 73, 0.2);
  color: var(--accent-red);
}

.status-badge.status-deprecated {
  background: rgba(139, 148, 158, 0.2);
  color: var(--text-secondary);
  text-decoration: line-through;
}

/* Severity Inline */
.severity-inline {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 700;
}

.severity-inline.severity-critical {
  background: rgba(248, 81, 73, 0.3);
  color: var(--accent-red);
}

.severity-inline.severity-high {
  background: rgba(240, 136, 62, 0.3);
  color: #f0883e;
}

.severity-inline.severity-medium {
  background: rgba(210, 153, 34, 0.3);
  color: var(--accent-yellow);
}

.severity-inline.severity-low {
  background: rgba(139, 148, 158, 0.3);
  color: var(--text-secondary);
}

/* Code Block */
.code-block {
  background: #0d1117;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: auto;
  position: relative;
  margin: 0.5rem 0;
}

.code-block pre {
  margin: 0;
  padding: 1rem;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

.code-block code {
  color: var(--text-primary);
}

.code-block .code-language {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: var(--card-bg);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.code-block .code-line {
  display: flex;
}

.code-block .line-number {
  color: var(--text-secondary);
  width: 3rem;
  text-align: right;
  padding-right: 1rem;
  user-select: none;
  flex-shrink: 0;
}

.code-block .line-content {
  flex: 1;
}

.code-block .code-line.highlighted {
  background: rgba(210, 153, 34, 0.2);
}

/* Evidence Block */
.evidence-block {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin: 0.75rem 0;
  overflow: hidden;
}

.evidence-block.evidence-warning {
  border-left: 3px solid var(--accent-yellow);
}

.evidence-block.evidence-success {
  border-left: 3px solid var(--accent-green);
}

.evidence-block.evidence-security {
  border-left: 3px solid var(--accent-red);
}

.evidence-block.evidence-info {
  border-left: 3px solid var(--accent-blue);
}

.evidence-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}

.evidence-header i {
  color: var(--accent-blue);
}

.evidence-title {
  font-weight: 600;
  flex: 1;
}

.evidence-content {
  padding: 1rem;
}

.evidence-description {
  margin: 0 0 0.75rem 0;
  color: var(--text-secondary);
}

.evidence-list {
  margin: 0;
  padding-left: 1.25rem;
}

.evidence-list li {
  margin-bottom: 0.5rem;
}

.evidence-list .file-path {
  color: var(--accent-blue);
  font-size: 0.85rem;
}

/* Git History Block */
.git-history-block {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin: 0.75rem 0;
}

.git-history-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.git-history-header i {
  color: #f0883e;
}

.git-history-content {
  padding: 1rem;
}

.git-stat {
  display: flex;
  margin-bottom: 0.5rem;
}

.git-stat:last-child {
  margin-bottom: 0;
}

.git-label {
  color: var(--text-secondary);
  width: 120px;
  flex-shrink: 0;
}

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

.commit-message {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Cost Impact Block */
.cost-impact-block {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin: 0.75rem 0;
}

.cost-impact-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.cost-impact-header i {
  color: var(--accent-green);
}

.cost-impact-content {
  padding: 1rem;
}

.cost-description {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.cost-stat {
  text-align: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.cost-stat.savings {
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.cost-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cost-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Recommendation Block */
.recommendation-block {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin: 0.75rem 0;
}

.recommendation-block.priority-high {
  border-left: 3px solid var(--accent-red);
}

.recommendation-block.priority-medium {
  border-left: 3px solid var(--accent-yellow);
}

.recommendation-block.priority-low {
  border-left: 3px solid var(--accent-blue);
}

.recommendation-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.recommendation-header i {
  color: var(--accent-yellow);
}

.recommendation-title {
  font-weight: 600;
  flex: 1;
}

.recommendation-meta {
  display: flex;
  gap: 0.5rem;
}

.priority-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-badge.priority-high {
  background: rgba(248, 81, 73, 0.2);
  color: var(--accent-red);
}

.priority-badge.priority-medium {
  background: rgba(210, 153, 34, 0.2);
  color: var(--accent-yellow);
}

.priority-badge.priority-low {
  background: rgba(88, 166, 255, 0.2);
  color: var(--accent-blue);
}

.effort-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 500;
  background: rgba(139, 148, 158, 0.2);
  color: var(--text-secondary);
}

.effort-badge.effort-low {
  background: rgba(63, 185, 80, 0.2);
  color: var(--accent-green);
}

.effort-badge.effort-high {
  background: rgba(248, 81, 73, 0.2);
  color: var(--accent-red);
}

.recommendation-content {
  padding: 1rem;
}

.recommendation-description {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
}

.recommendation-steps {
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
}

.recommendation-steps li {
  margin-bottom: 0.5rem;
}

.recommendation-commands {
  margin: 1rem 0;
}

.recommendation-commands .command-block {
  margin-bottom: 0.5rem;
}

.recommendation-alternatives {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.alternatives-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.alternative-badge {
  background: rgba(163, 113, 247, 0.2);
  color: var(--accent-purple);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.recommendation-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.recommendation-links a {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.85rem;
}

.recommendation-links a:hover {
  text-decoration: underline;
}

/* Changelog Block */
.changelog-block {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin: 0.75rem 0;
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.changelog-header i {
  color: var(--accent-purple);
}

.changelog-date {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: normal;
}

.changelog-link {
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.changelog-link:hover {
  color: var(--accent-blue);
}

.changelog-content {
  padding: 1rem;
}

.breaking-changes {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.3);
  border-radius: 4px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.breaking-changes ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.25rem;
}

.changelog-highlights {
  margin: 0;
  padding-left: 1.25rem;
}

.changelog-highlights li {
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

/* Health Indicator */
.health-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.health-indicator.health-healthy {
  background: rgba(63, 185, 80, 0.1);
  color: var(--accent-green);
}

.health-indicator.health-warning {
  background: rgba(210, 153, 34, 0.1);
  color: var(--accent-yellow);
}

.health-indicator.health-unmaintained {
  background: rgba(248, 81, 73, 0.1);
  color: var(--accent-red);
}

.health-indicator.health-deprecated {
  background: rgba(139, 148, 158, 0.1);
  color: var(--text-secondary);
}

.health-status {
  font-weight: 600;
}

.health-downloads,
.health-publish {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

/* Migration Block */
.migration-block {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin: 0.75rem 0;
}

.migration-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
}

.migration-header i {
  color: var(--accent-blue);
}

.migration-content {
  padding: 1rem;
}

.migration-steps {
  margin: 0 0 1rem 0;
  padding-left: 1.25rem;
}

.migration-steps li {
  margin-bottom: 0.5rem;
}

.migration-code-changes {
  margin: 1rem 0;
}

.code-change {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.5rem 0;
}

.code-before,
.code-after {
  position: relative;
}

.code-before .label,
.code-after .label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.code-before .code-block {
  border-left: 3px solid var(--accent-red);
}

.code-after .code-block {
  border-left: 3px solid var(--accent-green);
}

.migration-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.migration-links a {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.85rem;
}

/* Quick Fix Card */
.quick-fix-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-fix-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.quick-fix-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.quick-fix-header i {
  color: var(--accent-blue);
  font-size: 1.1rem;
}

.quick-fix-category {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  flex: 1;
}

.quick-fix-title {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.quick-fix-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0 0 0.75rem 0;
}

.quick-fix-files {
  margin-bottom: 0.5rem;
}

.quick-fix-savings {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: rgba(63, 185, 80, 0.1);
  border-radius: 4px;
}

.savings-value {
  color: var(--accent-green);
  font-weight: 600;
}

.savings-co2 {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.quick-fix-commands {
  margin-bottom: 0.75rem;
}

.quick-fix-commands .command-block.small {
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.quick-fix-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Expanded Content Layout */
.expanded-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.expanded-content-grid.single-column {
  grid-template-columns: 1fr;
}

.expanded-content-section {
  margin-bottom: 1rem;
}

.expanded-content-section:last-child {
  margin-bottom: 0;
}

.expanded-content-section h6 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 991.98px) {
  .expanded-content-grid {
    grid-template-columns: 1fr;
  }

  .code-change {
    grid-template-columns: 1fr;
  }

  .cost-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .cost-grid {
    grid-template-columns: 1fr;
  }

  .quick-fix-card {
    padding: 0.75rem;
  }
}
