/* AITRED additions on top of the CryptoDash template stylesheet.
   Keep the template's visual language: navy gradient sidebar, light canvas,
   white rounded cards, blue charts, orange→yellow gradient actions. */

:root {
  --aitred-blue: #1b65d3;
  --aitred-navy-1: #193e8e;
  --aitred-navy-2: #130e3b;
  --aitred-text: #6b6f82;
  --aitred-heading: #464855;
  --aitred-bg: #f9fafd;
}

body.aitred-app { background: var(--aitred-bg); }
.aitred-boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; }

/* headings use the template's Comfortaa uppercase card titles */
.aitred-section-title, .card .card-title, .aitred-page-title {
  font-family: Comfortaa, Muli, sans-serif; text-transform: uppercase; letter-spacing: .3px; color: var(--aitred-heading); font-weight: 700;
}
.aitred-page-title { font-size: 1.1rem; }
.aitred-section-title { font-size: .9rem; }
.card .card-title { font-size: .9rem; }
.card { border-radius: .45rem; }

/* ---- sidebar ------------------------------------------------------------ */
.main-menu .navigation-brand { display: block; text-align: center; padding: 1.4rem 0 1rem; }
.main-menu .navigation > li > a { color: rgba(255,255,255,.82) !important; }
.main-menu .navigation > li.active > a i, .main-menu .navigation > li.hover > a i { color: #fff; }
.main-menu.menu-dark .navigation > li.active > a { background: rgba(255,255,255,.08); border-radius: .35rem; }
.vertical-compact-menu .main-menu .navigation > li > a > i { font-size: 1.85rem; margin: .2rem 0 .35rem; }
.vertical-compact-menu .main-menu .navigation > li > a > span.menu-title { font-size: .62rem; letter-spacing: .6px; visibility: visible; opacity: .75; margin-bottom: .45rem; }
.vertical-compact-menu .main-menu { overflow: visible; }
.vertical-compact-menu .main-menu .main-menu-content { position: relative; height: 100%; overflow-y: auto; overflow-x: visible; }
.vertical-compact-menu .aitred-inline-sub { display: none !important; }
.aitred-flyout {
  position: fixed; left: calc(130px + .8rem); margin-top: .8rem; z-index: 100001; min-width: 240px; list-style: none; padding: 0 0 .5rem;
  background: #fff; border-radius: 0 .45rem .45rem 0; box-shadow: 25px 5px 75px 2px rgba(64,70,74,.2);
}
.aitred-flyout-title { background: var(--aitred-blue); color: #fff; font-weight: 600; text-transform: uppercase; padding: 14px 20px; font-size: .8rem; letter-spacing: .5px; }
.aitred-flyout li a { display: block; padding: 9px 20px; color: var(--aitred-text); white-space: nowrap; }
.aitred-flyout li a:hover, .aitred-flyout li.active a { color: var(--aitred-blue); background: #f4f5fa; font-weight: 600; }
.vertical-overlay-menu .aitred-flyout { display: none; }
.vertical-overlay-menu .main-menu { overflow-y: auto; }
.vertical-overlay-menu .main-menu .navigation > li > a { padding: 12px 18px; display: block; }
.vertical-overlay-menu .main-menu .navigation > li > a > span { visibility: visible; }
.vertical-overlay-menu .aitred-inline-sub { list-style: none; padding: 0 0 .4rem 3rem; }
.vertical-overlay-menu .aitred-inline-sub a { color: rgba(255,255,255,.7) !important; display: block; padding: 5px 0; font-size: .9rem; }
.vertical-overlay-menu .aitred-inline-sub li.active a { color: #fff !important; font-weight: 700; }
.sidenav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 997; }

/* ---- top nav --------------------------------------------------------- */
.header-navbar .navbar-container { padding: 0 1.5rem; }
.aitred-portal-tag { font-family: Comfortaa, sans-serif; text-transform: uppercase; font-size: .75rem; letter-spacing: 1px; color: #98a4b8; }
.aitred-switch { font-size: .85rem; color: var(--aitred-blue) !important; }
.aitred-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #1c78ff, #29bcfd); color: #fff;
  display: inline-flex !important; align-items: center; justify-content: center; font-weight: 700; }
.aitred-dropdown { position: absolute; right: 0; top: 100%; min-width: 300px; max-width: 360px; padding: 0; border: 0; box-shadow: 0 10px 40px rgba(26,53,127,.15); }
.aitred-dropdown .dropdown-item { padding: .6rem 1rem; }
.aitred-dropdown-list { max-height: 340px; overflow-y: auto; }
.aitred-unread { background: #f4f8ff; }
.aitred-logo svg { display: block; }
.navigation-brand .aitred-logo { justify-content: center; }
.aitred-wordmark { font-family: Comfortaa, sans-serif; font-weight: 700; letter-spacing: 2px; color: var(--aitred-navy-1); font-size: 1.1rem; }

/* ---- content --------------------------------------------------------------- */
.aitred-stat .card-body { padding: 1.25rem 1.4rem; }
.aitred-stat h3 { font-family: Comfortaa, Muli, sans-serif; font-weight: 700; color: var(--aitred-heading); font-size: 1.45rem; white-space: nowrap; }
.aitred-stat-label { text-transform: uppercase; font-size: .72rem; letter-spacing: .7px; }
.aitred-badge { text-transform: capitalize; font-weight: 600; font-size: .72rem; padding: .3em .75em; }
.aitred-pill { pointer-events: none; padding: .1rem .7rem; }
.aitred-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: #98a4b8; font-weight: 600; }
.aitred-table th { text-transform: uppercase; font-size: .72rem; letter-spacing: .5px; color: #6b6f82; font-weight: 700; }
.aitred-table td { vertical-align: middle; font-size: .92rem; }
.aitred-empty { font-size: .95rem; }
.aitred-kv li + li { border-top: 1px dashed #eceff5; }
.aitred-disclaimer { line-height: 1.4; }
.aitred-card-actions .btn { margin-left: .35rem; }
.aitred-chart { position: relative; }
.aitred-legend li::before { background: var(--dot) !important; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; word-break: break-all; }
.btn-gradient-secondary.aitred-btn-sm { padding: .55rem 1.6rem; font-size: .9rem; }
.btn-gradient-secondary:disabled { opacity: .55; cursor: not-allowed; }
.aitred-alert { border-radius: .45rem; }
.aitred-tabs .nav-link { cursor: pointer; }
.content-header-title { margin-top: .3rem; }

/* toggle */
.aitred-toggle { display: inline-flex; align-items: center; cursor: pointer; margin: 0; user-select: none; }
.aitred-toggle.disabled { opacity: .5; cursor: not-allowed; }
.aitred-toggle input { display: none; }
.aitred-toggle-track { width: 38px; height: 22px; border-radius: 11px; background: #d4d8e3; position: relative; transition: background .2s; }
.aitred-toggle-dot { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.aitred-toggle input:checked + .aitred-toggle-track { background: linear-gradient(90deg, #1c78ff, #29bcfd); }
.aitred-toggle input:checked + .aitred-toggle-track .aitred-toggle-dot { left: 19px; }

/* modal */
.aitred-modal-backdrop { position: fixed; inset: 0; background: rgba(19,14,59,.45); z-index: 200000; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 1rem; overflow-y: auto; }
.aitred-modal { width: 100%; max-width: 560px; margin: 0; box-shadow: 0 25px 80px rgba(19,14,59,.35); }
.aitred-modal.wide { max-width: 900px; }

/* target band */
.aitred-target { border: 1px dashed #c9d3ea; border-radius: .45rem; padding: .9rem 1rem; background: #fbfcff; }
.aitred-target .big { font-family: Comfortaa, sans-serif; font-size: 1.6rem; font-weight: 700; }

/* public pages */
.aitred-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem;
  background: linear-gradient(160deg, #193e8e 0%, #130e3b 100%); }
.aitred-auth .card { width: 100%; max-width: 460px; border-radius: .6rem; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.aitred-auth .card-header { border: 0; text-align: center; padding-top: 2rem; }
.aitred-divider { display: flex; align-items: center; color: #98a4b8; font-size: .8rem; margin: 1.2rem 0; text-transform: uppercase; letter-spacing: 1px; }
.aitred-divider::before, .aitred-divider::after { content: ''; flex: 1; border-top: 1px solid #e4e7ed; }
.aitred-divider span { padding: 0 .75rem; }
.aitred-wallet-btn { display: flex; align-items: center; width: 100%; border: 1px solid #e4e7ed; background: #fff; border-radius: 2rem; padding: .65rem 1.1rem; margin-bottom: .6rem; font-weight: 600; color: var(--aitred-heading); transition: box-shadow .2s, border-color .2s; }
.aitred-wallet-btn:hover { border-color: #1c78ff; box-shadow: 0 4px 18px rgba(28,120,255,.18); }
.aitred-wallet-btn img, .aitred-wallet-btn .wicon { width: 26px; height: 26px; margin-right: .8rem; }
.aitred-landing-hero { background: linear-gradient(160deg, #193e8e 0%, #130e3b 100%); color: #fff; padding: 5rem 1.5rem 7rem; }
.aitred-landing-hero h1 { color: #fff; font-family: Comfortaa, sans-serif; font-weight: 700; font-size: 2.6rem; }
.aitred-landing-hero p.lead { color: rgba(255,255,255,.8); max-width: 640px; }
.aitred-landing-cards { margin-top: -4.5rem; }
@media (max-width: 767.98px) {
  .aitred-landing-hero h1 { font-size: 1.8rem; }
  .aitred-stat h3 { font-size: 1.2rem; }
  .header-navbar .navbar-container { padding: 0 .75rem; }
  .aitred-dropdown { position: fixed; left: .5rem; right: .5rem; top: 60px; max-width: none; min-width: 0; }
}
