.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* z-index: 1000; */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff; /* White background */
    color: #555555; /* Dark gray text */
    padding: 10px 20px; /* Increased padding for a larger header */
    border-bottom: 1px solid #eaeaea; /* Subtle bottom border */
    transition: padding 0.4s ease;

    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+/Edge */
    user-select: none;         /* Standard syntax (Chrome, Edge, Opera) */
    -webkit-user-drag: none;

    z-index: 1000;
}

.loadlock {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.vbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    color: #555555;
    padding: 10px 20px;
    border-top: 1px solid #eaeaea;
    
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;

    z-index: 1000;
    border: 1px solid #eaeaea;
}

.navbar-logo-container {
    display: flex;
    align-items: center;
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: right;
    gap: 15px; /* Space between icon and logo */
    z-index: 999;
}

.navbar-left { align-items: left; transform-origin: left; }
.navbar-right { align-items: right; transform-origin: right; }

.navbar-left svg,
.navbar-right svg {
    height: 50px;
    width: auto;
    display: flex;
    /* align-items: center; */
    transition: height 0.4s ease, filter 0.4s ease;
    cursor: pointer;
}

.navbar-logo-container img,
.navbar-product-container img {
    height: 50px;
    width: auto;
    display: flex;
    align-items: center;
    /* transform-origin: left center; */
    transition: height 0.4s ease, filter 0.4s ease;
    cursor: pointer;
    /* mix-blend-mode: multiply; */
    /* transition: filter 0.2s ease; */
}

.navbar-logo-container img:hover,
.navbar-product-container img:hover,
.navbar-left svg:hover,
.navbar-right svg:hover {
    filter: grayscale(100%) contrast(300%);
}

.navbar-logo-container img { transform-origin: left center; }
.navbar-product-container img { transform-origin: right center; }

html body:has(.sidebar:not(.active), .accountBar:not(.active)) .navbar.shrunk:not(:hover) {
    padding: 5px 50px; /* Reduced padding for a smaller header */
}

html body:has(.sidebar:not(.active), .accountBar:not(.active)) .navbar.shrunk:not(:hover) :is(.navbar-logo-container img, .navbar-product-container img, .navbar-left svg, .navbar-right svg) {
    height: 30px; /* Reduced logo size */
}

body {
    margin: 0;
    padding: 0;
    padding-top: 70px;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4; /* Light gray background for the page */
    color: #555555; /* Dark gray text for better readability */
}

.content {
    max-width: 90vw;
    margin: 0 auto;
    padding: 20px;
    /* height: 2000px; Increased height to allow scrolling */

    background-color: #ffffff; /* White background for content */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); Subtle shadow for depth */
    border-radius: 5px; /* Rounded corners for a modern look */
    margin-bottom: 45px;
}

html {
    scrollbar-color: #555555 #f4f4f4;
    overflow-y: scroll;
}

.sidebar {
    position: absolute;
    top: 100%;                   /* Starts directly underneath the top bar */
    left: 0;
    width: 250px;
    height: calc(100vh - 100%);  /* Spans remaining viewport height */
    background-color: #f4f4f4;
    overflow-y: auto;
    /* padding-top: 15px; */
    box-sizing: border-box;
    /* padding: 10px; */
    text-align: center;
    border-radius: 0px 12px 12px 0px;

    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0);

    z-index: 998;
    line-height: 1.8;
    border: 1px solid #eaeaea;

    flex-direction: column;
    margin: 0;
    display: flex;
}

.sidebar dl,
.accountbar dl {
    margin: 0 !important;
    padding: 16px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* Forces items to stack from the left */
    box-sizing: border-box;
}

.sidebar dt:first-of-type,
.accountBar dt:first-of-type {
    margin-top: 0; /* Remove the leaking margin */
    padding-top: 28px !important;
    align-items: flex-start;
}

.accountBar dt:last-of-type {
    padding-bottom: 16px !important;
}

.sidebar dt,
.accountbar dt,
.sidebar dd,
.accountbar dd {
    margin: 0 !important; /* Removes default browser indentation */
    padding: 10px 24px !important; /* Gives consistent spacing on the left */
    width: 100% !important;
    text-align: center !important; /* Forces text to the left side */
    box-sizing: border-box;
}

.sidebar.active {
    transform: translateX(0);
    /* box-shadow: 4px 0 15px rgba(0, 0, 0, 0.25); */
}

.accountBar {
    position: absolute;
    top: 100% !important;           /* Attaches directly to the bottom edge of the navbar */
    right: 0;             /* Aligns with the right edge of the navbar */
    
    width: fit-content;
    min-width: 200px;
    max-width: 320px;     
    height: auto;
    max-height: 41px;
    line-height: 1.8;
    
    /* transform: translateY(-100%); */
    /* transition: transform max-height 0.75s cubic-bezier(0.4, 0, 0.2, 1); */
    
    background-color: #f4f4f4;
    
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 0 0 0 12px; /* Rounded bottom-left corner */
    /* padding: 20px; */
    z-index: 998;

    overflow-y: hidden;
    max-height: 0; /* Hidden by default */

    /* padding: 0 20px; */
    /* Pull padding out of top/bottom so it can collapse to 0 */

    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 0px;
    margin: 0;
}

.accountBar.active {
    /* transform: translateY(0%); */
    max-height: 500px;
    /* padding: 10px 25px; */
    border: 1px solid #eaeaea;
}

.license {
    color:#707070;
    transition: color 0.3s linear;
}

.license:hover {
    color: #343434;
    cursor: pointer;
}

#returnLicense {
    display: inline-block;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out; 
    transform: translateY(0);
    opacity: 1;
}

#returnLicense.inactive {
    transform: translateY(100px); 
    opacity: 0;                   
    pointer-events: none;    
}

.fast-line {
    display: block; /* Forces each label onto its own new line */
    opacity: 0;
    animation: fastFadeIn 0.15s ease-out forwards;
    animation-delay: calc(var(--i) * 0.015s);
}

@keyframes fastFadeIn {
    to { opacity: 1; }
}