/* Custom styles for Law Firm Management System */

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #374151;
  background-color: #f9fafb;
}

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

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

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

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

/* Form enhancements */
.form-input {
  transition: all 0.2s ease-in-out;
}

.form-input:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Button enhancements */
.btn {
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

/* Card hover effects */
.card-hover {
  transition: all 0.2s ease-in-out;
}

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

/* Navigation active states */
.nav-item-active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-badge.intake { @apply bg-blue-100 text-blue-800; }
.status-badge.evaluation { @apply bg-yellow-100 text-yellow-800; }
.status-badge.investigating { @apply bg-orange-100 text-orange-800; }
.status-badge.treating { @apply bg-purple-100 text-purple-800; }
.status-badge.negotiating { @apply bg-indigo-100 text-indigo-800; }
.status-badge.litigation { @apply bg-red-100 text-red-800; }
.status-badge.settled { @apply bg-green-100 text-green-800; }
.status-badge.closed { @apply bg-gray-100 text-gray-800; }

/* Priority indicators */
.priority-low { border-left: 4px solid #10b981; }
.priority-medium { border-left: 4px solid #f59e0b; }
.priority-high { border-left: 4px solid #ef4444; }
.priority-urgent { border-left: 4px solid #dc2626; animation: pulse 2s infinite; }

/* Loading states */
.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Custom animations */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

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

.slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* Table enhancements */
.table-row {
  transition: background-color 0.2s ease-in-out;
}

.table-row:hover {
  background-color: #f8fafc;
}

/* Notification styles */
.notification {
  animation: slideInFromTop 0.3s ease-out;
}

@keyframes slideInFromTop {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Modal backdrop */
.modal-backdrop {
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.5);
}

/* File upload area */
.file-upload-area {
  border: 2px dashed #cbd5e1;
  transition: all 0.2s ease-in-out;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

/* Case type colors */
.case-type-auto-accident { @apply bg-red-50 text-red-700 border-red-200; }
.case-type-slip-fall { @apply bg-orange-50 text-orange-700 border-orange-200; }
.case-type-workplace-injury { @apply bg-yellow-50 text-yellow-700 border-yellow-200; }
.case-type-medical-malpractice { @apply bg-green-50 text-green-700 border-green-200; }
.case-type-product-liability { @apply bg-blue-50 text-blue-700 border-blue-200; }
.case-type-wrongful-death { @apply bg-purple-50 text-purple-700 border-purple-200; }
.case-type-other { @apply bg-gray-50 text-gray-700 border-gray-200; }

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
  
  body {
    color: black;
    background: white;
  }
  
  .page-break {
    page-break-before: always;
  }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
  .dark-mode-auto {
    background-color: #1f2937;
    color: #f9fafb;
  }
}

/* Focus indicators for accessibility */
.focus-visible:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Custom utilities */
.text-balance {
  text-wrap: balance;
}

.content-auto {
  content-visibility: auto;
}

.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}