/* Legal Case Management System - Custom Styles */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Timeline specific styles */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Smooth transitions */
* {
  transition: all 0.2s ease-in-out;
}

button:active {
  transform: scale(0.98);
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Timeline balloon pulse effect for recent events */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.timeline-balloon-recent {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Print styles for case reports */
@media print {
  header,
  nav,
  button {
    display: none !important;
  }
  
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
  }
  
  .shadow-md,
  .shadow-lg {
    box-shadow: none !important;
    border: 1px solid #e5e7eb;
  }
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

/* Evidence grid hover effect */
.evidence-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

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

/* Confidential marker animation */
@keyframes confidentialBlink {
  0%, 100% {
    border-color: rgba(239, 68, 68, 0.3);
  }
  50% {
    border-color: rgba(239, 68, 68, 0.8);
  }
}

.confidential-marker {
  animation: confidentialBlink 2s ease-in-out infinite;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .timeline-balloon {
    width: 40px !important;
    height: 40px !important;
  }
  
  .timeline-content {
    padding-left: 60px !important;
  }
}

/* Drag and drop zone styling */
.drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  transition: all 0.3s;
}

.drop-zone.drag-over {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.05);
}

/* Status badges */
.badge-active {
  background-color: #dcfce7;
  color: #166534;
}

.badge-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-closed {
  background-color: #f3f4f6;
  color: #374151;
}

/* Priority indicators */
.priority-high {
  border-left: 4px solid #ef4444;
}

.priority-medium {
  border-left: 4px solid #f59e0b;
}

.priority-low {
  border-left: 4px solid #3b82f6;
}

/* Access level indicators */
.access-public {
  background-color: #dcfce7;
  color: #166534;
}

.access-confidential {
  background-color: #fef3c7;
  color: #92400e;
}

.access-privileged {
  background-color: #fee2e2;
  color: #991b1b;
}

.access-work-product {
  background-color: #ddd6fe;
  color: #5b21b6;
}

/* AI Chat animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* AI Chat smooth scrollbar */
#aiChatMessages {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f3f4f6;
}

#aiChatMessages::-webkit-scrollbar {
  width: 6px;
}

#aiChatMessages::-webkit-scrollbar-track {
  background: #f3f4f6;
}

#aiChatMessages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

#aiChatMessages::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
