/* Root Custom Enhancements */
@layer base {
  body {
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility;
    font-family: 'Readex Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
}

/* Tab Switching Styles in Royal/Azure Blue Gradients */
.nav-tab.active-tab {
  background: linear-gradient(135deg, #1E40AF 0%, #0284C7 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px -2px rgba(30, 64, 175, 0.35);
}

.mobile-nav-btn.active-mobile {
  color: #1D4ED8;
  font-weight: 700;
}

.mobile-nav-btn.active-mobile span:first-child {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

/* Task Filter active */
.task-filter-btn.active-filter {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 6px -1px rgba(37, 99, 235, 0.3);
}

/* Recycle Chips in Blue Theme */
.recycle-chip {
  border-color: #E2E8F0;
  background-color: #F8FAFC;
  color: #334155;
}

.recycle-chip.active-chip {
  border-color: #0284C7;
  background-color: #F0F9FF;
  color: #0369A1;
  font-weight: 700;
  box-shadow: 0 2px 6px -1px rgba(2, 132, 199, 0.2);
}

/* Animations */
@keyframes scaleIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scaleIn 0.18s ease-out forwards;
}

/* Print Portfolio Styling */
@media print {
  header, #desktop-tabs, #mobile-tabs, #btn-edit-student-info, .tab-view:not(#view-portfolio), .modal-overlay, #toast {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
    padding: 0 !important;
    color: #000000 !important;
  }
  main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #view-portfolio {
    display: block !important;
  }
  #printable-portfolio {
    border: none !important;
    box-shadow: none !important;
  }
}