/* =====================================================================
   Modern refresh + icon fix — ETERNITY theme overlay (keeps your color scheme).
   Loaded after the theme CSS in app/views/Eternity/header.twig.
   - Fixes missing icons: the theme uses Font Awesome 5/6 classes
     (fas/far/fab/fal/fad) but loaded NO icon font. FA6 + v4-shims are now
     added in the header; fal/fad are Pro-only so we render them as Solid.
   - Modernizes typography, corners and shadows WITHOUT changing your colors.
   TO REVERT: remove the FA6 + modern-refresh.css <link>s in Eternity/header.twig.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --m-radius:14px;
  --m-radius-sm:10px;
  --m-shadow:0 1px 2px rgba(16,24,40,.05), 0 8px 24px rgba(16,24,40,.06);
}

/* ---- Icon fixes ----
   bootstrap.css bundles Font Awesome PRO 5.15.1, whose webfonts point at a DEAD
   CDN (cdn.mypanel.link). Its plain .fa/.fas/.fab selectors out-specify FA6's
   :where()-based rules, so icons were forced onto the missing Pro font => NO GLYPH.
   Force EVERY FA class onto our self-hosted FA6 Free families with !important so
   they always resolve to a loaded font. Free codepoints match between FA5 and FA6. */
.fa, .fas, .fa-solid, .far, .fa-regular, .fal, .fad,
.fa::before, .fas::before, .fa-solid::before, .far::before, .fal::before, .fad::before{
  font-family:"Font Awesome 6 Free" !important; font-weight:900 !important;
}
.fab, .fa-brands, .fab::before, .fa-brands::before{
  font-family:"Font Awesome 6 Brands" !important; font-weight:400 !important;
}
.fad::after{ content:"" !important; }             /* kill duotone secondary layer */
i[class*="fa-"], span[class*="fa-"]{ line-height:1; }

/* ---- Typography ---- */
body, p, span, a, label, button, input, select, textarea, h1,h2,h3,h4,h5,h6,
.navbar, .btn, .card, .panel{
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif !important;
}
body{ -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
h1,h2,h3,h4,h5,h6{ letter-spacing:-.01em; }

/* ---- Rounded, softer surfaces (keeps theme colors) ---- */
.btn, button.btn{ border-radius:var(--m-radius-sm) !important; font-weight:600 !important;
  transition:transform .12s ease, box-shadow .2s ease, filter .2s ease !important; }
.btn:hover{ transform:translateY(-1px); filter:brightness(.98); }

.form-control, input[type=text], input[type=email], input[type=password],
input[type=number], input[type=search], textarea, select{
  border-radius:var(--m-radius-sm) !important;
  transition:border-color .15s ease, box-shadow .15s ease !important;
}
.form-control:focus, input:focus, textarea:focus, select:focus{ outline:0 !important; }

.card, .panel, .component_card, .component-card, .balance-block,
.dashboard-card, .order-card, .service-card, .box, .widget{
  border-radius:var(--m-radius) !important;
  box-shadow:var(--m-shadow) !important;
}

/* ---- Remap legacy "Font Awesome 5 Pro/Brands/Duotone" families (used by raw
   font-family rules like the currency/language dropdown caret and theme
   checkmarks, whose webfonts point at a dead CDN) onto our self-hosted FA6
   Free fonts. Pro weights (light 300) fall back to Solid so they still show. */
@font-face{font-family:"Font Awesome 5 Pro";font-style:normal;font-weight:900;font-display:block;src:url("/public/Eternity/fa/webfonts/fa-solid-900.woff2") format("woff2"),url("/public/Eternity/fa/webfonts/fa-solid-900.ttf") format("truetype");}
@font-face{font-family:"Font Awesome 5 Pro";font-style:normal;font-weight:400;font-display:block;src:url("/public/Eternity/fa/webfonts/fa-regular-400.woff2") format("woff2"),url("/public/Eternity/fa/webfonts/fa-regular-400.ttf") format("truetype");}
@font-face{font-family:"Font Awesome 5 Pro";font-style:normal;font-weight:300;font-display:block;src:url("/public/Eternity/fa/webfonts/fa-solid-900.woff2") format("woff2");}
@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;font-display:block;src:url("/public/Eternity/fa/webfonts/fa-solid-900.woff2") format("woff2");}
@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;font-display:block;src:url("/public/Eternity/fa/webfonts/fa-regular-400.woff2") format("woff2");}
@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:400;font-display:block;src:url("/public/Eternity/fa/webfonts/fa-brands-400.woff2") format("woff2"),url("/public/Eternity/fa/webfonts/fa-brands-400.ttf") format("truetype");}
@font-face{font-family:"Font Awesome 5 Duotone";font-style:normal;font-weight:900;font-display:block;src:url("/public/Eternity/fa/webfonts/fa-solid-900.woff2") format("woff2");}

/* Tables */
table.table th{ font-weight:600 !important; }
