/* FeeSarthi Design System & Custom UI Polish */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --color-primary: #3730A3;
  --color-primary-dark: #312E81;
  --color-primary-light: #EEF2FF;
  --color-success: #15803D;
  --color-success-light: #F0FDF4;
  --color-warning: #D97706;
  --color-warning-light: #FFFBEB;
  --color-danger: #DC2626;
  --color-danger-light: #FEF2F2;
  --color-bg: #F8FAFC;
  --color-text: #172033;
  --color-muted: #64748B;
  --color-border: #E2E8F0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Glassmorphism & Card Polish */
.card-premium {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  border-radius: 0.75rem;
  transition: all 0.2s ease-in-out;
}

.card-premium:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Loading Skeleton Animation */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.animate-skeleton {
  animation: pulse-subtle 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background-color: #E2E8F0;
  border-radius: 0.375rem;
}

/* Active Nav Indicator */
.nav-item-active {
  background-color: #EEF2FF;
  color: #3730A3;
  font-weight: 600;
  border-right: 3px solid #3730A3;
}

/* Mobile Bottom Navigation */
.mobile-nav-active {
  color: #3730A3;
  font-weight: 600;
}

/* Table Enhancements */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Toast Notifications Container */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 24rem;
  width: calc(100% - 2.5rem);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(-10px);
  opacity: 0;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Operational Attendance Switch */
.attendance-toggle-present {
  background-color: #15803D !important;
  color: white !important;
  border-color: #15803D !important;
}

.attendance-toggle-absent {
  background-color: #DC2626 !important;
  color: white !important;
  border-color: #DC2626 !important;
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  line-height: 1;
}
.badge-success { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.badge-warning { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.badge-danger { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.badge-info { background: #EEF2FF; color: #3730A3; border: 1px solid #C7D2FE; }
