/* LexiCore™ Custom Styles */
/* Legal-appropriate, professional styling */

:root {
  --legal-blue: #1e3a8a;
  --legal-gold: #d97706;
  --legal-gray: #374151;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--legal-gold);
}

/* Legal-specific UI elements */
.privilege-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #fee2e2;
  color: #991b1b;
}

.confidential-banner {
  background: repeating-linear-gradient(
    45deg,
    #fef3c7,
    #fef3c7 10px,
    #fde68a 10px,
    #fde68a 20px
  );
  padding: 4px;
  text-align: center;
  font-weight: bold;
  color: #78350f;
}

/* Document viewer styles */
.document-viewer {
  border: 2px solid var(--legal-gray);
  border-radius: 8px;
  overflow: hidden;
}

/* Review status indicators */
.status-pending {
  color: #f59e0b;
}

.status-approved {
  color: #10b981;
}

.status-rejected {
  color: #ef4444;
}

/* Attorney signature block */
.attorney-signature {
  border: 1px solid var(--legal-blue);
  background: #f0f9ff;
  padding: 16px;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
}

/* Audit trail styling */
.audit-entry {
  position: relative;
  padding-left: 32px;
  padding-bottom: 24px;
}

.audit-entry::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--legal-blue);
}

.audit-entry::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--legal-gold);
  border: 2px solid white;
}

/* Print-friendly styles */
@media print {
  .no-print {
    display: none !important;
  }

  .privilege-badge {
    border: 2px solid #991b1b;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}

/* Accessibility improvements */
.focus-visible:focus {
  outline: 3px solid var(--legal-gold);
  outline-offset: 2px;
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f4f6;
  border-top: 3px solid var(--legal-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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