/* Project Brief Tab Styles */

/* ============================================
   BRAINSTORMING STATE - Engaging Animation
   ============================================ */

.brief-brainstorming {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
  border-radius: 12px;
  margin: 1rem;
}

.brainstorm-visual {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 2rem;
}

.brainstorm-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}

.brainstorm-center i {
  font-size: 1.75rem;
  color: white;
}

.brainstorm-orbit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: orbit-spin 20s linear infinite;
}

.brainstorm-planet {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: planet-bob 3s ease-in-out infinite;
}

.planet-1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  animation-delay: 0s;
}

.planet-2 {
  top: 30%;
  right: 0;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  animation-delay: 0.5s;
}

.planet-3 {
  bottom: 10%;
  right: 15%;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  animation-delay: 1s;
}

.planet-4 {
  bottom: 10%;
  left: 15%;
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  animation-delay: 1.5s;
}

.planet-5 {
  top: 30%;
  left: 0;
  background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
  animation-delay: 2s;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes planet-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.1); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4); }
  50% { box-shadow: 0 4px 40px rgba(102, 126, 234, 0.7); }
}

.brainstorm-content {
  max-width: 500px;
}

.brainstorm-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.typing-dots span {
  animation: typing-dot 1.4s infinite ease-in-out;
  font-weight: bold;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}

.brainstorm-phase {
  font-size: 1.1rem;
  color: #667eea;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fade-in-out 3s ease-in-out infinite;
}

@keyframes fade-in-out {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.brainstorm-progress-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.brainstorm-progress-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.brainstorm-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 0.5s ease-out;
  position: relative;
}

.brainstorm-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

.brainstorm-progress-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #667eea;
  min-width: 40px;
}

.brainstorm-fact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 20px;
  margin-bottom: 1rem;
  color: #4a5568;
  font-size: 0.875rem;
}

.brainstorm-fact i {
  color: #667eea;
}

.brainstorm-patience {
  color: #a0aec0;
  font-size: 0.875rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* Selected Reference Banner - shows during brainstorming */
.brainstorm-selected-reference {
  width: 100%;
  max-width: 500px;
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  text-align: left;
}

.selected-reference-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  border-radius: 20px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.selected-reference-badge i {
  font-size: 0.875rem;
}

.selected-reference-type {
  margin-bottom: 1rem;
}

.selected-reference-type .type-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2d3748;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.selected-reference-site {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.selected-ref-favicon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.selected-ref-icon-fallback {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
}

.selected-ref-info {
  flex: 1;
  min-width: 0;
}

.selected-ref-title {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-ref-url {
  font-size: 0.75rem;
  color: #718096;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dark mode for selected reference */
[data-bs-theme="dark"] .brainstorm-selected-reference {
  background: #1e293b;
  border-color: #334155;
}

[data-bs-theme="dark"] .selected-reference-type .type-label {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-bs-theme="dark"] .selected-reference-site {
  background: #0f172a;
  border-color: #334155;
}

[data-bs-theme="dark"] .selected-ref-title {
  color: #f1f5f9;
}

[data-bs-theme="dark"] .selected-ref-url {
  color: #94a3b8;
}

[data-bs-theme="dark"] .selected-ref-icon-fallback {
  background: #334155;
  color: #94a3b8;
}

.brainstorm-agents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.agent-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.875rem;
  color: #718096;
  transition: all 0.3s ease;
}

.agent-chip i {
  font-size: 1rem;
}

.agent-chip.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  animation: chip-pulse 1.5s ease-in-out infinite;
}

@keyframes chip-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Real-time Current Action Display */
.brainstorm-current-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 8px;
  margin: 1rem 0;
  border-left: 3px solid #667eea;
}

.brainstorm-current-action i {
  color: #667eea;
  font-size: 1rem;
  animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.current-action-text {
  color: #4a5568;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.current-action-text.action-updated {
  animation: flash-update 0.5s ease;
}

@keyframes flash-update {
  0% { opacity: 0.5; background-color: rgba(102, 126, 234, 0.2); }
  100% { opacity: 1; background-color: transparent; }
}

/* Details Section */
.brainstorm-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: rgba(247, 250, 252, 0.8);
  border-radius: 6px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  color: #718096;
  padding: 0.25rem 0.5rem;
  background: white;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.detail-item i {
  color: #667eea;
  font-size: 0.75rem;
}

/* Activity Log */
.brainstorm-activity-log {
  margin: 1rem 0;
  background: #1a202c;
  border-radius: 8px;
  overflow: hidden;
  max-height: 200px;
}

.activity-log-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #2d3748;
  color: #a0aec0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-log-header i {
  color: #48bb78;
}

.activity-log-entries {
  padding: 0.5rem;
  max-height: 150px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #4a5568 #1a202c;
}

.activity-log-entries::-webkit-scrollbar {
  width: 6px;
}

.activity-log-entries::-webkit-scrollbar-track {
  background: #1a202c;
}

.activity-log-entries::-webkit-scrollbar-thumb {
  background: #4a5568;
  border-radius: 3px;
}

.activity-entry {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 0.75rem;
  color: #cbd5e0;
  border-bottom: 1px solid #2d3748;
}

.activity-entry:last-child {
  border-bottom: none;
}

.activity-entry-new {
  animation: slide-in-entry 0.3s ease-out;
  background: rgba(72, 187, 120, 0.1);
}

@keyframes slide-in-entry {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.activity-icon {
  color: #667eea;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.activity-time {
  color: #718096;
  font-size: 0.65rem;
  flex-shrink: 0;
  min-width: 65px;
}

.activity-message {
  color: #e2e8f0;
  word-break: break-word;
  line-height: 1.4;
}

/* Dark theme support for new elements */
[data-theme="dark"] .brainstorm-current-action {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

[data-theme="dark"] .current-action-text {
  color: #e2e8f0;
}

[data-theme="dark"] .brainstorm-details {
  background: rgba(45, 55, 72, 0.8);
}

[data-theme="dark"] .detail-item {
  background: #1a202c;
  color: #a0aec0;
}

/* Responsive for new elements */
@media (max-width: 576px) {
  .brainstorm-current-action {
    padding: 0.5rem 0.75rem;
  }

  .current-action-text {
    font-size: 0.8rem;
  }

  .brainstorm-activity-log {
    max-height: 150px;
  }

  .activity-log-entries {
    max-height: 100px;
  }

  .activity-entry {
    font-size: 0.7rem;
  }

  .brainstorm-details {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Dark theme support for brainstorming */
[data-theme="dark"] .brief-brainstorming {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

[data-theme="dark"] .brainstorm-title {
  color: #e2e8f0;
}

[data-theme="dark"] .brainstorm-phase {
  color: #90cdf4;
}

[data-theme="dark"] .brainstorm-progress-bar {
  background: #4a5568;
}

[data-theme="dark"] .brainstorm-fact {
  background: rgba(144, 205, 244, 0.1);
  color: #cbd5e0;
}

[data-theme="dark"] .brainstorm-patience {
  color: #718096;
}

[data-theme="dark"] .agent-chip {
  background: #2d3748;
  border-color: #4a5568;
  color: #a0aec0;
}

[data-theme="dark"] .agent-chip.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Responsive brainstorming */
@media (max-width: 576px) {
  .brainstorm-visual {
    width: 150px;
    height: 150px;
  }

  .brainstorm-center {
    width: 45px;
    height: 45px;
  }

  .brainstorm-center i {
    font-size: 1.25rem;
  }

  .brainstorm-planet {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .brainstorm-title {
    font-size: 1.25rem;
    flex-direction: column;
  }

  .brainstorm-agents {
    gap: 0.5rem;
  }

  .agent-chip {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* ============================================
   END BRAINSTORMING STYLES
   ============================================ */

/* ============================================
   SITEMAP VISUALIZATION STYLES
   ============================================ */

.sitemap-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.sitemap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.sitemap-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
}

.sitemap-stats i {
  font-size: 1.1rem;
}

.sitemap-legend {
  display: flex;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
}

.sitemap-canvas {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  background: var(--bg-secondary, #f8f9fa);
  border-radius: 8px;
  border: 1px solid var(--border-color, #dee2e6);
}

/* Sitemap Node Styles */
.sitemap-node {
  position: relative;
}

.sitemap-node::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-color, #dee2e6);
}

.sitemap-node:last-child::before {
  height: 20px;
}

.sitemap-node-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  position: relative;
  background: white;
  margin-bottom: 2px;
  border: 1px solid transparent;
}

.sitemap-node-header:hover {
  background: var(--bg-hover, #e9ecef);
  border-color: var(--border-color, #dee2e6);
}

.sitemap-domain > .sitemap-node-header {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 1px solid rgba(102, 126, 234, 0.2);
  font-weight: 600;
}

.sitemap-page > .sitemap-node-header {
  background: rgba(40, 167, 69, 0.05);
}

.sitemap-page > .sitemap-node-header:hover {
  background: rgba(40, 167, 69, 0.1);
  border-color: rgba(40, 167, 69, 0.3);
}

.sitemap-chevron {
  font-size: 0.75rem;
  color: var(--text-muted, #6c757d);
  width: 16px;
  transition: transform 0.2s ease;
}

.sitemap-chevron-placeholder {
  width: 16px;
}

.sitemap-icon {
  font-size: 1rem;
}

.sitemap-node-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-primary, #212529);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sitemap-node-name.clickable {
  cursor: pointer;
  color: #28a745;
  font-weight: 500;
}

.sitemap-node-name.clickable:hover {
  text-decoration: underline;
}

.sitemap-badges {
  display: flex;
  gap: 0.25rem;
}

.sitemap-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.65rem;
}

.badge-screenshot {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
}

.badge-vision {
  background: rgba(111, 66, 193, 0.1);
  color: #6f42c1;
}

.sitemap-link {
  color: var(--text-muted, #6c757d);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.sitemap-node-header:hover .sitemap-link {
  opacity: 1;
}

.sitemap-link:hover {
  color: #007bff;
}

.sitemap-node-children {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px dashed var(--border-color, #dee2e6);
}

/* Sitemap mode - expand sidebar */
.sitemap-mode .reference-sidebar {
  flex: 1;
  max-width: none;
}

.sitemap-mode .reference-content-area {
  flex: 1;
}

/* View mode toggle button active state */
.btn-group .btn.active {
  background: var(--primary-color, #667eea);
  color: white;
  border-color: var(--primary-color, #667eea);
}

/* Dark theme support */
[data-theme="dark"] .sitemap-canvas {
  background: #1a202c;
  border-color: #4a5568;
}

[data-theme="dark"] .sitemap-node::before,
[data-theme="dark"] .sitemap-node-children {
  border-color: #4a5568;
}

[data-theme="dark"] .sitemap-node-header {
  background: #2d3748;
}

[data-theme="dark"] .sitemap-node-header:hover {
  background: #4a5568;
}

[data-theme="dark"] .sitemap-domain > .sitemap-node-header {
  background: rgba(102, 126, 234, 0.15);
}

[data-theme="dark"] .sitemap-page > .sitemap-node-header {
  background: rgba(72, 187, 120, 0.1);
}

[data-theme="dark"] .sitemap-node-name {
  color: #e2e8f0;
}

[data-theme="dark"] .sitemap-node-name.clickable {
  color: #48bb78;
}

/* Responsive sitemap */
@media (max-width: 768px) {
  .sitemap-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sitemap-legend {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .sitemap-node-header {
    padding: 0.375rem 0.5rem;
  }

  .sitemap-node-name {
    font-size: 0.8rem;
  }
}

/* ============================================
   END SITEMAP STYLES
   ============================================ */

.brief-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.brief-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.brief-header h2 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.brief-header p {
  margin: 0;
  opacity: 0.9;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Fix title area getting squeezed by flex layout */
.brief-header .d-flex > div:first-child {
  flex: 1;
  min-width: 0; /* Allow flex item to shrink below content size */
  padding-right: 1rem;
}

.brief-status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 1rem;
}

.brief-status-draft {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.brief-status-complete {
  background: rgba(72, 187, 120, 0.2);
  color: #48bb78;
}

.brief-status-validated {
  background: rgba(56, 161, 105, 0.2);
  color: #38a169;
}

.brief-actions {
  margin-top: 1rem;
}

.brief-actions .btn {
  margin-right: 0.5rem;
}

.brief-section {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #667eea;
}

.brief-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f7fafc;
}

.brief-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brief-section-icon {
  color: #667eea;
  font-size: 1.5rem;
}

.brief-section-content {
  color: #4a5568;
  line-height: 1.6;
}

.brief-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #a0aec0;
}

.brief-empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #cbd5e0;
}

.brief-empty-state h3 {
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.brief-empty-state p {
  color: #a0aec0;
  margin-bottom: 1.5rem;
}

/* Discovery Sources */
.brief-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.brief-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f7fafc;
  border-radius: 20px;
  font-size: 0.875rem;
  color: #4a5568;
}

.brief-source-chip i {
  color: #667eea;
}

/* Tech Stack */
.brief-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.brief-tech-badge {
  padding: 0.375rem 0.75rem;
  background: #edf2f7;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #2d3748;
  font-weight: 500;
}

/* Design System Colors */
.brief-color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.brief-color-group {
  flex: 1;
  min-width: 150px;
}

.brief-color-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #718096;
  margin-bottom: 0.5rem;
}

.brief-color-swatches {
  display: flex;
  gap: 0.5rem;
}

.brief-color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

.brief-color-swatch:hover {
  transform: scale(1.1);
}

/* Components List */
.brief-components-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.brief-component-card {
  padding: 1rem;
  background: #f7fafc;
  border-radius: 6px;
  border-left: 3px solid #667eea;
}

.brief-component-name {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.25rem;
}

.brief-component-type {
  font-size: 0.75rem;
  color: #718096;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.brief-component-desc {
  font-size: 0.875rem;
  color: #4a5568;
}

.brief-component-required {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: #fef5e7;
  color: #d69e2e;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Features List */
.brief-features-list {
  margin-top: 1rem;
}

.brief-feature-item {
  padding: 1rem;
  background: #f7fafc;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  border-left: 3px solid #48bb78;
}

.brief-feature-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.brief-feature-name {
  font-weight: 600;
  color: #2d3748;
  flex: 1;
}

.brief-feature-priority {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.brief-priority-must-have {
  background: #fef5e7;
  color: #d69e2e;
}

.brief-priority-nice-to-have {
  background: #e6fffa;
  color: #319795;
}

.brief-feature-desc {
  font-size: 0.875rem;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.brief-feature-story {
  font-size: 0.875rem;
  color: #718096;
  font-style: italic;
}

/* Metadata */
.brief-metadata {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.brief-metadata-item {
  padding: 1rem;
  background: #f7fafc;
  border-radius: 6px;
  text-align: center;
}

.brief-metadata-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #718096;
  margin-bottom: 0.5rem;
}

.brief-metadata-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
}

.brief-metadata-unit {
  font-size: 0.875rem;
  color: #718096;
  margin-left: 0.25rem;
}

/* Progress Ring */
.brief-progress-ring {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.5rem;
}

/* Loading State */
.brief-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  color: #718096;
}

.brief-loading .spinner-border {
  margin-bottom: 1rem;
}

/* Dark theme support */
[data-theme="dark"] .brief-section {
  background: #2d3748;
  border-left-color: #667eea;
}

[data-theme="dark"] .brief-section-title {
  color: #e2e8f0;
}

[data-theme="dark"] .brief-section-content {
  color: #cbd5e0;
}

[data-theme="dark"] .brief-empty-state h3 {
  color: #e2e8f0;
}

[data-theme="dark"] .brief-source-chip,
[data-theme="dark"] .brief-tech-badge,
[data-theme="dark"] .brief-component-card,
[data-theme="dark"] .brief-feature-item,
[data-theme="dark"] .brief-metadata-item {
  background: #1a202c;
  color: #cbd5e0;
}

[data-theme="dark"] .brief-component-name,
[data-theme="dark"] .brief-feature-name,
[data-theme="dark"] .brief-metadata-value {
  color: #e2e8f0;
}

/* Empty state instruction styles */
.brief-instructions {
  text-align: left;
  max-width: 500px;
  margin: 2rem auto;
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.brief-instructions h5 {
  color: #2d3748;
  font-weight: 600;
  margin-bottom: 1rem;
}

.brief-instructions ol {
  padding-left: 1.5rem;
  margin: 0;
}

.brief-instructions li {
  margin-bottom: 0.75rem;
  color: #4a5568;
  line-height: 1.6;
}

.brief-instructions code {
  background: #edf2f7;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #667eea;
}

[data-theme="dark"] .brief-instructions {
  background: #2d3748;
  border-left-color: #667eea;
}

[data-theme="dark"] .brief-instructions h5 {
  color: #e2e8f0;
}

[data-theme="dark"] .brief-instructions li {
  color: #cbd5e0;
}

[data-theme="dark"] .brief-instructions code {
  background: #1a202c;
  color: #90cdf4;
}

/* ============================================
   TABBED INTERFACE STYLES
   ============================================ */

.brief-tabs {
  margin-top: 1rem;
}

.brief-tabs .nav-tabs {
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 0;
}

.brief-tabs .nav-link {
  color: #718096;
  font-weight: 500;
  border: none;
  padding: 0.75rem 1.5rem;
  margin-right: 0.5rem;
  transition: all 0.2s;
}

.brief-tabs .nav-link:hover {
  color: #667eea;
  background: #f7fafc;
  border-radius: 6px 6px 0 0;
}

.brief-tabs .nav-link.active {
  color: #667eea;
  border-bottom: 3px solid #667eea;
  background: transparent;
}

.brief-tabs .nav-link .badge {
  background: #667eea;
  color: white;
  margin-left: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
}

.brief-tabs .tab-content {
  position: relative;
  height: 500px; /* Fixed height for tab content area */
}

/* Override main.css absolute positioning for brief tabs */
.brief-tabs .tab-pane {
  padding: 1rem;
  overflow-y: auto;
}

/* Assets tab - no padding and full height to let explorer fill space */
#assetsTab {
  padding: 0 !important;
  height: 100%;
  display: block;
}

/* Asset explorer container - explicit height for height chain */
#briefAssetsContainer {
  height: 100%;
  min-height: 450px;
}

/* Ensure all artifact tabs can scroll */
#screenshotsTab,
#referencesTab,
#timelineTab,
#overviewTab {
  overflow-y: auto;
}

/* ============================================
   REFERENCES GRID STYLES
   ============================================ */

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.reference-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s;
  cursor: pointer;
}

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

.reference-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.reference-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.reference-status.status-success {
  background: #c6f6d5;
  color: #276749;
}

.reference-status.status-error {
  background: #fed7d7;
  color: #c53030;
}

.reference-status.status-pending {
  background: #feebc8;
  color: #c05621;
}

.reference-actions {
  display: flex;
  gap: 0.5rem;
}

.reference-card-body {
  margin-bottom: 1rem;
}

.reference-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.reference-url {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.reference-url a {
  color: #667eea;
  text-decoration: none;
  font-size: 0.875rem;
}

.reference-url a:hover {
  text-decoration: underline;
}

.reference-description {
  font-size: 0.875rem;
  color: #718096;
  line-height: 1.6;
}

.reference-card-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.reference-content-text {
  white-space: pre-wrap;
  line-height: 1.6;
  color: #4a5568;
}

/* ============================================
   SCREENSHOT GALLERY STYLES
   ============================================ */

.screenshot-device-filter {
  display: flex;
  gap: 0.5rem;
}

.screenshot-device-filter .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.screenshot-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.screenshot-image-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f7fafc;
}

.screenshot-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.screenshot-card:hover .screenshot-overlay {
  opacity: 1;
}

.screenshot-card-body {
  padding: 1rem;
}

.screenshot-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.screenshot-annotations {
  padding: 0.5rem;
  background: #f7fafc;
  border-radius: 4px;
}

.screenshot-meta {
  font-size: 0.75rem;
}

.screenshot-annotations-list {
  text-align: left;
}

.screenshot-annotations-list .list-group-item {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
}

/* ============================================
   TIMELINE VIEWER STYLES
   ============================================ */

.discovery-timeline {
  position: relative;
  padding-left: 3rem;
  padding-top: 1rem;
}

.discovery-timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.timeline-event {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  gap: 1.5rem;
}

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.timeline-content {
  flex: 1;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.timeline-content:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.timeline-agent {
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 0.25rem 0;
}

.timeline-action {
  color: #718096;
  font-size: 0.875rem;
}

.timeline-time {
  color: #a0aec0;
  font-size: 0.75rem;
}

.timeline-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f7fafc;
}

.timeline-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #4a5568;
}

.timeline-detail i {
  color: #667eea;
}

.timeline-detail-message {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #f7fafc;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #4a5568;
  line-height: 1.6;
}

/* ============================================
   ASSET EXPLORER STYLES (matches Code section)
   ============================================ */

.brief-asset-explorer {
  display: flex;
  height: 100%;
  min-height: 450px;
  background: white;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
}

.asset-sidebar {
  width: 280px;
  min-width: 200px;
  border-right: 1px solid var(--border, #e2e8f0);
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary, #f7fafc);
}

.asset-sidebar-header {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: white;
  flex-shrink: 0;
}

.asset-sidebar-header h6 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary, #2d3748);
}

/* Asset tree - matches Code section's #fileTree */
.asset-tree {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  list-style: none;
  user-select: none;
}

.asset-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  min-width: 0;
  overflow: hidden; /* Let child handle overflow */
}

.asset-content-area .asset-display {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.asset-toolbar {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary, #f7fafc);
  flex-shrink: 0;
}

.asset-file-info {
  font-size: 0.875rem;
  color: var(--text-secondary, #718096);
}

.asset-actions {
  display: flex;
  gap: 0.5rem;
}

/* Note: Assets/References tabs now use Code section's .folder-item/.file-item classes from main.css */

/* Additional Brief-specific file tree styling */
.file-size {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted, #a0aec0);
}

/* Asset display placeholder (when no asset selected) */
.asset-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted, #a0aec0);
}

.asset-image-viewer {
  text-align: center;
}

.asset-image-viewer img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.asset-meta {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary, #718096);
}

.asset-meta a {
  word-break: break-all;
}

/* Asset URL display sections */
.asset-urls {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.asset-urls .form-control {
  font-family: monospace;
  font-size: 0.8rem;
}

.asset-urls label {
  font-size: 0.85rem;
  color: #495057;
}

.asset-generic-viewer {
  width: 100%;
}

.asset-image-viewer {
  width: 100%;
}

.asset-image-viewer img {
  max-height: 400px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.asset-video-viewer video {
  max-width: 100%;
  max-height: 500px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.asset-file-info {
  text-align: center;
  padding: 2rem;
}

.asset-file-icon {
  font-size: 4rem;
  color: #cbd5e0;
  margin-bottom: 1rem;
}

.asset-file-name {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.asset-file-size {
  color: #718096;
  font-size: 0.875rem;
}

/* ============================================
   DARK THEME SUPPORT FOR NEW COMPONENTS
   ============================================ */

[data-theme="dark"] .brief-tabs .nav-tabs {
  border-bottom-color: #4a5568;
}

[data-theme="dark"] .brief-tabs .nav-link {
  color: #a0aec0;
}

[data-theme="dark"] .brief-tabs .nav-link:hover {
  color: #90cdf4;
  background: #2d3748;
}

[data-theme="dark"] .brief-tabs .nav-link.active {
  color: #90cdf4;
  border-bottom-color: #90cdf4;
}

[data-theme="dark"] .reference-card,
[data-theme="dark"] .screenshot-card,
[data-theme="dark"] .timeline-content,
[data-theme="dark"] .brief-asset-explorer,
[data-theme="dark"] .asset-content-area {
  background: #2d3748;
  border-color: #4a5568;
}

[data-theme="dark"] .reference-title,
[data-theme="dark"] .timeline-agent,
[data-theme="dark"] .asset-file-name {
  color: #e2e8f0;
}

[data-theme="dark"] .reference-description,
[data-theme="dark"] .timeline-action,
[data-theme="dark"] .timeline-detail,
[data-theme="dark"] .asset-file-size {
  color: #cbd5e0;
}

[data-theme="dark"] .asset-sidebar {
  background: #1a202c;
}

[data-theme="dark"] .asset-sidebar-header,
[data-theme="dark"] .asset-toolbar {
  background: #2d3748;
  border-color: #4a5568;
}

[data-theme="dark"] .asset-search-box {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

[data-theme="dark"] .discovery-timeline::before {
  background: #4a5568;
}

[data-theme="dark"] .timeline-detail-message,
[data-theme="dark"] .screenshot-annotations {
  background: #1a202c;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .references-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .brief-asset-explorer {
    flex-direction: column;
    height: auto;
  }

  .asset-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .asset-tree {
    max-height: 300px;
  }

  .asset-display {
    min-height: 300px;
  }

  .brief-tabs .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .brief-tabs .nav-link i {
    display: none;
  }

  .timeline-marker {
    left: -2.25rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
  }

  .discovery-timeline {
    padding-left: 2.5rem;
  }
}

@media (max-width: 576px) {
  .brief-header {
    padding: 1.5rem;
  }

  .brief-header h2 {
    font-size: 1.25rem;
  }

  .brief-status-badge {
    display: block;
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .screenshot-image-wrapper {
    height: 200px;
  }
}

/* ============================================
   REFERENCE EXPLORER STYLES (Monaco Editor)
   ============================================ */

/* References tab - no padding and full height */
#referencesTab {
  padding: 0 !important;
  height: 100%;
  display: block;
  overflow: hidden;
}

/* Reference explorer container */
#briefReferencesContainer {
  height: 100%;
  min-height: 450px;
}

.brief-reference-explorer {
  display: flex;
  height: 100%;
  min-height: 450px;
  background: white;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
}

.reference-sidebar {
  width: 280px;
  min-width: 200px;
  border-right: 1px solid var(--border, #e2e8f0);
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary, #f7fafc);
}

.reference-sidebar-header {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  background: white;
  flex-shrink: 0;
}

.reference-sidebar-header h6 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary, #2d3748);
}

.reference-tree {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  list-style: none;
  user-select: none;
}

.reference-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  min-width: 0;
  overflow: hidden;
}

.reference-toolbar {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary, #f7fafc);
  flex-shrink: 0;
}

.reference-file-info {
  font-size: 0.875rem;
  color: var(--text-secondary, #718096);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reference-actions {
  display: flex;
  gap: 0.5rem;
}

.reference-editor-container {
  flex: 1;
  overflow: hidden;
  min-height: 300px;
}

.reference-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted, #a0aec0);
}

.reference-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.reference-url-panel {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border, #e2e8f0);
  background: var(--bg-secondary, #f7fafc);
  flex-shrink: 0;
}

.reference-url-panel .form-control {
  font-family: monospace;
  font-size: 0.75rem;
}

.reference-code-fallback {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.5;
  tab-size: 2;
}

/* Dark theme for reference explorer */
[data-theme="dark"] .brief-reference-explorer,
[data-theme="dark"] .reference-content-area {
  background: #2d3748;
  border-color: #4a5568;
}

[data-theme="dark"] .reference-sidebar {
  background: #1a202c;
}

[data-theme="dark"] .reference-sidebar-header,
[data-theme="dark"] .reference-toolbar,
[data-theme="dark"] .reference-url-panel {
  background: #2d3748;
  border-color: #4a5568;
}

/* Responsive reference explorer */
@media (max-width: 768px) {
  .brief-reference-explorer {
    flex-direction: column;
    height: auto;
  }

  .reference-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border, #e2e8f0);
  }

  .reference-tree {
    max-height: 250px;
  }

  .reference-editor-container {
    min-height: 350px;
  }

  .reference-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .reference-file-info {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .reference-url-panel .row {
    flex-direction: column;
  }

  .reference-url-panel .col-md-6 {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}
