/* MalcolmEdu Custom Styles - Pixel-Perfect School Management System Demo */

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

:root {
  --primary-blue: #2563eb;
  --primary-blue-dark: #1d4ed8;
  --primary-blue-light: #eff6ff;
  --primary-navy: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --bg-landing: #f8fafc;
  --card-bg: #ffffff;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Stepper styles */
.step-number {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background-color: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-arrow {
  color: #94a3b8;
  font-size: 18px;
  display: flex;
  align-items: center;
  padding: 0 4px;
}

/* Card Shadow */
.card-shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
}

.card-shadow-hover {
  transition: all 0.25s ease;
}
.card-shadow-hover:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

/* Spinner Animation */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-custom {
  animation: spin-slow 1.5s linear infinite;
}

/* Pulse Glow */
@keyframes soft-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

.pulse-launch {
  animation: soft-pulse 2s infinite ease-in-out;
}

/* Highlight border animation for live demo */
@keyframes highlightGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.highlight-active {
  animation: highlightGlow 1.2s ease-out 2;
}

/* Attendance Bar Chart */
.attendance-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.attendance-bar {
  width: 32px;
  background-color: #93c5fd;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
  cursor: pointer;
}

.attendance-bar:hover {
  background-color: #60a5fa;
}

/* Tooltip for bar chart */
.bar-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 100%;
  margin-bottom: 6px;
  background: #0f172a;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10;
  pointer-events: none;
}

.attendance-bar-col:hover .bar-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Calendar Day Active */
.cal-day-active {
  background-color: #2563eb;
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 600;
}

/* Sidebar Active Nav */
.sidebar-item-active {
  background-color: #eff6ff;
  color: #2563eb;
  font-weight: 600;
  border-left: 3px solid #2563eb;
}

.sidebar-item-inactive {
  color: #475569;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.sidebar-item-inactive:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

/* Quick Action Buttons */
.qa-btn-student {
  background-color: #dcfce7;
  color: #15803d;
  transition: all 0.2s ease;
}
.qa-btn-student:hover {
  background-color: #bbf7d0;
  transform: translateY(-1px);
}

.qa-btn-attendance {
  background-color: #dbeafe;
  color: #1d4ed8;
  transition: all 0.2s ease;
}
.qa-btn-attendance:hover {
  background-color: #bfdbfe;
  transform: translateY(-1px);
}

.qa-btn-fee {
  background-color: #ede9fe;
  color: #6d28d9;
  transition: all 0.2s ease;
}
.qa-btn-fee:hover {
  background-color: #ddd6fe;
  transform: translateY(-1px);
}

.qa-btn-notice {
  background-color: #ffedd5;
  color: #c2410c;
  transition: all 0.2s ease;
}
.qa-btn-notice:hover {
  background-color: #fed7aa;
  transform: translateY(-1px);
}

/* Modal styling */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

/* Toast alert notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
