/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import "tailwindcss";

/* Smooth scrolling for better mobile experience */
html {
  scroll-behavior: smooth;
}

/* Fade in animation for page loads */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide up animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale in animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Pulse animation for FAB */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }
}

/* Apply animations with delays for staggered effect */
main > *:nth-child(1) {
  animation: fadeIn 0.4s ease-out;
}

main > *:nth-child(2) {
  animation: fadeIn 0.5s ease-out;
}

main > *:nth-child(3) {
  animation: fadeIn 0.6s ease-out;
}

/* Smooth transitions for all interactive elements */
a, button {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced focus states for accessibility */
input:focus, textarea:focus, select:focus {
  outline: none;
}

/* Custom smooth date input styling */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}

/* Backdrop blur support */
@supports (backdrop-filter: blur(10px)) {
  .backdrop-blur-lg {
    backdrop-filter: blur(10px);
  }
}

/* Pulse animation class for FAB */
.animate-pulse-shadow {
  animation: pulse 2s infinite;
}

/* Hover effects */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:scale-110:hover {
  transform: scale(1.1);
}

/* Year progress bar animation */
@keyframes progressBar {
  from {
    width: 0%;
  }
}

.duration-1000 {
  animation-duration: 1s;
}

/* Smooth bg-clip-text for gradient text */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Month card hover effect */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Hide scrollbar for activity timeline */
.scrollbar-hide {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

/* Activity grid squares */
.activity-square {
  width: 6px;
  height: 6px;
  display: block;
}

/* Smooth scrolling for activity timeline */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Activity square hover effect */
.activity-square.group:hover {
  transform: scale(1.2);
  z-index: 10;
}

/* Scholar year grid utilities */
.scholar-month-col {
  min-width: 60px;
  flex: 1;
}

.scholar-day-cell {
  min-height: 40px;
}

/* Smooth scrolling for scholar year table */
.overflow-x-auto::-webkit-scrollbar {
  height: 8px;
}

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

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

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