/* Custom CSS for SESA'UD AI Development & Tracking System */
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  --primary-blue: #1e40af;
  --primary-dark: #0f172a;
  --accent-cyan: #0284c7;
  --accent-amber: #d97706;
  --accent-emerald: #059669;
  --accent-purple: #7c3aed;
  --bg-gradient-start: #0f172a;
  --bg-gradient-end: #1e3a8a;
}

body {
  font-family: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

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

/* Glassmorphism effects */
.glass-header {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(15, 23, 42, 0.98));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glow-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.glow-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.08), 0 8px 10px -6px rgba(30, 58, 138, 0.04);
}

/* Framework Model Flow */
.model-step-node {
  position: relative;
  transition: all 0.2s ease-in-out;
}
.model-step-node:hover {
  transform: scale(1.05);
}

/* Chart Container constraints */
.chart-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
}

@media (max-width: 768px) {
  .chart-wrapper {
    height: 260px;
  }
}

/* Star rating custom styling */
.rating-group {
  display: inline-flex;
  gap: 0.25rem;
}

/* Printing styles for reports */
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .print-only {
    display: block !important;
  }
  .glass-card {
    border: 1px solid #ccc;
    box-shadow: none;
    backdrop-filter: none;
  }
  .page-break {
    page-break-before: always;
  }
}

/* Badge pulse animation */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.pulse-badge {
  animation: pulse-subtle 2s infinite ease-in-out;
}

/* Custom Tooltip */
[data-tooltip] {
  position: relative;
}
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0f172a;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 50;
  pointer-events: none;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
