/* Custom Styles for mpsctest.in - Mobile-First & Widescreen Desktop MPSC Exam Portal */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

:root {
  --brand-primary: #ea580c; /* Saffron / Orange-600 */
  --brand-dark: #0f172a;    /* Slate-900 */
  --brand-blue: #1d4ed8;    /* Blue-700 */
}

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
}

.marathi-text {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
  line-height: 1.75;
}

/* Hide scrollbar for Chrome, Safari and Opera on horizontal mobile carousels */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

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

/* Exam Palette Status Buttons (MPSC / TCS iON Standard) */
.palette-btn {
  width: 42px;
  height: 42px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

@media (min-width: 1024px) {
  .palette-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
}

.palette-btn:hover {
  transform: translateY(-1px);
}

.palette-not-visited {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.palette-not-answered {
  background-color: #ef4444;
  color: #ffffff;
  border: 1px solid #dc2626;
}

.palette-answered {
  background-color: #16a34a;
  color: #ffffff;
  border: 1px solid #15803d;
}

.palette-review {
  background-color: #7c3aed;
  color: #ffffff;
  border: 1px solid #6d28d9;
}

.palette-answered-review {
  background-color: #7c3aed;
  color: #ffffff;
  border: 2px solid #22c55e;
  position: relative;
}

.palette-current {
  outline: 3px solid #f97316;
  outline-offset: 2px;
}

/* Option Card Hover & Selection */
.option-card {
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  min-height: 56px;
}
.option-card:hover {
  border-color: #93c5fd;
  background-color: #f8fafc;
}
.option-card:active {
  transform: scale(0.995);
}
.option-card.selected {
  border-color: #2563eb;
  background-color: #eff6ff;
  box-shadow: 0 0 0 1px #2563eb;
}

/* Category Pill Active State */
.category-tab.active {
  background-color: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Safe Area Padding for Mobile Bottom Bar */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 0.5rem);
}

/* Clean Print / Save PDF Styling for Scorecard & Solutions */
@media print {
  header, nav, footer, .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    padding: 0 !important;
  }
}
