html, body {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
}
#content_container {
    position: relative;
    min-width: 500px;
    width: 70%;
    height: 70%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative; /* To position footer */
}

#form_container {
    width: 100%;
    height: 100%;
    background-color: #FFF;
    box-shadow: 0 0 50px -20px #000;
    border-radius: 2%;

    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    background-color: #FFF;
    box-shadow: 0 0 50px -20px #000;
    border-radius: 2%;
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Hide horizontal scrollbar if not needed */
    padding-bottom: 20px; /* Add padding to the bottom for spacing */
}

#form_header_container {
    width: 100%;
    height: 5%;

    display: flex;
    justify-content: center;
    align-items: center;
    float: left;

    padding: 20px;
    padding-bottom: 30px;
    padding-top: 30px;

    border-bottom: 1px solid transparent;
    border-image: -webkit-linear-gradient(45deg, #00bcd4, #3f51b5, #673ab7, #9c27b0);
    background: transparent;
}

#form_header {
    display: inline-block;
    font-size: 24px;
    font-family: Montserrat;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0px;
    padding-top: 25px;
    margin-top: 50px;
    margin-bottom: 50px;
}

#form_content_container {
    width: 100%;
    

    display: flex;
    justify-content: center;
    align-items: center;

    margin-top: 25px;
    margin-bottom: 25px;

}

#form_content_inner_container {
    width: 75%;
    height: 100%;
}

input {
    width: 100%;
    height: 40px;

    padding-left: 10px;
    margin-bottom: 20px;

    background: rgb(232, 240, 254);
    font-family: Montserrat;
    font-weight: 500;
    color: #000 !important;
    font-size: 12px;

    border-bottom: 3px solid transparent;
    border-radius: 0% 0% 0% 0%;
    border-image: -webkit-linear-gradient(25deg, #DF59F8, #3894ff, #0c0c98, #3894ff, #DF59F8) 1;
}

/* Adjust the placeholder color */
input::placeholder {
    color: rgb(116, 116, 116);
    font-family: Montserrat;
}

body {
    margin: auto;
    font-family: Montserrat;
    overflow: auto;
    background: linear-gradient(315deg, #3894ff 3%, #077bff 38%, #3894ff 68%, #0378ff 98%);
    animation: gradient 45s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
}

@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.wave {
    background: rgb(255 255 255 / 25%);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 8em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.95;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.95;
}

.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.95;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 12px;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-error {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
    font-size: 12px;
}

@keyframes wave {
    2% {
        transform: translateX(1);
    }

    25% {
        transform: translateX(-25%);
    }

    50% {
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(1);
    }
}

#title {
    color: #FFF;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
}

#options_container {
    display: flex;  /* Set display to flex */
    justify-content: center;
    gap: 20px; /* Add gap between items */
    align-items: center;
}

/* primary button styling */
.btn-lg {
    font-family: Montserrat;
    background-color: #3894ff;
    color: #FFF;
    border: 1.0px solid lightgray;
    width: 200px;
    margin-top: 25px;
}

.btn-lg:hover {
    background-color: #0c0c98;
    transition: background-color 0.5s ease; /* Smooth transition effect */
}

/* secondary button styling */
.btn.btn-default.btn-lg {
    font-family: Montserrat;
    border: 1.0px solid lightgray;
    width: 200px;
    margin-top: 25px;
}

#logo_container {
    position: relative; /* Ensure the logo is positioned relative to this container */
    z-index: 1; /* Ensure content is above the overlay */
    display: flex;
    align-items: center;
    justify-content: center;
}

#logo {
    max-width: 30%; /* Limit the image width to its container */
    max-height: 30%; /* Limit the image height to its container */
    margin: 5px; /* Add a margin of 5px to all sides */
}

#slogan {
    font-family: Montserrat;
    font-size: 14px;
    color: #FFF;
    font-weight: 500;
    text-align: center;
    margin-bottom: 100px;
    letter-spacing: -0.5px;
}

#title_container {
    position: relative; /* Ensure the overlay is positioned relative to this container */
    z-index: 1; /* Ensure content is above the overlay */
}

/* Sign up button styling */
#primary_option {
    position: relative;
}

#primary_option .btn-lg {
    position: relative;
}

#primary_option .ribbon {
    position: absolute;
    bottom: -100%;
    right: 0%;
    background-color: transparent;
    color: #FFF;
    padding: 4px 8px;
    border-radius: 0px 5px 5px 0px;
    border-color: lightgray;
    font-size: 12px;
    font-weight: 500;
    transform: rotate(0deg);
    z-index: -1;
    text-align: end;
}

#form_header {
    margin-top: 50px;
}

.logout-button-top {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000; /* Ensures the button is above other elements */
    padding: 5px 10px;
    background-color: #FFF;
    color: gray;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

/* Sidebar container */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px; /* Adjust the width as needed */
    height: 100vh;
    background-color: #ffffff; /* Sidebar background */
    box-shadow: 4px 0 7.5px rgba(0, 0, 0, 0.3); /* Subtle shadow on the right */
    padding-top: 20px;
    padding-bottom: 20px;
    z-index: 1000; /* Ensure it stays above content */
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 2px solid #d2d2d2; /* Optional border for visual separation */
}

@media (max-width: 1100px) {
    #sidebar {
        transform: translateX(-100%); /* Hide sidebar by default */
        transition: transform 0.3s ease;
    }

    #sidebar.active {
        transform: translateX(0); /* Show sidebar when active */
    }

    #content_container {
        margin-left: 0; /* No sidebar margin */
        width: 100%; /* Use full width for content */
    }
}

/* Styling for the logo within the sidebar */
#sidebar .netice-logo-menu {
    max-width: 150px; /* Logo width */
    margin-bottom: 50px; /* Space below the logo */
    cursor: pointer;
}

/* Navigation menu */
#nav-menu {
    margin-top: 50px;
    width: 100%;
}

#nav-menu ul {
    list-style-type: none;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}

#nav-menu ul li {
    margin-left: 0; /* Remove margins */
    margin-right: 0; /* Remove margins */
    padding-left: 20px;
}

#nav-menu ul li.external a {
    font-size: 90%;
}

#nav-menu ul li.external a {
    padding: 6px 15px !important;
}

#nav-menu ul li.external a:hover {
    color: #007bff;
    background-color: none;
}

/* Ensure menu items have icons aligned before the text */
#nav-menu ul li a {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
    text-decoration: none;
    color: #007bff; /* Link color */
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 0px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ensure active menu item is properly highlighted */
#nav-menu ul li.active a {
    background-color: #007bff; /* Highlight color */
    color: #ffffff; /* Text color */
    width: 100%; /* Ensure full width */
}

/* Hover effect for menu items */
#nav-menu ul li a:hover {
    background-color: #007bff; /* Highlight color */
    color: #ffffff !important; /* Text color when hovered */
}

/* Style for the SVG icons */
#nav-menu ul li a svg {
    width: 18px;  /* Set a fixed size for consistency */
    height: 18px;
    flex-shrink: 0; /* Prevents resizing */
    stroke: #007bff;
    fill: none;
    transition: stroke 0.3s ease;
}

/* Change SVG to white on hover & when active */
#nav-menu ul li a:hover svg,
#nav-menu ul li.active a svg {
    stroke: white !important;
}

#nav-menu.section-divider {
    border: 0;
    height: 1px;
    background-color: rgb(242, 242, 242);
    width: 90%;
    margin: 0 auto;
}

.netice-logo-menu {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 2; /* Ensures the button is above other elements */
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

/* Styling for hover effect */
.logout-button:hover {
    background-color: lightgray;
}

#google-signin-button {
    margin-top: 25px;
}

/* Style for the divider */
.divider {
    display: flex; /* Use flexbox to align the text */
    align-items: center; /* Center align items vertically */
    text-align: center; /* Center align text */
    width: 100%; /* Adjust width as needed */
    margin: 15px 0; /* Adjust margin as needed */
}

.divider::before,
.divider::after {
    content: '';
    flex: 1; /* Flex to stretch */
    border-top: 1px solid #ecebeb; /* Light gray border */
}

.divider::before {
    margin-right: 10px; /* Space between line and text */
}

.divider::after {
    margin-left: 10px; /* Space between line and text */
}

.divider span {
    padding: 0 10px; /* Padding around the text */
    color: #6c757d; /* Text color (optional) */
    font-weight: 300; /* Text weight (optional) */
}

/* Scrollbars */
/* Webkit-based browsers (Chrome, Safari) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1; 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Scrollbar track for Firefox */
body {
    scrollbar-color: #c1c1c1 #f1f1f1;
    scrollbar-width: thin;
}

.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 4px solid #3894ff;
    border-radius: 50%;
    border-top-color: #80d3ff;
    animation: spin 1s ease-in-out infinite;
    margin-top: 5px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#main-button:hover, #understandButton:hover {
    color: white;
    text-decoration: none;
}

#button_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#button_container button {
    width: 100%;
    margin-top: 10px;
}

/* Default: Show sidebar logout, hide top logout */
#logoutButtonTop {
    display: none;
  }
  
  #logoutButtonSidebar {
    display: block;
  }
  
  @media (max-width: 1100px) {
    /* On smaller screens: hide sidebar logout (since sidebar is hidden) and show top logout */
    #logoutButtonTop {
      display: block;
    }
  
    #logoutButtonSidebar {
      display: none;
    }
  }

  .tooltip {
    position: relative !important; /* Ensure correct positioning */
    display: inline-block !important; /* Ensure visibility */
    cursor: pointer;
    opacity: 1 !important;
    vertical-align: sub;
    margin-left: 2px;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 350px;
    background-color: #faf5f5;
    color: #000;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    position: absolute !important; /* Force absolute positioning */
    z-index: 1000;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    font-weight: 500;
    white-space: normal;
    line-height: 1.4;
    opacity: 0; /* Ensure it starts hidden */
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
    left: calc(50% - 100px); /* Shift 150px left to ensure it remains visible and within the container */
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

/* Ensure tooltip is shown reliably */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

#server-info {
    position: fixed;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    text-align: left;
    justify-content: space-between;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    z-index: 1001;
    min-width: 250px;
}

#server-info img {
    height: 25px;
    width: auto;
}

#server-info h5, #server-info p {
    color: white;
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
}

.server-dropdown-icon {
    width: 12px;
    height: 12px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    transition: transform 0.2s;
    margin-left: auto;
}

.server-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 5px 0;
    display: none;
    width: 160px;
    min-width: 250px;
    text-align: left;
}

.server-dropdown-menu.active {
    display: block;
}

.server-dropdown-menu .option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    color: white;
    font-size: 14px;
}

.server-dropdown-menu .option:hover {
    background: rgba(255, 255, 255, 0.2);
}

.server-dropdown-menu img {
    height: 20px;
    width: auto;
}

/* Help text */
.help-text {
    text-align: center;
    justify-content: left;
    font-size: 16px;
    font-weight: 500;
    color: gray; 
    margin-bottom: 10px;
}

/* Button Styling */
.book-a-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white; /* White button */
    color: black; /* Black text for contrast */
    font-size: 16px;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.2s ease;
    width: 80%;
    max-width: 240px;
    text-align: center;
    margin: 0 auto;
    gap: 10px; /* Space between emoji and text */
    border: 1px;
    border-color: rgb(198, 198, 198);
}

.book-a-call-btn:hover {
    background: rgb(230, 230, 230); /* Light grey on hover */
    transform: scale(1.05);
}
