/* Red Bill - Medical Bill Analysis Application */

/* 
 * Custom additional styles to complement Tailwind CSS
 * Most styling is now handled by Tailwind utility classes
 */

/* File Upload Styling */
.file-upload-wrapper {

/* Set input text font color to black with specificity */
input[type="email"],
input[type="text"],
input[type="password"] {
  color: #000000 !important;
}
  margin-bottom: 1.25rem;
}

.file-upload-input {
  background-color: white;
  padding: 2rem 1.5rem;
  border: 2px dashed #e0e0e0;
  border-radius: 0.375rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-input:hover {
  border-color: #ef5350;
}

.file-upload-input.highlight {
  border-color: #d32f2f;
  background-color: #fef2f2;
}

/* Analysis Results */
.accuracy-meter {
  height: 0.5rem;
  margin: 0.625rem 0;
  border-radius: 0.25rem;
  background-color: #e0e0e0;
  overflow: hidden;
}

.accuracy-value {
  height: 100%;
  background-color: #2e7d32;
}

/* For accuracy scores below thresholds */
.accuracy-value.low {
  background-color: #d32f2f;
}

.accuracy-value.medium {
  background-color: #f57c00;
}

/* Animation for Skeleton Loading */
@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

.skeleton-pulse {
  animation: pulse 1.5s infinite;
  background-color: #f3f4f6;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 0.375rem;
  height: 0.375rem;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #d32f2f;
  border-radius: 0.25rem;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #b71c1c;
}

/* Loading Spinner Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Toast Animation (Slide in and out) */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-enter {
  animation: slideIn 0.3s ease-out forwards;
}

.toast-exit {
  animation: slideOut 0.3s ease-out forwards;
}

/* Scale Animation for Buttons */
@keyframes scaleUp {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.scale-on-hover:hover {
  animation: scaleUp 0.3s ease-out;
}

/* Focus Style Extensions */
.focus-within-ring:focus-within {
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.3);
  outline: none;
}

/* Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Print Styling */
@media print {
  body {
    background-color: white !important;
  }
  
  .no-print {
    display: none !important;
  }
  
  .print-full-width {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  a {
    text-decoration: none !important;
    color: #000 !important;
  }
}
