/* Common styles for header */

/* Logo text link — absolute centered in header */
.logo-container.brand-logo {
    position: absolute !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    height: auto;
    flex-shrink: 0;
    z-index: 1;
    pointer-events: auto;
}

/* Sidenav toggle button (emblem) — always visible */
.sn-toggle-btn {
    display: flex;
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 0 10px 0 0 !important;
    margin: 0 0 0 8px !important;
    height: 64px !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.sn-toggle-btn:focus,
.sn-toggle-btn:active {
    background: none !important;
    outline: none;
    box-shadow: none;
}
/* Base emblem size — applies everywhere (login, base.html, etc.) */
.logo-emblem {
    height: 32px;
    display: block;
}
.sn-toggle-btn .logo-emblem {
    height: 35px;
    transition: opacity 0.2s;
}
.sn-toggle-btn:hover .logo-emblem {
    opacity: 0.75;
}

/* Desktop (>992px) */
@media only screen and (min-width: 993px) {
  .logo-image {
    height: 24px;
  }
}

/* Small screens: smaller emblem + logo */
@media only screen and (max-width: 992px) {
  .sn-toggle-btn .logo-emblem {
    height: 28px;
  }

  .logo-image {
    height: 20px;
  }
}

/* ── Sidenav collapse/expand (desktop only) ── */
/* Collapsed width = 64px, expanded = 300px (Materialize default) */
@media only screen and (min-width: 993px) {
  .sidenav.sidenav-fixed {
    width: 300px;
    transform: translateX(0) !important;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                top 0.3s ease, height 0.3s ease;
    overflow-x: hidden;
  }

  /* Hide link text, shrink to icon-only */
  .sidenav.sidenav-fixed.sn-collapsed {
    width: 64px;
  }
  .sidenav.sidenav-fixed.sn-collapsed li a {
    padding-left: 20px !important;
    padding-right: 0 !important;
  }
  .sidenav.sidenav-fixed.sn-collapsed li a span,
  .sidenav.sidenav-fixed.sn-collapsed li a::after {
    display: none;
  }
  /* Hide text nodes — use font-size trick since we can't target text nodes */
  .sidenav.sidenav-fixed.sn-collapsed li > a {
    font-size: 0 !important;
    white-space: nowrap;
  }
  .sidenav.sidenav-fixed.sn-collapsed li > a > i.material-icons {
    font-size: 24px !important;
    margin-right: 0 !important;
  }

  /* Active indicator adjusts for collapsed */
  .sidenav.sidenav-fixed.sn-collapsed li.sn-active {
    border-left-width: 3px !important;
  }
  .sidenav.sidenav-fixed.sn-collapsed li.sn-active a {
    padding-left: 17px !important;
  }

  /* Divider */
  .sidenav.sidenav-fixed.sn-collapsed .sn-divider {
    margin: 4px 10px;
  }

  /* Content + footer margin transitions */
  .sidenav-margin {
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .sidenav-margin.sn-margin-collapsed {
    margin-left: 64px !important;
  }
}

/* Additional styles for the navbar */
.nav-wrapper {
    padding: 0 20px; /* Add padding to nav-wrapper if needed */
}

/* Ensure other elements are vertically aligned */
.right li, .sidenav-trigger {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Add additional styles for your header here */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #17161A;
}

main {
    flex: 1 0 auto;
    padding-top: 64px; /* clear fixed header */
    background-color: #17161A;
    color: #9399a1;
}

.dark-palette , .vanto-style-dark-back {
    #background-color: rgba(52,53,65,1.0);
    background-color: #17161A !important;
    #color: white;
    color: #9399a1 !important;
}

.vanto-style-dark-content {
    background-color: #1B1A1E !important;
    color: #9399a1 !important;
    border-style: none;
}

.vanto-style-light-text {
    color: #9399a1 !important;
}

.collection {
	border: none;
}
.collection.with-header .collection-header{     
	border: none;
}
.collection .collection-item{
	border: none;
}

.footer {
    flex-shrink: 0;
    color: white;
    text-align: center;
    padding: 10px 0;
}

.vanto-main-content-div{
    overflow:auto;
    width:100%;
}

.vanto-main-content-right{
  float: right;
  height: 100%;
  width: 300px; /* Fixed width of 300px */
}

.vanto-main-content-left{
  float: left;
  overflow-y: scroll;
  width: calc(100% - 300px);
}

/* Header spans full width; sidenav starts below it */
.vanto-navigation-container, .vanto-main-content {
    padding-left: 0;
}

/* Sub-navigation bars (OKR, Customers, etc.) sit below fixed header in normal flow */
.sub-nav {
    margin-top: 64px;  /* below the fixed header */
    margin-left: 300px; /* clear the sidenav */
    transition: margin-top 0.3s ease;
}

.sub-nav.sub-nav-raised {
    margin-top: 0;
}

/* When sub-nav is present, main doesn't need its own header clearance */
.sub-nav + main {
    padding-top: 0;
}

@media only screen and (max-width: 992px) {
    .sub-nav {
        margin-left: 0;
    }
}

.vanto-navigation-container a {
    padding-left: 25px;
}

.vanto-sidenav-dark {
    #background-color: #343541;
    background-color: #17161A;    
}

.sidenav li a {
     color: rgba(255, 255, 255, 0.87);	
}

.vanto-sidenav-dark li a i.material-icons {
    color: rgba(255, 255, 255, 0.87) !important;
}

/* Sidenav active item highlight */
.vanto-sidenav-dark li.sn-active {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-left: 3px solid #26a69a !important;
}
.vanto-sidenav-dark li.sn-active a {
    color: #fff !important;
    padding-left: 29px !important;
}
.vanto-sidenav-dark li.sn-active a i.material-icons {
    color: #26a69a !important;
}

/* Sidenav spacer + divider — push footer items to bottom */
.vanto-sidenav-dark li.sn-spacer {
    flex: 1 !important;
    min-height: 0 !important;
}
.vanto-sidenav-dark .sn-divider {
    height: 1px;
    background-color: #333;
    margin: 4px 16px;
}

/* Optional: If the main content area has an inner container, adjust its padding */
.main-content-inner {
    padding: 20px; /* Or any other value that suits the layout */
}

/* Header sits above sidenav, spans full width — auto-hides on scroll */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    border-bottom: 1px solid #333;
    transition: transform 0.3s ease;
}

header.header-hidden {
    transform: translateY(-100%);
}

/* Header inner layout: hamburger left, logo absolute-centered, profile right */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: relative;
}

/* Profile avatar button in header */
.header-profile {
    position: relative;
    margin-right: 8px;
}

.header-profile-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.header-profile-btn:hover {
    border-color: rgba(1, 174, 179, 0.5);
}

.header-profile-btn.active {
    border-color: #01AEB3;
}

.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Profile dropdown */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: #1E1D22;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.profile-dropdown.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*
 * Reset all Materialize nav inheritance inside the dropdown.
 * Materialize sets: nav i { display:block; height:56px; line-height:56px }
 * and nav ul a { display:block; padding:0 15px } — must override all of it.
 */
.profile-dropdown * {
    line-height: normal !important;
}

.profile-dropdown-info {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    padding: 16px;
    height: auto !important;
}

.profile-dropdown-avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block !important;
}

.profile-dropdown-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    min-width: 0;
    flex: 1;
}

.profile-dropdown-name {
    color: #01AEB3;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
    height: auto !important;
    padding: 0 !important;
}

.profile-dropdown-email {
    color: #777;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
    display: block !important;
    height: auto !important;
    padding: 0 !important;
}

.profile-dropdown-divider {
    height: 1px !important;
    background: #333;
    margin: 0;
}

.profile-dropdown-logout {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 12px 16px !important;
    color: #9399a1 !important;
    font-size: 14px;
    text-decoration: none !important;
    height: auto !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.profile-dropdown-logout:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #FF1744 !important;
}

.profile-dropdown-logout i.material-icons {
    display: inline-block !important;
    vertical-align: middle !important;
    font-size: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    width: 20px !important;
    margin-right: 10px !important;
    position: relative !important;
    top: 0 !important;
}

.profile-dropdown-logout span {
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 20px !important;
    height: auto !important;
}

/* Sidenav starts below the header — follows header hide/show */
.sidenav.sidenav-fixed {
    top: 64px;
    height: calc(100vh - 64px);
    transition: top 0.3s ease, height 0.3s ease;
}

.sidenav.sidenav-fixed.sidenav-expanded {
    top: 0;
    height: 100vh;
}

.sidenav {
    display: flex;
    flex-direction: column;
    border-right-style: solid;
    border-right-color: #333;
    border-right-width: 1px;
    padding-top: 10px;
}

.footer-dark {
    border-top: 1px solid #333;
    background-color: #17161A;
    color: white;
    padding: 50px 0 20px;
    font-size: 14px;
}

/* Replace Materialize grid with clean flexbox inside footer */
.footer-dark .container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.footer-dark .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
    gap: 0;
}

/* Override Materialize .col floats and widths inside footer */
.footer-dark .row > .col {
    float: none !important;
    width: auto !important;
    margin-left: 0 !important;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Company info column — takes more room */
.footer-dark .row > .col.l4 {
    flex: 0 0 26%;
    min-width: 220px;
}

/* Link columns — equal size */
.footer-dark .row > .col.l2 {
    flex: 1 1 0;
    min-width: 140px;
}

.footer-section {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 30px;
}

.footer-section > * {
    flex-shrink: 0;
}

.footer-section h5 {
    display: block !important;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    margin-top: 0;
    white-space: nowrap;
}

.footer-section ul,
.footer-section .footer-contact,
.footer-section .social-icons {
    display: block !important;
    width: 100%;
}

.footer-section ul {
    padding-left: 0;
    margin: 0;
}

.footer-contact li,
.footer-section ul li {
    list-style: none;
    padding: 5px 0;
}

.footer-contact li i,
.social-icons a i {
    margin-right: 10px;
}

.social-icons a {
    display: inline-block;
    margin-right: 12px;
}

.social-icons a i {
    font-size: 22px;
}

.social-icons {
    margin-top: 12px;
}

.footer-bottom-row {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.footer-bottom-links a {
    margin: 0 10px;
}

.footer-dark .material-icons {
    position: relative;
    top: 5px;
}

/* Font Awesome icons */
.fab {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive footer — compact layout on small screens */
@media only screen and (max-width: 992px) {
    .footer-dark {
        padding: 28px 0 16px;
    }

    .footer-dark .container {
        padding: 0 20px;
    }

    /* Switch to wrapping row: logo col full-width, link cols 2x2 grid */
    .footer-dark .row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    /* Company info / logo — full width on top, centered */
    .footer-dark .row > .col.l4 {
        flex: 0 0 100%;
        width: 100% !important;
        padding: 0 16px;
        margin-bottom: 16px;
    }

    /* Link columns — 2 per row */
    .footer-dark .row > .col.l2 {
        flex: 0 0 50%;
        width: 50% !important;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .footer-section {
        align-items: center !important;
        margin-bottom: 16px;
    }

    .footer-section h5 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .footer-section ul {
        text-align: center;
    }

    .footer-section ul li {
        padding: 3px 0;
        font-size: 13px;
    }

    .footer-contact li {
        justify-content: center;
        display: flex;
        align-items: center;
        font-size: 13px;
    }

    .social-icons {
        text-align: center;
    }

    /* Footer logo on mobile — smaller */
    .footer-dark .logo-emblem-footer {
        height: 40px;
        margin: 0 auto 8px;
    }

    /* Bottom row */
    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
        padding-top: 16px;
        margin-top: 8px;
    }

    .footer-bottom-row p {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .footer-bottom-links {
        margin-top: 6px;
        font-size: 12px;
    }

    .footer-bottom-links a {
        margin: 0 6px;
    }
}

.logo-emblem-footer {
    height: 60px;
    margin-right: 10px;
    margin-bottom: 10px;
    display: block;
}

/* ── Authenticated footer: compact layout ── */
.footer-dark.ft-auth {
    padding: 20px 0 14px;
}

.ft-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
}

.ft-auth-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.ft-auth-emblem {
    height: 28px;
    display: none;  /* hidden on desktop/tablet, shown on mobile */
}
.ft-auth-wordmark {
    height: 36px;
    display: block;
    opacity: 0.7;
}

.ft-auth-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12.5px;
    letter-spacing: 0.2px;
}

.ft-auth-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.ft-auth-contact-item .material-icons {
    font-size: 14px !important;
    top: 0 !important;
    color: rgba(255, 255, 255, 0.25);
}

.ft-auth-sep {
    width: 1px;
    height: 12px;
    background: #333;
}

.ft-auth-social {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ft-auth-social a {
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s;
    font-size: 14px;
}
.ft-auth-social a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Auth footer bottom row — tighter */
.ft-auth .footer-bottom-row {
    border-top: 1px solid #2a2a2a;
    padding-top: 14px;
    margin-top: 0;
}
.ft-auth .footer-bottom-row p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
}
.ft-auth .footer-bottom-links {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
}
.ft-auth .footer-bottom-links a {
    color: rgba(255, 255, 255, 0.35) !important;
    margin: 0 6px;
    transition: color 0.2s;
}
.ft-auth .footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Responsive: stack on small screens */
@media only screen and (max-width: 600px) {
    .ft-auth-row {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
    .ft-auth-emblem {
        display: block;
    }
    .ft-auth-wordmark {
        display: none;
    }
    .ft-auth-contact {
        flex-direction: column;
        gap: 6px;
    }
    .ft-auth-sep {
        display: none;
    }
    .ft-auth .footer-bottom-row {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* Override Materialize styles for the breadcrumb */
nav.breadcrumb-container {
  background: none; /* Remove background */
  box-shadow: none; /* Remove shadow */
  -webkit-box-shadow: none; /* For WebKit browsers */
  -moz-box-shadow: none; /* For Mozilla browsers */
}

.breadcrumb-container {
  background-color: #343a40; /* Dark background for the full-width container */
  padding: 10px 0; /* Vertical padding */
}

/* Left-align the breadcrumbs and remove the table display which centers them */
.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0; /* Reset margin */
  background-color: transparent; /* Ensure the breadcrumb has no background */
}

.breadcrumb li {
  display: inline-block; /* Display inline-block for li elements */
}

.breadcrumb a {
  #color: black; /* Make links black */
  color: #9399a1;
  font-weight: bold; /* Make links bold */
  text-decoration: none; /* Remove underline */
  padding: 5px 5px; /* Add padding */
}

.breadcrumb li.active a,
.breadcrumb li.active {
  color: black; /* Make the active (last) breadcrumb black */
  color: #9399a1;
  pointer-events: none; /* The last item is not clickable */
  cursor: default; /* Default cursor for the active item */
}

.breadcrumb li+li:before {
  content: ">";
  padding: 0 0px; /* Space around the separator */
  color: #9399a1;
  #color: black; /* Make the separator black */
}


/* ============================================
   Client Portal – Dark-themed cards & typography
   ============================================ */

.portal-heading {
    color: #e0e0e0;
    font-weight: 300;
}

.portal-section-title {
    color: #b0b0b0;
    font-weight: 400;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.portal-subtext {
    color: #777;
    font-size: 0.95rem;
}

.portal-back-link {
    color: #888 !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.portal-back-link:hover {
    color: #01AEB3 !important;
}

/* Card */
.portal-card {
    background-color: #1E1D22 !important;
    border: 1px solid #2a292e;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.portal-card:hover {
    border-color: #3a393e;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.portal-card .card-content {
    padding: 20px 24px 16px;
}

.portal-card .card-title {
    color: #e0e0e0 !important;
    font-size: 1.2rem !important;
    font-weight: 400;
}

.portal-card-meta {
    color: #777 !important;
    margin-top: 6px;
    font-size: 0.9rem;
}

.portal-card .card-action {
    background-color: transparent !important;
    border-top: 1px solid #2a292e !important;
    padding: 12px 24px;
}

.portal-card .card-action a {
    color: #01AEB3 !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.portal-card .card-action a:hover {
    color: #02cdd2 !important;
}


/* ============================================
   Floating Action Button (FAB)
   ============================================ */

.fab-create {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #01AEB3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 900;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.fab-create:hover {
    background-color: #019fa3;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.fab-create i.material-icons {
    color: #fff;
    font-size: 28px;
    line-height: 1;
}


/* ============================================
   Responsive Layout — Sidenav / Main / Footer
   ============================================ */

/* Desktop (>992px): sidenav is fixed, content offset 300px */
.sidenav-margin {
    margin-left: 300px;
}

/* Mobile/Tablet (<=992px): sidenav becomes overlay, no margin offset */
@media only screen and (max-width: 992px) {
    .sidenav-margin {
        margin-left: 0 !important;
    }

    /*
     * Materialize's sidenav-fixed uses left:0 on >992px.
     * Below 992px Materialize already hides it via transform.
     * We just ensure top:0 so the overlay covers the full screen.
     */
    .sidenav.sidenav-fixed {
        top: 0 !important;
        height: 100vh !important;
        padding-top: 20px;
    }

    /* Materialize overlay background for sidenav */
    .sidenav-overlay {
        z-index: 998;
    }

    /* Header spacing adjustments for mobile */
    .header-inner {
        padding-left: 0;
    }
    .nav-wrapper {
        padding: 0 4px !important;
    }

    /* Ensure FAB doesn't crowd on small screens */
    .fab-create {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .fab-create i.material-icons {
        font-size: 24px;
    }

    /* Main content padding on mobile */
    main {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* Sub-nav tabs: allow horizontal scroll on small screens */
    .sub-nav .tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sub-nav .tabs .tab {
        flex-shrink: 0;
    }

    .sub-nav .tabs .tab a {
        padding: 0 12px;
        font-size: 13px;
    }
}

/* ================================================================
   3D GAME MODE
   Activated by adding .game-3d-mode to <body>.
   Transforms the sidenav into a dark icon-only panel with teal
   glowing icons, hides header + footer, expands content area.
   ================================================================ */

/* ── Sidenav: game-mode skin ── */
@media only screen and (min-width: 993px) {
  body.game-3d-mode .sidenav.sidenav-fixed {
      width: 64px;
      background: linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.0)) !important;
      border-right: none !important;
      z-index: 1001;
      padding-top: 12px;
  }

  /* Icon-only: hide text, center icons */
  body.game-3d-mode .sidenav.sidenav-fixed li a {
      font-size: 0 !important;
      white-space: nowrap;
      padding: 0 !important;
      height: 52px;
      display: flex !important;
      align-items: center;
      justify-content: center;
      color: transparent !important;
  }
  body.game-3d-mode .sidenav.sidenav-fixed li a span,
  body.game-3d-mode .sidenav.sidenav-fixed li a::after {
      display: none;
  }

  /* Icons: teal glow */
  body.game-3d-mode .sidenav.sidenav-fixed li a i.material-icons {
      font-size: 24px !important;
      margin: 0 !important;
      color: rgba(1, 174, 179, 0.55) !important;
      transition: color 0.2s, text-shadow 0.2s;
  }
  body.game-3d-mode .sidenav.sidenav-fixed li a:hover i.material-icons {
      color: #01AEB3 !important;
      text-shadow: 0 0 10px rgba(1, 174, 179, 0.5);
  }

  /* Active item: brighter icon + subtle background */
  body.game-3d-mode .sidenav.sidenav-fixed li.sn-active {
      background: rgba(1, 174, 179, 0.08) !important;
      border-left: 3px solid #01AEB3 !important;
  }
  body.game-3d-mode .sidenav.sidenav-fixed li.sn-active a {
      padding-left: 0 !important;
  }
  body.game-3d-mode .sidenav.sidenav-fixed li.sn-active a i.material-icons {
      color: #01AEB3 !important;
      text-shadow: 0 0 12px rgba(1, 174, 179, 0.6);
  }

  /* Divider */
  body.game-3d-mode .sidenav.sidenav-fixed .sn-divider {
      background: rgba(1, 174, 179, 0.12);
      margin: 6px 14px;
  }

  /* Content margin: always 64px in game mode */
  body.game-3d-mode .sidenav-margin {
      margin-left: 64px !important;
  }
}

/* ── Header: always visible in game mode (override scroll-hide) ── */
body.game-3d-mode > header {
    transform: translateY(0) !important;
    border-bottom: none !important;
}
/* Semi-transparent gradient header — matches footer banner-header style */
body.game-3d-mode > header nav.vanto-navigation-container.dark-palette {
    background-color: transparent !important;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.0)) !important;
}

/* ── Footer: hidden in game mode ── */
body.game-3d-mode > footer,
body.game-3d-mode .footer-container {
    display: none !important;
}

/* ── Body: dark game background ── */
body.game-3d-mode {
    background: #0a0c10 !important;
}
body.game-3d-mode main {
    padding-top: 0;
}

/* ── Global game-mode toolbar (top-right) ── */
.gm-toolbar {
    display: none;
    position: fixed;
    top: 76px;  /* 64px header + 12px gap */
    right: 16px;
    z-index: 1001;
    align-items: stretch;
    height: 48px;
    background: rgba(18, 22, 26, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(1, 174, 179, 0.22);
    border-radius: 6px;
    overflow: hidden;
}
body.game-3d-mode .gm-toolbar {
    display: flex;
}
.gm-tb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    white-space: nowrap;
    border-right: 1px solid rgba(1, 174, 179, 0.18);
}
.gm-tb-item i {
    font-size: 22px;
    color: rgba(1, 174, 179, 0.7);
}
.gm-tb-val {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e0e0e0;
}
.gm-tb-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
    background: none;
    border: none;
    border-left: 1px solid rgba(1, 174, 179, 0.18);
    font-family: inherit;
}
.gm-tb-close:hover {
    color: #FF5252;
    background: rgba(255, 82, 82, 0.1);
}
.gm-tb-close i {
    font-size: 22px;
}
@media only screen and (max-width: 600px) {
    .gm-toolbar { top: 72px; right: 8px; height: 42px; }
    .gm-tb-item { padding: 0 12px; gap: 6px; }
    .gm-tb-val { font-size: 0.92rem; }
    .gm-tb-item i { font-size: 18px; }
    .gm-tb-close { width: 42px; }
}

/* ── Hide page content behind 3D overlay ── */
body.game-3d-mode main .sidenav-margin > *:not(.vd-fs-overlay) {
    visibility: hidden !important;
}
/* Keep the overlay itself visible */
body.game-3d-mode .vd-fs-overlay.active {
    visibility: visible !important;
}

/* ── Hide FAB buttons in game mode ── */
body.game-3d-mode .vd-fab-stack,
body.game-3d-mode .fab-create {
    display: none !important;
}

/* ── Prevent profile dropdown from appearing above overlay ── */
body.game-3d-mode .profile-dropdown {
    display: none !important;
}

/* ── Dev indicator badge ── */
body.game-3d-mode::after {
    content: '3D MODE';
    position: fixed;
    bottom: 8px;
    right: 8px;
    z-index: 99999;
    padding: 3px 8px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #01AEB3;
    background: rgba(1, 174, 179, 0.1);
    border: 1px solid rgba(1, 174, 179, 0.3);
    border-radius: 4px;
    pointer-events: none;
    font-family: monospace;
}

/* ── Mobile: game mode sidenav hidden (no room) ── */
@media only screen and (max-width: 992px) {
  body.game-3d-mode .sidenav.sidenav-fixed {
      transform: translateX(-100%) !important;
  }
  body.game-3d-mode .sidenav-margin {
      margin-left: 0 !important;
  }
}

