/* esn-refresh.css — ESN panel refresh (Nov 11 2026, task 248c5d49).
   Look-and-feel layer ONLY: no element is hidden or removed, no add-on is touched.
   Loaded after esn-mobile.css. Kill switch without a deploy: delete the <link> block marked ESN-REFRESH in
   resources/views/templates/wrapper.blade.php (or run the rollback script). */

:root{
  --esn-bg:#0a1020; --esn-surface:rgba(18,26,48,.92); --esn-surface-2:rgba(24,34,62,.92);
  --esn-line:rgba(148,163,214,.14); --esn-line-strong:rgba(124,108,240,.45);
  --esn-text:#e6ebf7; --esn-muted:#9aa7c2; --esn-accent:#6C5CE7; --esn-accent-2:#8E7CFF; --esn-cyan:#5aa7ff;
  --esn-r:14px; --esn-r-sm:10px; --esn-gap:16px;
  --esn-shadow:0 1px 0 rgba(255,255,255,.03) inset,0 8px 24px rgba(0,0,0,.22);
  --esn-font:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
::selection{background:rgba(108,92,231,.45);color:#fff}

/* ---------- 1. One card style for every ESN add-on card ---------- */
#esn-ref-card,.esnpl-card,.esnb-card,.esngp-card,#esn-guard-card,#esnin-banner,#esn-link-nudge,#esnct,
.esnpf-card,.esnmc-card,.esnbt-card{
  border-radius:var(--esn-r)!important;border:1px solid var(--esn-line)!important;
  box-shadow:var(--esn-shadow);font-family:var(--esn-font)!important;box-sizing:border-box
}
#esn-ref-card,.esnpl-card,.esnb-card,.esngp-card,#esnct,.esnpf-card,.esnmc-card,.esnbt-card{background:var(--esn-surface)!important}
#esn-ref-card,.esnb-card,.esngp-card:not(#esnmc-chip),#esn-guard-card,#esnin-banner{padding:16px 18px!important}
#esn-ref-card h3,.esnpl-card h3,.esnb-card h3,.esngp-card h3,.esnpf-card h3,.esnmc-card h3{
  font:700 15px/1.35 var(--esn-font)!important;letter-spacing:-.01em;color:#fff!important;margin:0 0 8px!important
}
#esn-guard-card{border-color:var(--esn-line-strong)!important}
#esnin-banner{border-color:rgba(90,167,255,.3)!important}
/* buttons inside add-on cards: same height, radius and focus ring */
.esngp-btn,.esnb-btn,.esnpl-btn,#esn-guard-card .gb,#esnin-banner button,#esn-myref-row a.b{
  border-radius:var(--esn-r-sm)!important;font-weight:600!important;transition:filter .15s,transform .15s,background-color .15s
}
.esngp-btn:hover,.esnb-btn:hover,.esnpl-btn:hover,#esn-guard-card .gb:hover,#esnin-banner button:hover{filter:brightness(1.12)}
.esngp-btn:active,.esnb-btn:active,.esnpl-btn:active{transform:translateY(1px)}

/* ---------- 2. Focus states you can see (keyboard users) ---------- */
#app a:focus-visible,#app button:focus-visible,#app [role=button]:focus-visible,
.esnx-bar a:focus-visible,#esn-upgrade-strip a:focus-visible{
  outline:2px solid var(--esn-accent-2)!important;outline-offset:2px;border-radius:8px
}

/* ---------- 3. Top navigation: clearer active page, roomier hit areas ---------- */
[class*="NavigationBar__Bar-"]{
  backdrop-filter:saturate(140%) blur(10px);-webkit-backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--esn-line)!important;box-shadow:0 6px 18px rgba(0,0,0,.18)
}
[class*="NavigationBar__RightNavigation-"] > a,[class*="NavigationBar__RightNavigation-"] > button,
[class*="NavigationBar__RightNavigation-"] > .navigation-link > a{
  border-radius:10px!important;transition:background-color .15s,color .15s
}
[class*="NavigationBar__RightNavigation-"] > a:hover,[class*="NavigationBar__RightNavigation-"] > button:hover{
  background:rgba(255,255,255,.06)!important;color:#fff!important
}
[class*="NavigationBar__RightNavigation-"] > a.active{
  background:rgba(108,92,231,.18)!important;color:#fff!important;box-shadow:inset 0 -2px 0 var(--esn-accent-2)
}

/* ---------- 4. Server tabs (Console / Files / Settings ...): pill tabs, obvious active tab ---------- */
[class*="SubNavigation-"]{
  border-bottom:1px solid var(--esn-line)!important;background:rgba(10,16,32,.72)!important;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)
}
[class*="SubNavigation-"] > div{gap:4px}
[class*="SubNavigation-"] a{
  border-radius:999px!important;padding-left:14px!important;padding-right:14px!important;
  font-weight:600!important;font-size:14px!important;color:var(--esn-muted)!important;
  border-bottom:0!important;box-shadow:none!important;transition:background-color .15s,color .15s
}
[class*="SubNavigation-"] a:hover{color:#fff!important;background:rgba(255,255,255,.06)!important}
[class*="SubNavigation-"] a.active{
  color:#fff!important;background:linear-gradient(135deg,rgba(108,92,231,.9),rgba(142,124,255,.9))!important;
  box-shadow:0 4px 14px rgba(108,92,231,.35)!important
}

/* ---------- 5. Content boxes on server pages (settings, startup, backups...) ---------- */
#app [class*="TitledGreyBox___StyledDiv-"],#app [class*="ContentBox___StyledDiv-"]{
  border-radius:var(--esn-r)!important;border:1px solid var(--esn-line)!important;overflow:hidden;
  box-shadow:var(--esn-shadow)
}
#app [class*="TitledGreyBox___StyledDiv2-"]{border-bottom:1px solid var(--esn-line)!important}
#app [class*="TitledGreyBox___StyledP-"],#app [class*="ContentBox___StyledH-"]{
  font-weight:700!important;letter-spacing:.01em
}
/* console stat tiles + graphs */
#app [class*="style-module_V4CSEpa4"],#app [class*="style-module_j35sQtg2"]{
  border-radius:12px!important;border:1px solid var(--esn-line);overflow:hidden
}
#app [class*="style-module_LI1icUp6"]{border-radius:12px 12px 0 0!important}
/* file manager rows */
#app [class*="FileObjectRow___StyledDiv-"],#app [class*="FileObjectRow__Row-"]{transition:background-color .12s}
#app [class*="FileObjectRow___StyledDiv-"]:hover{background-color:rgba(108,92,231,.10)!important}

/* ---------- 6. Forms: consistent inputs and focus ---------- */
#app input[class*="Input-"]:not([type=checkbox]):not([type=radio]),#app textarea[class*="Input__Textarea-"],#app select[class*="Select-"]{
  border-radius:var(--esn-r-sm)!important;transition:border-color .15s,box-shadow .15s
}
#app input[class*="Input-"]:not([type=checkbox]):not([type=radio]):focus,#app textarea[class*="Input__Textarea-"]:focus,#app select[class*="Select-"]:focus{
  border-color:var(--esn-accent)!important;box-shadow:0 0 0 3px rgba(108,92,231,.25)!important
}
#app [class*="Button__ButtonStyle-"]{border-radius:var(--esn-r-sm)!important;font-weight:600!important;letter-spacing:.01em}

/* ---------- 7. Dashboard (desktop/tablet): your servers first, ESN cards in a tidy grid underneath ---------- */
@media (min-width:768px){
  #esn2-main:has(> [class*="DashboardContainer___StyledDiv4-"]){
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--esn-gap);row-gap:0;align-items:start
  }
  #esn2-main:has(> [class*="DashboardContainer___StyledDiv4-"]) > *{grid-column:1 / -1;min-width:0}
  #esn2-main:has(> [class*="DashboardContainer___StyledDiv4-"]) > [class*="DashboardContainer___StyledDiv-"]{order:-3;margin-bottom:20px}
  #esn2-main:has(> [class*="DashboardContainer___StyledDiv4-"]) > [class*="DashboardContainer___StyledDiv4-"]{order:-2;margin-bottom:24px}
  #esn2-main:has(> [class*="DashboardContainer___StyledDiv4-"]) > #esnb-check{order:-1}
  /* promo / extra cards sit two per row under the servers */
  #esn2-main:has(> [class*="DashboardContainer___StyledDiv4-"]) > #esn-ref-card,
  #esn2-main:has(> [class*="DashboardContainer___StyledDiv4-"]) > #esn-guard-card,
  #esn2-main:has(> [class*="DashboardContainer___StyledDiv4-"]) > #esnin-banner,
  #esn2-main:has(> [class*="DashboardContainer___StyledDiv4-"]) > #esngp-dash{
    grid-column:auto;margin:0 0 var(--esn-gap)!important;align-self:stretch
  }
  #esn2-main:has(> [class*="DashboardContainer___StyledDiv4-"]) > #esn-guard-card,
  #esn2-main:has(> [class*="DashboardContainer___StyledDiv4-"]) > #esnin-banner{flex-wrap:wrap;row-gap:10px}
}
/* server cards */
#app [class*="ServerRow__Card-"]{box-shadow:var(--esn-shadow)}
#app [class*="ServerRow___StyledP-"]{letter-spacing:-.01em}
/* dashboard heading */
#app [class*="DashboardContainer___StyledH-"]{letter-spacing:-.02em}
#app [class*="DashboardContainer___StyledP-"]{letter-spacing:.12em}

/* ---------- 8. Phone polish (adds to esn-mobile.css, never undoes it) ---------- */
@media (max-width:640px){
  #esn2-main{padding-left:2px;padding-right:2px}
  #esn-ref-card,.esnb-card,.esngp-card:not(#esnmc-chip),#esn-guard-card,#esnin-banner{padding:14px!important}
  #esn-guard-card,#esnin-banner{flex-wrap:wrap;row-gap:10px}
  #esn-guard-card .ga,#esnin-banner button{width:100%}
  #esnin-banner button{min-height:44px}
  #app [class*="DashboardContainer___StyledH-"]{font-size:24px!important;line-height:1.2!important}
  #app [class*="ServerRow__Card-"]{border-radius:14px!important}
  [class*="SubNavigation-"] a{padding-left:12px!important;padding-right:12px!important;min-height:40px}
  .esngp-btn,.esnb-btn,.esnpl-btn{min-height:40px}
}

/* ---------- 9. Faster-feeling loads ---------- */
/* page progress bar in ESN colours, a little thicker so it reads as "loading" */
[class*="ProgressBar___StyledDiv-"]{background:linear-gradient(90deg,var(--esn-cyan),var(--esn-accent-2))!important;box-shadow:0 0 8px rgba(142,124,255,.6)}
/* skip painting the long footer until it scrolls near the screen */
#esn-legal-foot{content-visibility:auto;contain-intrinsic-size:auto 46px}

/* ---------- 10. Respect "reduce motion" ---------- */
@media (prefers-reduced-motion:reduce){
  #app *,#app *::before,#app *::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
