/* LakuHost premium skin for LicenseBox (Bulma-compatible)
   Tailwind preflight is off. Do not load Bootstrap CSS globally. */

:root {
  --lh-navy: #071422;
  --lh-ink: #0b1220;
  --lh-muted: #5c6d80;
  --lh-line: rgba(15, 40, 70, 0.08);
  --lh-cyan: #22d3ee;
  --lh-blue: #2563eb;
  --lh-bg: #eef5fb;
  --lh-surface: #ffffff;
  --lh-sidebar: 272px;
  --lh-radius: 22px;
  --lh-shadow: 0 18px 50px rgba(15, 45, 80, 0.08);
  --lh-glow: 0 0 0 4px rgba(34, 211, 238, 0.16), 0 12px 28px rgba(37, 99, 235, 0.16);
}

html, body {
  min-height: 100%;
}

body.lh-app,
body.lh-auth {
  font-family: "Plus Jakarta Sans", sans-serif !important;
  color: var(--lh-ink);
  letter-spacing: -0.012em;
  background:
    radial-gradient(1100px 480px at 92% -8%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(900px 420px at -8% 108%, rgba(37, 99, 235, 0.12), transparent 52%),
    var(--lh-bg) !important;
}

body.lh-app {
  display: flex;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, .title, .subtitle, .navbar-item, .button {
  font-family: "Plus Jakarta Sans", sans-serif !important;
}

.title {
  letter-spacing: -0.03em;
  font-weight: 800 !important;
}

/* Sidebar */
.lh-sidebar {
  width: var(--lh-sidebar);
  flex: 0 0 var(--lh-sidebar);
  background: linear-gradient(180deg, #071422 0%, #0a1b30 100%);
  color: #dbeafe;
  min-height: 100vh;
  position: sticky;
  top: 0;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.lh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 28px;
  text-decoration: none;
}

.lh-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #041018;
  background: linear-gradient(135deg, var(--lh-cyan), var(--lh-blue));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.45);
}

.lh-brand-name { color: #fff; font-weight: 800; line-height: 1.1; }
.lh-brand-sub { color: #7dd3fc; font-size: 12px; }

.lh-nav-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(125, 211, 252, 0.7);
  padding: 16px 12px 8px;
  font-weight: 700;
}

.lh-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  color: rgba(219, 234, 254, 0.78) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
}

.lh-link:hover { background: rgba(34, 211, 238, 0.08); color: #fff !important; }
.lh-link.is-active,
.lh-link.active {
  color: #041018 !important;
  background: linear-gradient(90deg, var(--lh-cyan), #7dd3fc);
  box-shadow: 0 8px 22px rgba(34, 211, 238, 0.25);
}

.lh-side-foot {
  margin-top: auto;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: #dbeafe;
  font-size: 13px;
}

.lh-canvas {
  flex: 1;
  min-width: 0;
}

.lh-burger { display: none; }
.lh-backdrop[hidden] { display: none !important; }

.lh-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 40px 6px;
}

.lh-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lh-page-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.lh-user-name { color: var(--lh-muted); font-weight: 600; }

.lh-kicker {
  color: var(--lh-blue);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.lh-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lh-user a { font-weight: 700; color: var(--lh-ink); }

/* Content rhythm */
body.lh-app .main_body {
  max-width: none !important;
  width: 100%;
  padding: 8px 40px 48px !important;
}

body.lh-app .section {
  padding: 12px 0 24px !important;
}

body.lh-app .box,
body.lh-app .widget-card,
body.lh-app .message.is-white,
body.lh-app .tile.is-child.box,
body.lh-app .dashboard-chart-card,
body.lh-app .dashboard-activity-card,
body.lh-app .dashboard-api-health-card {
  background: var(--lh-surface) !important;
  border: 1px solid var(--lh-line) !important;
  border-radius: var(--lh-radius) !important;
  box-shadow: var(--lh-shadow) !important;
}

body.lh-app .widget-stat {
  min-height: 148px;
}

body.lh-app .widget-background {
  background: rgba(34, 211, 238, 0.14) !important;
  color: #0891b2 !important;
  border-radius: 16px !important;
}

body.lh-app .button.is-link,
body.lh-app .button.is-primary,
body.lh-app .button.is-info {
  background: linear-gradient(90deg, var(--lh-cyan), var(--lh-blue)) !important;
  border: 0 !important;
  color: #041018 !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  box-shadow: var(--lh-glow);
}

body.lh-app .button.is-warning {
  border-radius: 14px !important;
  font-weight: 700 !important;
}

body.lh-app .input,
body.lh-app .textarea,
body.lh-app .select select {
  border-radius: 14px !important;
  border-color: var(--lh-line) !important;
  min-height: 46px;
  box-shadow: none !important;
}

body.lh-app .input:focus,
body.lh-app .textarea:focus,
body.lh-app .select select:focus {
  border-color: var(--lh-cyan) !important;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16) !important;
}

body.lh-app .table th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lh-muted);
  border-color: var(--lh-line) !important;
}

body.lh-app .table td {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  border-color: var(--lh-line) !important;
}

body.lh-app .navbar.is-primary { display: none !important; }

body.lh-app .content.has-text-centered {
  padding: 8px 40px 28px;
  color: var(--lh-muted);
}

/* Auth — full viewport */
html:has(body.lh-auth) {
  height: 100%;
}

body.lh-auth {
  display: block !important;
  margin: 0 !important;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(700px 400px at 18% 18%, rgba(34, 211, 238, 0.22), transparent 60%),
    radial-gradient(700px 400px at 88% 82%, rgba(37, 99, 235, 0.24), transparent 55%),
    #07111f !important;
}

body.lh-auth .lh-sidebar,
body.lh-auth .lh-topbar,
body.lh-auth .lh-backdrop,
body.lh-auth .content.has-text-centered { display: none !important; }

.lh-auth-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}

.lh-auth-panel {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.lh-auth-visual {
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.16), transparent 42%), linear-gradient(180deg, #071422, #0b1d33);
  color: #fff;
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lh-auth-form {
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}

.lh-auth-form .title,
.lh-auth-visual .title {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25 !important;
}

.lh-auth-form .subtitle {
  color: var(--lh-muted) !important;
  line-height: 1.5 !important;
}

.lh-auth-mobile-brand { display: none; }

.lh-auth-form .box {
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.lh-auth-form .button.is-link {
  background: linear-gradient(90deg, var(--lh-cyan), var(--lh-blue)) !important;
  border: 0 !important;
  color: #041018 !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  box-shadow: var(--lh-glow);
}

@media (max-width: 1023px) {
  body.lh-app {
    display: block;
    overflow-x: hidden;
  }

  .lh-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(86vw, 300px);
    min-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform 0.22s ease;
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.28);
  }

  .lh-sidebar.is-open { transform: none; }

  .lh-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--lh-line);
    border-radius: 12px;
    background: #fff;
    padding: 10px;
    flex: 0 0 42px;
  }

  .lh-burger span {
    display: block;
    height: 2px;
    background: var(--lh-ink);
    border-radius: 2px;
  }

  .lh-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(7, 20, 34, 0.46);
    z-index: 35;
  }

  body.lh-nav-open { overflow: hidden; }

  .lh-topbar {
    padding: 14px 16px 8px;
    align-items: flex-start;
  }

  .lh-page-title { font-size: 1.15rem; }
  .lh-user-name { display: none; }
  .lh-top-cta { display: none !important; }

  body.lh-app .main_body,
  body.lh-app .content.has-text-centered {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.lh-app .section > .title .button {
    float: none !important;
    display: inline-flex;
    margin-top: 10px;
  }

  .lh-auth-wrap {
    padding: 0;
    align-items: stretch;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .lh-auth-panel {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    background: #fff;
  }
  .lh-auth-visual { display: none; }
  .lh-auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
  }
  .lh-auth-mobile-brand .lh-brand-name { color: var(--lh-ink); }
  .lh-auth-mobile-brand .lh-brand-sub { color: #0284c7; }
  .lh-auth-form {
    padding: 32px 22px 28px;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: center;
  }
  .lh-auth-form .title.is-4 { font-size: 1.25rem !important; }
}
