/* Medical Student Management System - Custom Styles */

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

h1 { 
  font-family: Arial, Helvetica, sans-serif; 
}

/* Custom scrollbar styles */
.overflow-x-auto::-webkit-scrollbar {
  height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Modal animation */
#student-modal {
  transition: opacity 0.3s ease-out;
}

#student-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

#student-modal:not(.hidden) {
  opacity: 1;
}

/* Card hover effects */
.bg-white:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease-in-out;
}

/* Table row hover */
tbody tr:hover {
  background-color: #f8fafc;
}

/* Custom file input styling */
input[type="file"] {
  padding: 8px 12px;
  border: 2px dashed #d1d5db;
  border-radius: 6px;
  background-color: #f9fafb;
  transition: border-color 0.2s ease-in-out;
}

input[type="file"]:hover {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

/* 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;
  line-height: 1.25rem;
}

.status-pass {
  background-color: #dcfce7;
  color: #166534;
}

.status-fail {
  background-color: #fef2f2;
  color: #dc2626;
}

.status-pending {
  background-color: #fef3c7;
  color: #d97706;
}

/* Loading spinner */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

/* Responsive table */
@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.875rem;
  }
  
  .table-responsive th,
  .table-responsive td {
    padding: 0.5rem 0.25rem;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12px;
  }
  
  .bg-white {
    box-shadow: none !important;
  }
}