/* Eye — Fleet Monitoring dashboard.
   Extends the shared CodeN design system (styles.css / motion.js) — same
   dark-navy canvas, Space Grotesk + IBM Plex Mono type, .cn-reveal/.cn-btn/
   .cn-pill behavior. This file adds the glass-panel language specific to
   the dashboard: translucent, blurred, layered surfaces with a soft top
   highlight and status color language (ok / degraded / error / not
   connected). Respects prefers-reduced-motion via the global rule already
   defined in styles.css — nothing here defines motion that isn't also
   covered by that blanket override. */

:root{
  --eye-ok:#30d158;
  --eye-ok-soft:rgba(48,209,88,.14);
  --eye-degraded:#ffb340;
  --eye-degraded-soft:rgba(255,179,64,.15);
  --eye-error:#ff5c4d;
  --eye-error-soft:rgba(255,92,77,.16);
  --eye-off:#8b9bc0;
  --eye-off-soft:rgba(139,155,192,.12);
  --eye-glass-bg:linear-gradient(165deg,rgba(28,44,78,.58),rgba(12,19,38,.6));
  --eye-glass-border:rgba(148,185,255,.16);
  --eye-glass-border-hi:rgba(170,200,255,.32);
}

.eye-body{min-height:100vh;color:#eaf2ff;background:
  radial-gradient(1100px 620px at 82% -12%,rgba(36,118,232,.24),transparent 60%),
  radial-gradient(800px 500px at 6% 12%,rgba(70,60,220,.10),transparent 55%),
  linear-gradient(180deg,#070b14 0%,#0a1326 55%,#070b14 100%);
  overflow-x:hidden;}

/* ---- ambient backdrop texture: faint grid + glow orbs, matching the
   marketing site's hero treatment but kept very quiet so it never competes
   with card content ------------------------------------------------------ */
.eye-field{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;}
.eye-field::before{content:'';position:absolute;inset:0;background-image:
  linear-gradient(rgba(120,170,255,.05) 1px,transparent 1px),
  linear-gradient(90deg,rgba(120,170,255,.05) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(1100px 680px at 62% 0%,#000 20%,transparent 75%);}
.eye-orb{position:absolute;border-radius:50%;filter:blur(90px);opacity:.5;animation:cn-float 14s ease-in-out infinite;}
.eye-orb-a{width:420px;height:420px;top:-160px;right:-120px;background:radial-gradient(circle,rgba(36,118,232,.35),transparent 70%);}
.eye-orb-b{width:360px;height:360px;bottom:-180px;left:-100px;background:radial-gradient(circle,rgba(90,60,210,.22),transparent 70%);animation-delay:-6s;}

.eye-shell{position:relative;z-index:1;}

/* ---- glass surface primitive -------------------------------------------
   The core visual unit: deep blur + saturation lift, soft gradient fill,
   a hairline border with a slightly brighter top edge to read as a lit
   pane of glass, and a diffuse shadow for depth rather than a hard drop
   shadow. Used for header, cards, panels, rows, and pills alike so the
   whole UI reads as one coherent material. */
.eye-glass{
  background:var(--eye-glass-bg);
  -webkit-backdrop-filter:blur(28px) saturate(160%);
  backdrop-filter:blur(28px) saturate(160%);
  border:1px solid var(--eye-glass-border);
  border-radius:20px;
  box-shadow:0 1px 0 rgba(255,255,255,.07) inset,0 -1px 0 rgba(0,0,0,.25) inset,0 24px 60px -34px rgba(0,0,10,.9);
  position:relative;
}
.eye-glass::before{
  content:'';position:absolute;inset:0;border-radius:inherit;padding:1px;
  background:linear-gradient(160deg,rgba(255,255,255,.18),rgba(255,255,255,0) 40%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;
}

/* ---- header -------------------------------------------------------------- */
.eye-header{position:sticky;top:0;z-index:50;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:rgba(7,11,20,.72);border-bottom:1px solid rgba(120,160,230,.14);transition:background .3s,box-shadow .3s,border-color .3s;}
.eye-header.cn-scrolled{box-shadow:0 12px 30px -18px rgba(0,0,20,.6);}
.eye-nav{max-width:1240px;margin:0 auto;padding:16px 28px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 24px;}
.eye-brand{display:flex;align-items:center;gap:12px;text-decoration:none;}
.eye-brand img{width:34px;height:34px;object-fit:contain;filter:drop-shadow(0 2px 10px rgba(40,130,240,.5));}
.eye-brand-text{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:18px;letter-spacing:-.01em;color:#fff;display:flex;align-items:center;gap:8px;}
.eye-brand-dot{width:7px;height:7px;border-radius:50%;background:var(--eye-ok);box-shadow:0 0 10px var(--eye-ok);animation:cn-pulse 2.6s ease-in-out infinite;}
.eye-nav-links{display:flex;align-items:center;gap:26px;}
.eye-back-link{font-size:13px;font-weight:500;color:rgba(255,255,255,.6);text-decoration:none;font-family:'IBM Plex Mono',monospace;letter-spacing:.02em;transition:color .2s;}
.eye-back-link:hover{color:#9bd0ff;}

/* ---- page scaffolding ----------------------------------------------------- */
.eye-main{max-width:1240px;margin:0 auto;padding:0 28px 100px;}
.eye-hero{padding:56px 0 34px;}
.eye-eyebrow{font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.2em;color:#7db8ff;text-transform:uppercase;}
.eye-h1{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:clamp(30px,4vw,44px);letter-spacing:-.02em;color:#fff;margin:14px 0 10px;}
.eye-sub{font-size:15.5px;line-height:1.6;color:rgba(200,218,255,.68);max-width:560px;margin:0;}

/* ---- fleet summary strip --------------------------------------------------
   Deliberately NOT a grid of stat tiles — a single slim glass strip with
   inline mono counters, read left-to-right like a status legend rather
   than a dashboard of boxes. */
.eye-summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;padding:14px 20px;margin-top:26px;border-radius:16px;}
.eye-summary-item{display:flex;align-items:center;gap:8px;padding:6px 16px;font-family:'IBM Plex Mono',monospace;font-size:12.5px;color:rgba(210,224,255,.78);border-right:1px solid rgba(140,180,255,.14);}
.eye-summary-item:last-child{border-right:none;}
.eye-summary-item b{color:#fff;font-weight:600;}
.eye-summary-dot{width:6px;height:6px;border-radius:50%;flex:0 0 auto;}

/* ---- project grid + card -------------------------------------------------- */
.eye-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px;margin-top:30px;}
.eye-card{display:flex;flex-direction:column;gap:14px;padding:26px 24px;text-decoration:none;color:inherit;transition:transform .35s cubic-bezier(.16,.84,.44,1),border-color .35s,box-shadow .35s;}
.eye-card:hover{transform:translateY(-5px);border-color:var(--eye-glass-border-hi);box-shadow:0 1px 0 rgba(255,255,255,.09) inset,0 32px 70px -30px rgba(0,0,10,.95);}
.eye-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.eye-card-slug{font-family:'IBM Plex Mono',monospace;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:rgba(150,180,230,.5);}
.eye-card-title{font-family:'Space Grotesk',sans-serif;font-size:20px;font-weight:700;color:#fff;margin:0;letter-spacing:-.01em;line-height:1.25;}
.eye-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;margin-top:auto;border-top:1px solid rgba(140,180,255,.12);}
.eye-card-services{font-size:12.5px;color:rgba(200,218,255,.55);}
.eye-cost{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:3px;}
.eye-cost-figure{font-family:'IBM Plex Mono',monospace;font-size:15px;font-weight:600;color:rgba(225,234,255,.9);}
.eye-cost-label{font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;color:rgba(150,175,220,.42);}
.eye-sparkline{display:block;margin-top:2px;opacity:.4;}
.eye-sparkline path{stroke:rgba(160,190,255,.6);}

/* ---- status pill (shared: cards + connector rows) -------------------------- */
.eye-status-pill{display:inline-flex;align-items:center;gap:7px;padding:5px 12px 5px 9px;border-radius:999px;font-family:'IBM Plex Mono',monospace;font-size:11.5px;font-weight:600;letter-spacing:.03em;border:1px solid transparent;white-space:nowrap;}
.eye-status-dot{width:7px;height:7px;border-radius:50%;flex:0 0 auto;}
.eye-status-pill[data-status="ok"]{color:#a9f5bd;background:var(--eye-ok-soft);border-color:rgba(48,209,88,.32);}
.eye-status-pill[data-status="ok"] .eye-status-dot{background:var(--eye-ok);box-shadow:0 0 8px rgba(48,209,88,.7);animation:cn-pulse 2.6s ease-in-out infinite;}
.eye-status-pill[data-status="degraded"]{color:#ffd9a0;background:var(--eye-degraded-soft);border-color:rgba(255,179,64,.34);}
.eye-status-pill[data-status="degraded"] .eye-status-dot{background:var(--eye-degraded);box-shadow:0 0 8px rgba(255,179,64,.6);}
.eye-status-pill[data-status="error"]{color:#ffb8ae;background:var(--eye-error-soft);border-color:rgba(255,92,77,.36);}
.eye-status-pill[data-status="error"] .eye-status-dot{background:var(--eye-error);box-shadow:0 0 8px rgba(255,92,77,.6);}
.eye-status-pill[data-status="not_connected"]{color:rgba(200,210,235,.7);background:var(--eye-off-soft);border-color:rgba(139,155,192,.28);}
.eye-status-pill[data-status="not_connected"] .eye-status-dot{background:var(--eye-off);}

.eye-card-head[data-status]{position:relative;}

/* ---- project detail: breadcrumb + header ----------------------------------- */
.eye-crumb{display:inline-flex;align-items:center;gap:8px;font-family:'IBM Plex Mono',monospace;font-size:13px;color:rgba(200,218,255,.6);text-decoration:none;margin-top:28px;transition:color .2s;}
.eye-crumb:hover{color:#9bd0ff;}
.eye-detail-head{margin-top:22px;padding:32px 30px;display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:20px;}
.eye-detail-title{font-family:'Space Grotesk',sans-serif;font-size:clamp(26px,3.4vw,36px);font-weight:700;letter-spacing:-.02em;color:#fff;margin:8px 0 0;}
.eye-detail-desc{font-size:14.5px;line-height:1.6;color:rgba(200,218,255,.62);max-width:560px;margin:10px 0 0;}
.eye-detail-meta{display:flex;flex-direction:column;align-items:flex-end;gap:10px;}
.eye-detail-services-count{font-family:'IBM Plex Mono',monospace;font-size:12px;color:rgba(180,200,235,.55);}

/* ---- services + connectors -------------------------------------------------- */
.eye-services{display:flex;flex-direction:column;gap:18px;margin-top:24px;}
.eye-service{padding:24px 26px;}
.eye-service-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid rgba(140,180,255,.12);}
.eye-service-name{font-family:'Space Grotesk',sans-serif;font-size:17px;font-weight:700;color:#fff;margin:0;}
.eye-service-kind{font-family:'IBM Plex Mono',monospace;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:#7db8ff;background:rgba(36,118,232,.12);border:1px solid rgba(120,170,255,.24);padding:4px 10px;border-radius:999px;}

.eye-connectors{display:flex;flex-direction:column;gap:10px;}
.eye-connector{border-radius:14px;background:rgba(255,255,255,.025);border:1px solid rgba(140,180,255,.09);padding:16px 18px;transition:border-color .25s,background .25s;}
.eye-connector:hover{border-color:rgba(140,180,255,.22);background:rgba(255,255,255,.04);}
.eye-connector-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;}
.eye-connector-id{display:flex;flex-direction:column;gap:5px;min-width:180px;}
.eye-connector-name{font-size:14.5px;font-weight:600;color:#eaf2ff;}
.eye-connector-type{font-family:'IBM Plex Mono',monospace;font-size:11px;color:rgba(160,185,225,.55);}
.eye-connector-stats{display:flex;flex-wrap:wrap;align-items:center;gap:18px;font-family:'IBM Plex Mono',monospace;font-size:12px;color:rgba(190,210,245,.6);}
.eye-connector-stat b{color:rgba(220,232,255,.9);font-weight:600;}
.eye-connector-message{margin-top:12px;padding:10px 14px;border-radius:10px;font-size:13px;line-height:1.55;color:rgba(214,228,255,.78);background:rgba(255,255,255,.03);border:1px solid rgba(140,180,255,.1);border-left:2.5px solid var(--eye-off);}
.eye-connector[data-status="error"] .eye-connector-message{border-left-color:var(--eye-error);background:rgba(255,92,77,.06);color:#ffd6d0;}
.eye-connector[data-status="degraded"] .eye-connector-message{border-left-color:var(--eye-degraded);background:rgba(255,179,64,.06);color:#ffe6c2;}
.eye-connector[data-status="ok"] .eye-connector-message{border-left-color:var(--eye-ok);background:rgba(48,209,88,.05);}

/* ---- loading skeletons ------------------------------------------------------ */
.eye-skel{position:relative;overflow:hidden;}
.eye-skel::after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(150,185,255,.08) 50%,transparent 70%);background-size:200% 100%;animation:eye-shimmer 1.8s ease-in-out infinite;}
@keyframes eye-shimmer{0%{background-position:160% 0;}100%{background-position:-60% 0;}}
.eye-skel-line{height:12px;border-radius:6px;background:rgba(255,255,255,.06);}
.eye-skel-card{height:172px;}

/* ---- empty / error panels ---------------------------------------------------- */
.eye-panel{padding:44px 36px;text-align:center;margin-top:30px;}
.eye-panel-eyebrow{font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.18em;color:#ff9a8c;text-transform:uppercase;}
.eye-panel[data-tone="neutral"] .eye-panel-eyebrow{color:#7db8ff;}
.eye-panel-title{font-family:'Space Grotesk',sans-serif;font-size:22px;font-weight:700;color:#fff;margin:12px 0 8px;}
.eye-panel-body{font-size:14.5px;line-height:1.6;color:rgba(200,218,255,.65);max-width:440px;margin:0 auto 22px;}
.eye-retry-btn{display:inline-flex;align-items:center;padding:11px 24px;border-radius:12px;border:1px solid rgba(140,180,255,.3);background:rgba(74,163,255,.1);color:#eaf2ff;font-weight:600;font-size:14px;font-family:inherit;}

/* ---- login page ------------------------------------------------------------
   A single centered glass card rather than the full-width fleet grid —
   still the same material (glass, blur, hairline border, top highlight)
   so it reads as one more page of this dashboard, not a bolted-on auth
   screen. */
.eye-login-main{display:flex;align-items:center;min-height:calc(100vh - 260px);padding-top:20px;padding-bottom:20px;}
.eye-login-wrap{width:100%;display:flex;justify-content:center;}
.eye-login-card{width:100%;max-width:380px;padding:40px 34px 36px;text-align:center;}
.eye-login-title{margin:16px 0 8px;font-size:clamp(26px,4vw,32px);}
.eye-login-sub{margin:0 0 26px;max-width:none;font-size:14px;}
.eye-login-form{display:flex;flex-direction:column;gap:10px;text-align:left;}
.eye-login-label{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#7db8ff;margin-bottom:2px;}
.eye-login-submit{width:100%;padding:13px;border-radius:12px;border:none;font-family:'Space Grotesk',sans-serif;font-size:15px;font-weight:700;letter-spacing:.01em;color:#fff;margin-top:8px;}
.eye-login-submit:hover{box-shadow:0 18px 40px -10px rgba(27,127,227,.95);}
.eye-login-error{padding:16px 18px;text-align:left;margin:0 0 22px;border-radius:12px;background:var(--eye-error-soft);border:1px solid rgba(255,92,77,.34);}
.eye-login-error .eye-panel-eyebrow{font-size:10.5px;letter-spacing:.14em;}
.eye-login-error .eye-panel-body{margin:6px 0 0;color:#ffd6d0;font-size:13.5px;max-width:none;}

@media (max-width:480px){
  .eye-login-card{padding:32px 24px 28px;}
}

/* ---- footer -------------------------------------------------------------- */
.eye-footer{border-top:1px solid rgba(120,160,230,.14);padding:34px 28px;margin-top:60px;position:relative;z-index:1;}
.eye-footer-inner{max-width:1240px;margin:0 auto;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;font-size:13px;color:rgba(190,210,245,.5);}

@media (max-width:720px){
  .eye-grid{grid-template-columns:1fr;}
  .eye-nav{padding:14px 20px;}
  .eye-main{padding:0 20px 80px;}
  .eye-detail-head{flex-direction:column;}
  .eye-detail-meta{align-items:flex-start;}
  .eye-connector-row{flex-direction:column;align-items:flex-start;}
}

@media (prefers-reduced-motion: reduce){
  .eye-orb{animation:none;}
  .eye-skel::after{animation:none;}
  .eye-status-pill[data-status="ok"] .eye-status-dot{animation:none;}
  .eye-brand-dot{animation:none;}
}
