/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app/layout.tsx","import":"Inter","arguments":[{"subsets":["latin"],"display":"swap","variable":"--font-inter"}],"variableName":"inter"} ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/ba9851c3c22cd980-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/21350d82a1f187e9-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/c5fe6dc8356a8c31-s.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/19cfc7226ec3afaa-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/df0a9ae256c0569c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/8e9860b6e62d6359-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Inter_f367f3';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/e4af272ccee01ff0-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Inter_Fallback_f367f3';src: local("Arial");ascent-override: 90.49%;descent-override: 22.56%;line-gap-override: 0.00%;size-adjust: 107.06%
}.__className_f367f3 {font-family: '__Inter_f367f3', '__Inter_Fallback_f367f3';font-style: normal
}.__variable_f367f3 {--font-inter: '__Inter_f367f3', '__Inter_Fallback_f367f3'
}

/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  /* Palette chiara allineata al logo oenergy (magenta/viola + indaco) */
  --bg: #f5f4f9;
  --surface: #ffffff;
  --surface-2: #f3f1f7;
  --border: #e8e6f0;
  --border-strong: #ddd9ea;
  --text: #1c1826;
  --muted: #7a7689;
  --accent: #97157f;       /* magenta brand */
  --accent-2: #7c1069;     /* hover */
  --accent-soft: rgba(151, 21, 127, 0.10);
  --indigo: #514f93;       /* accento secondario del logo */
  --green: #1a9d6b;
  --red: #d83a3a;
  --amber: #c08418;

  --grad: linear-gradient(135deg, #97157f 0%, #6f2a8f 55%, #514f93 100%);
  --grad-soft: linear-gradient(135deg, rgba(151,21,127,.12), rgba(81,79,147,.12));

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 20, 40, 0.05), 0 2px 6px rgba(28, 20, 40, 0.05);
  --shadow-md: 0 6px 22px rgba(28, 20, 40, 0.10);
  --shadow-lg: 0 18px 48px rgba(28, 20, 40, 0.18);
  --ring: 0 0 0 3px var(--accent-soft);
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; }
body {
  background:
    radial-gradient(900px 500px at 100% -5%, rgba(151,21,127,.06), transparent 60%),
    radial-gradient(700px 500px at -5% 105%, rgba(81,79,147,.07), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-2); text-decoration: none; }
code, pre, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
code { background: var(--accent-soft); color: var(--accent-2); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }

::selection { background: rgba(151,21,127,.18); }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: #cdc8dd transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #d3cee0; border-radius: 20px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #bdb6d1; background-clip: content-box; }

/* Layout */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 238px; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 3px;
  position: -webkit-sticky;
  position: sticky; top: 0; height: 100vh;
}
.brand { font-weight: 700; font-size: 16px; padding: 2px 8px 18px; letter-spacing: .2px; }
.brand-logo { display: inline-flex; margin-bottom: 12px; }
.brand-logo img { display: block; height: 34px; width: auto; }
.brand > div {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800; letter-spacing: -.2px;
}
.brand-sub {
  display: block; -webkit-text-fill-color: initial; color: var(--muted);
  font-weight: 500; font-size: 11px; margin-top: 2px; letter-spacing: .3px;
}
.nav { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; gap: 2px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.navlink {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 9px 12px 9px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 13.5px;
  transition: background .15s, color .15s, transform .05s;
}
.navicon { color: currentColor; opacity: .7; flex: 0 0 auto; transition: opacity .15s, transform .15s; }
.navlink:hover { background: var(--surface-2); color: var(--text); }
.navlink:hover .navicon { opacity: 1; }
.navlink:active { transform: translateX(1px); }
.navlink.active {
  background: var(--grad-soft); color: var(--accent-2); font-weight: 600;
  box-shadow: 0 6px 18px -12px rgba(151,21,127,.6);
}
.navlink.active .navicon { opacity: 1; }
.navlink.active::before {
  content: ""; position: absolute; left: 3px; top: 7px; bottom: 7px; width: 3px;
  border-radius: 3px; background: var(--grad);
}
.sidebar-footer { margin-top: auto; border-top: 1px solid var(--border); padding-top: 14px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 0 6px 2px; }
.user-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.avatar {
  width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .3px;
  box-shadow: 0 4px 12px -4px rgba(151,21,127,.5);
}
.main { flex: 1 1; padding: 34px 44px; max-width: 1240px; }
.page-title { font-size: 24px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 4px; }
.page-sub { color: var(--muted); margin: 0 0 26px; }

/* Cards */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 2px rgba(28,20,40,.04), 0 10px 30px -18px rgba(28,20,40,.22);
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.card:hover {
  border-color: rgba(151,21,127,.26);
  box-shadow: 0 1px 2px rgba(28,20,40,.04), 0 22px 48px -22px rgba(151,21,127,.30);
  transform: translateY(-3px);
}
.card + .card { margin-top: 16px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { flex: 1 1; min-width: 0; }
/* Stat cards: decorative gradient glow + accent bar */
.row > .card { overflow: hidden; }
.row > .card::after {
  content: ""; position: absolute; top: -50px; right: -40px; width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(151,21,127,.12), transparent 70%); pointer-events: none;
}
.stat {
  font-size: 32px; font-weight: 800; letter-spacing: -.6px; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .7px; font-weight: 700; margin-bottom: 6px; }
.icon-chip {
  width: 44px; height: 44px; border-radius: 13px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(151,21,127,.55);
}
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.section-title { font-size: 15px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }

/* Forms */
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
input, select, textarea {
  width: 100%; background: #fbfafd; border: 1px solid var(--border-strong); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea.mono { font-family: ui-monospace, monospace; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #aaa4ba; }
.field { margin-bottom: 14px; }
.field-row { display: flex; gap: 12px; }
.field-row > * { flex: 1 1; }

/* Buttons */
.btn {
  background: var(--grad); background-size: 140% 140%; color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 8px rgba(151,21,127,.25);
  transition: filter .15s, box-shadow .15s, transform .06s, background-position .3s;
}
.btn:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 18px rgba(151,21,127,.36); background-position: 100% 0; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; filter: none; }
.btn.secondary { background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); box-shadow: var(--shadow); }
.btn.secondary:hover { background: var(--surface-2); filter: none; border-color: var(--accent); color: var(--accent-2); }
.btn.danger { background: #fff; border: 1px solid var(--red); color: var(--red); box-shadow: none; }
.btn.danger:hover { background: var(--red); color: #fff; filter: none; }
.btn.sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; background: var(--surface-2); }
th:first-child { border-top-left-radius: 8px; }
th:last-child { border-top-right-radius: 8px; }
tbody tr { transition: background .12s; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; border-radius: 8px; }

/* Misc */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: .2px; }
.badge.green { background: rgba(26,157,107,.13); color: var(--green); }
.badge.red { background: rgba(216,58,58,.12); color: var(--red); }
.badge.amber { background: rgba(192,132,24,.15); color: var(--amber); }
.badge.blue { background: var(--accent-soft); color: var(--accent-2); }
.badge.gray { background: var(--surface-2); color: var(--muted); }
.muted { color: var(--muted); }
.error-box { background: rgba(216,58,58,.08); border: 1px solid rgba(216,58,58,.35); color: #a32424; padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 13px; }
.ok-box { background: rgba(26,157,107,.08); border: 1px solid rgba(26,157,107,.35); color: #137a52; padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 13px; }
pre.codeblock { background: #faf9fc; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; overflow-x: auto; font-size: 12.5px; color: #3a3450; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tab {
  padding: 9px 16px; cursor: pointer; color: var(--muted); font-weight: 600; border-radius: 8px 8px 0 0;
  border-bottom: 2px solid transparent; transition: color .15s, background .15s, border-color .15s;
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.active { color: var(--accent-2); border-bottom-color: var(--accent); background: var(--grad-soft); }

/* Login */
.login-wrap {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background:
    radial-gradient(700px 500px at 80% -10%, rgba(151,21,127,.16), transparent 60%),
    radial-gradient(600px 500px at 0% 110%, rgba(81,79,147,.18), transparent 55%),
    linear-gradient(135deg, #faf7fb 0%, #f1eef7 100%);
}
.login-card { width: 372px; box-shadow: var(--shadow-lg); border-radius: 16px; }

.spinner { color: var(--muted); padding: 40px; text-align: center; }
.token-reveal { background: #faf9fc; border: 1px dashed var(--accent); border-radius: var(--radius-sm); padding: 12px; word-break: break-all; font-family: ui-monospace, monospace; color: var(--accent-2); }

/* Albero / grafo */
.tree, .tree ul { list-style: none; margin: 0; padding-left: 22px; }
.tree > li { padding-left: 0; }
.tree li { position: relative; padding: 4px 0; }
.tree li::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -12px;
  border-left: 1px solid var(--border-strong);
}
.tree li:last-child::before { bottom: auto; height: 16px; }
.tree li::after {
  content: ""; position: absolute; top: 16px; left: -12px; width: 12px;
  border-top: 1px solid var(--border-strong);
}
.tree > li::before, .tree > li::after { display: none; }
.tree-node { display: inline-flex; align-items: center; gap: 6px; }
.tree-toggle {
  cursor: pointer; width: 16px; height: 16px; line-height: 14px; text-align: center;
  border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface);
  color: var(--muted); font-size: 11px; -webkit-user-select: none; -moz-user-select: none; user-select: none; flex: 0 0 auto; transition: background .12s;
}
.tree-toggle:hover { background: var(--surface-2); }
.node-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 9px; font-size: 13px; border: 1px solid var(--border); transition: filter .12s, box-shadow .12s; }
.node-app { background: var(--grad-soft); color: var(--accent-2); border-color: transparent; font-weight: 700; }
.node-cat { background: var(--surface-2); color: var(--text); }
.node-cls { background: rgba(192,132,24,.12); color: var(--amber); }
.node-method { background: rgba(26,157,107,.12); color: var(--green); }
.node-method:hover { text-decoration: none; box-shadow: var(--shadow); filter: brightness(0.98); }

