html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ============================================
   CURRENCY SYMBOL FIXES - Cross-Browser Support
   ============================================ */

/* Universal fallback for Bootstrap Icon rupee symbol */
.bi-currency-rupee::before {
    content: "?" !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 600 !important;
    font-style: normal !important;
}

/* Currency prefix class for manual use */
.currency-inr::before {
    content: "?";
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    margin-right: 2px;
    font-style: normal;
}

/* Alternative text-based currency class */
.currency-text::before {
    content: "Rs. ";
    font-weight: 600;
    font-style: normal;
}

/* For print media - use text instead of symbol for better compatibility */
@media print {
    .bi-currency-rupee::before,
    .currency-inr::before {
        content: "Rs. " !important;
        font-family: inherit !important;
    }
    
    /* Hide icons in print */
    .bi-currency-rupee {
        font-size: 0;
    }
    
    .bi-currency-rupee::before {
        font-size: 1rem;
    }
}

/* Currency display formatting - tabular nums for alignment */
.amount-display {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

/* Input group currency symbols */
.input-group-text .bi-currency-rupee::before,
.input-group-text .currency-inr::before {
    content: "?";
    font-family: inherit;
    font-size: 1.1em;
    font-weight: 600;
}

/* Ensure currency in input groups is visible */
.input-group-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Display currency (large amounts) */
.display-1 .bi-currency-rupee::before,
.display-2 .bi-currency-rupee::before,
.display-3 .bi-currency-rupee::before,
.display-4 .bi-currency-rupee::before,
.display-5 .bi-currency-rupee::before,
.display-6 .bi-currency-rupee::before {
    content: "?";
    margin-right: 0.1em;
}

/* Table currency symbols */
table .bi-currency-rupee::before {
    content: "?";
    margin-right: 2px;
}

/* Ensure UTF-8 encoding support */
@charset "UTF-8";