@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* =========================================================
   Liznoire Shared Layout (Premium Light Content / Dark Shell)
   Header + Navbar + Footer
   ========================================================= */

:root {
  /* EASY EDIT: Change these variables to update the entire theme */
  --liz-font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Shell Colors (Header & Footer) - Dark */
  --liz-bg-header: #0b0f19;
  --liz-text-header-pure: #ffffff;
  --liz-text-header-muted: #94a3b8;
  
  /* Content Colors - Light Premium */
  --liz-bg-base: #f4f6f9;       /* Light grey background for body */
  --liz-bg-surface: #ffffff;    /* White cards */
  --liz-bg-surface-hover: #f8fafc;
  
  /* Brand Accents */
  --liz-accent: #00e0ac;        /* Vibrant mint/teal */
  --liz-accent-hover: #00c897;
  --liz-accent-glow: rgba(0, 224, 172, 0.3);
  
  /* Typography Colors (Light Mode) */
  --liz-text-pure: #0f172a;     /* Darkest text for headings */
  --liz-text-main: #334155;     /* Main body text */
  --liz-text-muted: #64748b;    /* Muted text */
  
  /* Borders & Shadows */
  --liz-border-subtle: #e2e8f0;
  --liz-border-highlight: #cbd5e1;
  --liz-shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
  
  /* Transitions */
  --liz-transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --liz-transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Setup for Sticky Footer */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

body.liz-form-body, body.liz-index-body, body.liz-login-body, body.liz-pwreset-body, body.liz-account-body, body.liz-tickets-body, body.liz-profile-body {
  font-family: var(--liz-font-primary);
  background: var(--liz-bg-base) !important; /* Forces override of osTicket bg.png */
  color: var(--liz-text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure #container and #content from osTicket don't mess up our background */
#container, #content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Main Content Wrapper (pushes footer down) */
section[class^="liz-"] {
  flex: 1 0 auto;
}

/* =========================================================
   Top Bar (Dark Shell)
   ========================================================= */
.liz-shell-topbar {
  width: 100%;
  height: 72px;
  box-sizing: border-box;
  background: var(--liz-bg-header);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 34px;
  flex-shrink: 0;
}

.liz-shell-brand {
  flex: 0 1 360px;
  max-width: 360px;
  min-width: 220px;
  height: 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-decoration: none;
  transition: opacity var(--liz-transition-fast);
}

.liz-shell-brand:hover {
  opacity: 0.85;
}

.liz-shell-brand-full {
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
  object-position: left;
  display: block;
}

.liz-shell-user-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--liz-text-header-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.liz-shell-user-nav a {
  color: var(--liz-text-header-pure);
  text-decoration: none;
  transition: all var(--liz-transition-fast);
  padding: 6px 12px;
  border-radius: 6px;
}

.liz-shell-user-nav a:hover {
  color: var(--liz-accent);
  background: rgba(0, 224, 172, 0.1);
}

.liz-shell-user-nav span {
  color: rgba(255,255,255,0.2);
}

/* =========================================================
   Primary Navbar (Dark Shell)
   ========================================================= */
.liz-shell-navbar {
  min-height: 56px;
  background: #151a28;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 34px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.liz-shell-navbar a {
  min-height: 56px;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--liz-text-header-muted);
  text-decoration: none;
  font-family: var(--liz-font-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color var(--liz-transition-fast);
}

.liz-shell-navbar a:hover {
  color: var(--liz-text-header-pure);
}

.liz-shell-navbar a.active {
  color: var(--liz-accent);
}

.liz-shell-navbar a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--liz-accent);
  box-shadow: 0 -2px 10px var(--liz-accent-glow);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--liz-transition-fast);
}

.liz-shell-navbar a:hover::after,
.liz-shell-navbar a.active::after {
  transform: scaleX(1);
}

/* =========================================================
   Liznoire Modern Footer (Dark Shell)
   ========================================================= */
.liz-shell-footer {
  background: var(--liz-bg-header);
  color: var(--liz-text-header-muted);
  padding: 80px 34px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  margin-top: auto; /* Pushes footer to bottom */
}

.liz-shell-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.liz-footer-col-brand h3 {
  color: var(--liz-text-header-pure) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 20px 0 16px !important;
  font-family: var(--liz-font-primary) !important;
}

.liz-footer-logo {
  width: 48px;
  height: auto;
  filter: brightness(1.2);
}

.liz-footer-col h4 {
  color: var(--liz-text-header-pure) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px !important;
  font-family: var(--liz-font-primary) !important;
}

.liz-footer-item {
  margin-bottom: 24px;
}

.liz-footer-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--liz-accent);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.liz-footer-col p, 
.liz-footer-col-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: var(--liz-text-header-muted);
}

.liz-footer-col a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color var(--liz-transition-fast);
}

.liz-footer-col a:hover {
  color: var(--liz-accent);
}

.liz-shell-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.liz-shell-social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--liz-transition-smooth);
}

.liz-shell-social-icons a:hover {
  background: rgba(0, 224, 172, 0.1);
  border-color: var(--liz-accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--liz-accent-glow);
}

.liz-shell-social-icons img {
  width: 18px !important;
  height: 18px !important;
  filter: invert(1);
}

.liz-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 24px 34px;
}

.liz-footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.liz-footer-bottom p {
  font-size: 13px;
  color: var(--liz-text-header-muted);
  font-weight: 500;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 820px) {
  .liz-shell-topbar {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
  }

  .liz-shell-brand {
    flex: 0 1 100%;
    max-width: 100%;
    height: auto;
    justify-content: center;
  }

  .liz-shell-brand-full {
    max-height: 48px;
    object-position: center;
  }

  .liz-shell-user-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .liz-shell-navbar {
    gap: 24px;
    padding: 0 20px;
  }

  .liz-shell-footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .liz-footer-logo, .liz-shell-social-icons {
    margin: 0 auto;
    justify-content: center;
  }
}

/* =========================================================
   Shared Shell Consistency Lock
   Keeps header/navbar identical across index/login/open/view
   ========================================================= */

body.liz-form-body,
body.liz-index-body,
body.liz-login-body,
body.liz-pwreset-body,
body.liz-account-body,
body.liz-tickets-body,
body.liz-profile-body {
  font-family: var(--liz-font-primary) !important;
  font-size: 14px;
  line-height: 1.5;
}

.liz-shell-topbar,
.liz-shell-topbar *,
.liz-shell-navbar,
.liz-shell-navbar * {
  box-sizing: border-box;
  font-family: var(--liz-font-primary) !important;
}

.liz-shell-topbar {
  height: 72px !important;
  min-height: 72px !important;
  padding: 0 34px !important;
}

.liz-shell-navbar {
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 34px !important;
  gap: 32px !important;
}

.liz-shell-navbar a {
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 56px !important;
  letter-spacing: 0.5px !important;
}

.liz-shell-user-nav,
.liz-shell-user-nav a {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

/* =========================================================
   Antigravity Aurora Background (Global Shared)
   ========================================================= */
.liz-aurora-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  filter: blur(100px);
  opacity: 0.6;
  pointer-events: none;
}

.liz-aurora-blob {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  animation: liz-float 25s infinite alternate ease-in-out;
}

.liz-aurora-blob-1 { background: #FF8C00; top: -10%; left: -10%; }
.liz-aurora-blob-2 { background: #6366f1; bottom: -10%; right: -10%; animation-delay: -5s; }
.liz-aurora-blob-3 { background: #ec4899; top: 40%; left: 30%; animation-delay: -10s; }

@keyframes liz-float {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(10vw, 5vh) rotate(120deg) scale(1.2); }
  66% { transform: translate(-5vw, 15vh) rotate(240deg) scale(0.8); }
  100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}