/* Case Detail Page - Palantir-inspired Styling */

.case-hero {
  background: linear-gradient(135deg, #1a1f2e 0%, #0f1216 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-hero__bar {
  min-height: 100px;
}

.case-hero h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.case-progress {
  background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
  transition: width 0.3s ease;
}

/* Timeline Stepper */
.case-steps {
  padding: 0;
  margin: 0;
  position: relative;
}

.case-step {
  position: relative;
  padding-left: 0;
}

.case-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 24px;
  width: 2px;
  height: calc(100% - 8px);
  background: #e5e7eb;
}

.case-step.done:not(:last-child)::before {
  background: #22c55e;
}

.case-step__dot {
  flex-shrink: 0;
}

.case-step__content {
  min-height: 48px;
}

/* Evidence Cards */
.evidence-card {
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb;
}

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

.evidence-thumb {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 8px;
}

/* Chat Panel */
.case-chat {
  background: #f9fafb;
}

.case-chat__msg {
  background: #fff;
}

.case-chat__msg.me {
  background: #eff6ff;
}

.case-chat__bubble {
  padding: 0;
}

/* Audit Log */
.audit-log .list-group-item {
  border-left: none;
  border-right: none;
}

.audit-log .list-group-item:first-child {
  border-top: none;
}

.audit-log .list-group-item:last-child {
  border-bottom: none;
}

/* AI Summary Loading Animation */
@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.placeholder-glow .placeholder {
  animation: pulse-subtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Card Headers - Palantir Style */
.card-header.bg-dark {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header.bg-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.card-header.bg-info {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
}

.card-header.bg-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .case-hero h2 {
    font-size: 1.25rem;
  }
  
  .case-hero__bar {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .case-hero__bar > div:last-child {
    width: 100%;
    justify-content: flex-start !important;
    margin-top: 1rem;
  }
}

/* Status Badges */
.badge.rounded-pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
}

/* Smooth Transitions */
.card {
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn {
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}
