@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Prompt:wght@400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --theme-blue: #0284c7;
  --theme-blue-dark: #0369a1;
  --theme-pink: #ec4899;
  --theme-pink-dark: #db2777;
}

body {
  font-family: var(--font-body);
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Header Gradient: Blue to Pink */
.bg-crpao-header {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #db2777 100%);
}

.border-crpao-pink {
  border-color: #ec4899;
}

/* Candidate Card Styles */
.candidate-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
}

.candidate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(2, 132, 199, 0.25);
}

.candidate-card.selected {
  border-color: #0284c7 !important;
  background-color: #f0f9ff !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.35), 0 10px 15px -3px rgba(2, 132, 199, 0.15) !important;
}

.candidate-card.selected-pink {
  border-color: #ec4899 !important;
  background-color: #fdf2f8 !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.35), 0 10px 15px -3px rgba(236, 72, 153, 0.15) !important;
}

.candidate-card.selected .check-indicator,
.candidate-card.selected-pink .check-indicator {
  display: flex !important;
}

/* Candidate Number Badges */
.candidate-badge-blue {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.3);
}

.candidate-badge-pink {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  box-shadow: 0 4px 6px -1px rgba(236, 72, 153, 0.3);
}

/* Abstain Card */
.abstain-card {
  transition: all 0.2s ease;
  cursor: pointer;
}
.abstain-card:hover {
  background-color: #fff1f2;
  border-color: #f43f5e;
}
.abstain-card.selected {
  border-color: #e11d48 !important;
  background-color: #fff1f2 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.3) !important;
}

/* Animations */
@keyframes check-pop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.animate-pop {
  animation: check-pop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* 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;
}

/* Print Stylesheet */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .shadow-sm, .shadow-md, .shadow-lg, .shadow-xl {
    box-shadow: none !important;
  }
  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  th, td {
    border: 1px solid #333333 !important;
    padding: 6px 10px !important;
  }
}
