/* Additional CSS for enhanced styling */

/* Import Noto Sans for Unicode support (rupee symbol) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;700&display=swap');

/* Ensure Arial is the primary font */
body, p, div, span {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

/* Special handling for rupee symbol to ensure proper rendering */
body {
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
}

/* PDF Download Button Styling */
.quarto-download-pdf {
  display: inline-flex !important;
  align-items: center;
  background-color: #dc3545 !important;
  color: white !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
  margin-left: 10px !important;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2) !important;
}

.quarto-download-pdf:hover {
  background-color: #c82333 !important;
  color: white !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3) !important;
}

.quarto-download-pdf::before {
  content: "📄" !important;
  margin-right: 6px !important;
  font-size: 16px !important;
}

/* Alternative with SVG icon */
.quarto-download-pdf.svg-icon::before {
  content: "" !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8.5 6.5a.5.5 0 0 0-1 0v3.793L6.354 9.146a.5.5 0 1 0-.708.708l2 2a.5.5 0 0 0 .708 0l2-2a.5.5 0 0 0-.708-.708L8.5 10.293V6.5z'/%3E%3Cpath d='M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2zM9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5v2z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  width: 16px !important;
  height: 16px !important;
  margin-right: 6px !important;
  display: inline-block !important;
}

/* Navbar download button positioning */
.navbar .quarto-download-pdf {
  margin-left: auto !important;
  margin-right: 15px !important;
}

/* Custom PDF download button in navbar */
.pdf-download-btn {
  background-color: #dc3545 !important;
  color: white !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 10px !important;
}

.pdf-download-btn:hover {
  background-color: #c82333 !important;
  color: white !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
}

/* Floating PDF download button */
.floating-pdf-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #dc3545;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.floating-pdf-btn:hover {
  background-color: #c82333;
  color: white;
  text-decoration: none;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.floating-pdf-btn svg {
  width: 24px;
  height: 24px;
}

/* Hide floating button on mobile to avoid clutter */
@media (max-width: 768px) {
  .floating-pdf-btn {
    display: none;
  }
}

/* Enhanced content layout */
.content-wrapper {
  max-width: 100%;
  margin: 0 auto;
}

/* Improved spacing for lists */
ul, ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

li {
  margin: 0.3em 0;
}

/* Better handling for long tables */
.table-responsive {
  overflow-x: auto;
  margin: 1em 0;
}

/* Improved figure captions */
figure {
  margin: 1.5em 0;
  text-align: center;
}

figcaption {
  font-style: italic;
  color: #6c757d;
  font-size: 0.9em;
  margin-top: 0.5em;
}

/* Enhanced footnotes */
.footnotes {
  margin-top: 2em;
  padding-top: 1em;
  border-top: 1px solid #e1e5e9;
  font-size: 0.9em;
}

/* Improved cross-references */
a.quarto-xref {
  color: #0066cc;
  text-decoration: none;
}

a.quarto-xref:hover {
  text-decoration: underline;
}

/* Section number styling */
.header-section-number {
  color: #0066cc;
  font-weight: 600;
}

/* Callout blocks */
.callout {
  margin: 1.5em 0;
  padding: 1em;
  border-radius: 0.375rem;
  border-left: 4px solid;
}

.callout-note {
  background-color: rgba(23, 162, 184, 0.05);
  border-left-color: #17a2b8;
}

.callout-warning {
  background-color: rgba(255, 193, 7, 0.05);
  border-left-color: #ffc107;
}

.callout-important {
  background-color: rgba(220, 53, 69, 0.05);
  border-left-color: #dc3545;
}

/* Page breaks for better printing */
@media print {
  .page-break {
    page-break-before: always;
  }

  .no-page-break {
    page-break-inside: avoid;
  }
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Better mobile experience */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.3em;
  }

  h3 {
    font-size: 1.1em;
  }

  table {
    font-size: 0.8em;
  }
}
/* Additions from 2025-26 circulars, highlighted until reviewed */
.review {
  background-color: #fff59d;
}
div.review, section.review {
  padding: 0.6em 0.9em;
  margin: 1em 0;
  border-left: 4px solid #f9a825;
}
