/* style.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=block");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}


* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

*, *:before, *:after {
	box-sizing: border-box;
}

:root {
  --dark-grey: #28303a;
  --medium-grey: #636363;
  --light-grey: #b8b8b8;
  --ash: #f4f4f4;
  --primary-color: #ff6f00;
  --secondary-color: #475569;
  --white: white;
  --border: 1px solid var(--light-grey);
  --shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}

body {
  font-family: inherit;
  background-color: var(--white);
  color: var(--dark-grey);
  letter-spacing: -0.4px;
  letter-spacing: -.022em;
  line-height: 1.4705882353;
}

.loader {
  --s: 40px;
  height: calc(var(--s)*0.9);
  width: calc(var(--s)*5);
 --v1:transparent,#000 0.5deg 108deg,#0000 109deg;
 --v2:transparent,#000 0.5deg  36deg,#0000  37deg;
 -webkit-mask:
   conic-gradient(from 54deg  at calc(var(--s)*0.68) calc(var(--s)*0.57),var(--v1)),
   conic-gradient(from 90deg  at calc(var(--s)*0.02) calc(var(--s)*0.35),var(--v2)),
   conic-gradient(from 126deg at calc(var(--s)*0.5)  calc(var(--s)*0.7) ,var(--v1)),
   conic-gradient(from 162deg at calc(var(--s)*0.5)  0                  ,var(--v2));
 -webkit-mask-size: var(--s) var(--s);
 -webkit-mask-composite: xor,destination-over;
         mask-composite: exclude,add;
 -webkit-mask-repeat:repeat-x;
 background:linear-gradient(var(--primary-color) 0 0) left/0% 100% #ddd no-repeat;
 animation: l20 2s infinite linear;
}

@keyframes l20 {
   90%,100% {background-size:100% 100%}
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background-color: transparent;
  cursor: pointer;
  color: inherit;
}

.btn {
  display: block;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 32px;
}

.icon {
  padding: 0.5rem;
  background-color: var(--light-grey);
  border-radius: 10px;
}

.logo {
  margin-right: 1.5rem;
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 2rem;
  height: 90px;
  padding: 1.2rem 3rem;
  display: none;
}

.menu {
  position: relative;
  background: var(--white); 
  
}

.grey-menu {
    background: #f5f5f7;
    
}

.menu-bar li:first-child .dropdown {
  flex-direction: initial;
  min-width: 100%;
}

.menu-bar li:first-child ul:nth-child(1) {
  border-right: var(--border);
}

.menu-bar li:nth-child(n + 2) ul:nth-child(1) {
  border-bottom: var(--border);
}

.menu-bar .dropdown-link-title {
  font-weight: 600;
}

.menu-bar .nav-link {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.6px;
  padding: 0.3rem;
  min-width: 60px;
  margin: 0 0.6rem;
}

.menu-bar .nav-link:hover,
.dropdown-link:hover {
  color: var(--primary-color);
  text-decoration: none;
  transition: all .3s ease;
}
#nav-menu {
  background-color: #fff;
}
.nav-start,
.nav-end,
.menu-bar,
.right-container,
.right-container .search {
  display: flex;
  align-items: center;
}

.dropdown {
  display: flex;
  flex-direction: column;
  min-width: 230px;
  background-color: var(--white);
  border-radius: 10px;
  position: absolute;
    top: 60px;
      z-index: 9988;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.97) translateX(-5px);
  transition: 0.1s ease-in-out;
  box-shadow: var(--shadow);
}

.dropdown.active {
  visibility: visible;
  opacity: 1;
  transform: scale(1) translateX(5px);
}

.dropdown ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.2rem;
  font-size: 0.95rem;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.15rem;
}

.dropdown-link {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-radius: 7px;
  transition: 0.1s ease-in-out;
}

.dropdown-link p {
  font-size: 0.8rem;
  color: var(--medium-grey);
}

.right-container {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.right-container .search {
  position: relative;
}

.right-container img {
  border-radius: 50%;
}

.search input {
  background-color: var(--ash);
  border: none;
  border-radius: 32px;
  padding: 0.7rem;
  padding-left: 2.4rem;
  font-size: 16px;
  width: 100%;
  border: var(--border);
}

.search .bx-sun {
  position: absolute;
  left: 10px;
  top: 50%;
  font-size: 1.3rem;
  transform: translateY(-50%);
  opacity: 0.6;
}
.search .fa-wand-sparkles {
  position: absolute;
  left: 10px;
  top: 50%;
  font-size: 1.3rem;
  transform: translateY(-50%);
  opacity: 0.6;
}
.search input:focus {outline:none;border: 1px solid var(--primary-color); transition: all .3s ease;
}

.search input:focus ~ .bx-sun {color: var(--primary-color); transition: all .3s ease;}
#hamburger {
  display: none;
  padding: 0.1rem;
  margin-left: 1rem;
  font-size: 1.9rem;
}

@media (max-width: 872px) {

  .container {
    padding: 1.2rem;
  }

  .menu {
    display: none;
    position: absolute;
    top: 87px;
    left: 0;
    min-height: 100vh;
    width: 100vw;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
overflow-x: hidden;
overflow-y: hidden;
overflow: hidden;
  }

  .menu-bar li:first-child ul:nth-child(1) {
    border-right: none;
    border-bottom: var(--border);
  }

  .dropdown {
    display: none;
    min-width: 100%;
    border: none !important;
    border-radius: 5px;
    position: static;
    top: 0;
    left: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
  }

  .menu.show,
  .dropdown.active {
    display: block;
  }

  .dropdown ul {
    padding-left: 0.3rem;
  }

  .menu-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    row-gap: 1rem;
    padding: 1rem;
  }

  .menu-bar .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
  }



  .menu-bar li:first-child .dropdown {
    min-width: 100%;
  }

  .menu-bar > li:not(:last-child) {
    padding-bottom: 0.5rem;
    border-bottom: var(--border);
  }
}

@media (max-width: 600px) {
  .right-container {
    display:block!important;
  }
}
@media (max-width: 1122px) {
  .search input, .hidesearch {
    display:block!important;
  }
}
@media (max-width: 872px) {
  .search input, .hidesearch {
    display:block!important;
  }
}
/* --- App Launcher Overlay Styles --- */
.app-launcher-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(210, 210, 210, 0.7);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    display: block; /* Changed to block to allow for natural scrolling flow */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
}
.app-launcher-overlay::-webkit-scrollbar{
    background: transparent;
    visibility: hidden;
}

.app-launcher-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
    pointer-events: auto;    overflow-y: scroll;

}


/* Header for tabs and close button */
.app-launcher-header {
    /* THIS IS THE FIX: Make the header sticky */
    position: sticky;
    top: 0;
    z-index: 10;

    /* Keep your styling */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    
    /* Add padding and a background to separate it from content scrolling underneath */
    padding: 2rem 0;
}

/* The close button (repositioned and restyled) */
.app-launcher-overlay .close-btn {
    position: static;
    background-color: rgba(210, 210, 210, 0.4);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-launcher-overlay .close-btn svg {
    width: 16px;
    height: 16px;
    fill: #495057;
    transition: fill 0.2s ease;
}

.app-launcher-overlay .close-btn:hover {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

.app-launcher-overlay .close-btn:hover svg {
    fill: #fcc209;
}

/* --- Tab Navigation Styles --- */
.launcher-tab-nav {
    position: relative;
    display: inline-flex;
    background-color: rgba(210, 210, 210, 0.4);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 99px;
    padding: 5px;
}
.launcher-tab-button {
    background: none;
    border: none;
    padding: 10px 24px;
    font-size: .89rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    border-radius: 99px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}
.launcher-tab-button.is-active {
color: #ffffff !important; /* Force white color on active state */
        position: relative;
        z-index: 99; /* Ensure text sits above the glider */
        opacity: 1;
      }
.launcher-tab-glider {
    position: absolute;
height: calc(100% - 10px);
    background-color: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 99px;
    z-index: 1;
    transition: all 0.5s ease-in-out; 
}
.launcher-tab-panel {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transform: translateY(10px);
}
.launcher-tab-panel.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateY(0);
}

/* Grid and App Icon Styles */
.app-launcher-grid {
display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    /* max-width: 100%; */
    margin: 0 auto;
    padding-left: 9vw;
    padding-right: 9vw;
    padding-top: 125px;}

/* --- THIS IS THE FIX --- */
/* Individual app icons */
.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #1d1d1f;
    transition: all 0.2s ease;
}
a.app-icon:hover {
  text-decoration: none;

}
a.app-icon:hover img {
    transform: scale(1.04);
  text-decoration: none;

box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;}

.app-icon img {
    transition: all 0.2s ease;
    width: 100px;    object-fit: cover;

    height: 100px;
    border-radius: 28px;box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;}
#add-on-services .app-icon img {
      background-color: #fff;
    width: 100px;
    height: 100px;
    border-radius: 28px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;

}
.app-icon span {
font-size: 13px;
    line-height: 1.3333733333;
    font-weight: 400;
    letter-spacing: -0.01em;    width: 100%;
    text-align: center;
}


/* --- RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .app-launcher-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on tablet */
    }.launcher-tab-glider {
    position: absolute;
height: calc(100%);
    }
}

@media (max-width: 480px) {
    .app-launcher-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    }
}
/* --- Dashboard Overlay Styles --- */
.client-dashboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    background-color: rgba(210, 210, 210, 0.7);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    pointer-events: none;
    box-sizing: border-box;
}
.client-dashboard-overlay.is-visible {
    opacity: 1;    overflow-x: hidden;

    overflow-y: scroll;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
    pointer-events: auto;
}
.client-dashboard-overlay::-webkit-scrollbar {
    background: transparent;
    visibility: hidden;
}

.client-dashboard-close-btn {
    position: sticky;
    top: 0px;
    right: 0rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(210, 210, 210, 0.4);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 100; /* Ensure it's above content */
}
.client-dashboard-close-btn svg {
    width: 16px;
    height: 16px;
    
    fill: #495057;
    transition: fill 0.2s ease;
}
.client-dashboard-close-btn:hover {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}
.client-dashboard-close-btn:hover svg {
    fill: #fcc209;
}

/* --- Dashboard Layout Styles --- */
.client-dashboard-content {
    width: 100%;
    padding-right: 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.client-dashboard-row {
    display: flex;
    gap: 1.5rem;
    align-items: stretch; /* Ensures all items in the row have the same height */
}

/* --- THIS IS THE FIX --- */
.client-dashboard-card, .grid-card {
    position: relative; /* Make the card a positioning context */
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

/* The full-card link */
.card-full-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; /* Sit on top of content but below buttons */
        border-radius: 28px;
 /* Match the card's border-radius */
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.client-dashboard-card {
    background-color: rgba(210, 210, 210, 0.4);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 28px;
    padding: 1rem 1.5rem;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
}

.quick-links-card {
    flex-direction: column;
    align-items: flex-start;
}

/* --- 2x2 Grid Styles --- */
.grid-wrapper {
    flex: 3;
    display: flex;
}
.grid-card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    height: 100%;
}

.grid-card {
    background-color: rgba(210, 210, 210, 0.4);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 28px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}
.card-text-content h4 {
      line-height: 1.1428571429;
    font-weight: 600;
    letter-spacing: -.01em;
}.card-text-content p {
  font-size:15px;
    line-height: 1.3333733333;
    font-weight: 400;
    letter-spacing: -.01em;}

.grid-card .card-icon {
    width: 40px;
    height: 40px;
}
.grid-card .card-text-content h4 {
    font-size: 1rem;      line-height: 1.1428571429;
    font-weight: 600;
    letter-spacing: -.01em;

    margin: 0 0 0.25rem 0;
}
.grid-card .card-text-content p {
    font-size: 0.8rem; line-height: 1.3333733333;
    font-weight: 400;
    letter-spacing: -.01em;
    opacity: 0.8;
    margin: 0;
}
.sub-dashboard-card {
  padding: 0.85rem 1.5rem 0.85rem 1.5rem;
}
.sub-dashboard-card .card-icon {
      width: 30px;
    height: 30px;


}
/* --- Proceed Button Styles --- */
.dashboard-next-page-btn {
    position: relative; /* Changed from absolute */
    z-index: 2; /* Ensure it's clickable above the full-link */
    margin-left: auto; /* Push it to the far right */
    width: 32px;
    height: 32px;
    border-radius: 50%;
        background-color: rgba(181, 181, 181, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1; /* Hidden by default */
    transition: all 0.2s ease-out;
}

.client-dashboard-card:hover .dashboard-next-page-btn,
.grid-card:hover .dashboard-next-page-btn {
    opacity: 1; /* Show on hover */
        background-color: rgba(181, 181, 181, 0.4);

}

.dashboard-next-page-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* --- Marquee Styles --- */
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.marquee-row {
    width: 100%;
    border-radius: 28px;
    overflow-x: hidden; /* Hidden overflow for button control */
    overflow-y: hidden;
    position: relative;
    cursor: default;
}

.marquee-container {
    display: flex;
    border-radius: 16px;
    width: max-content;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 16px;
    padding-top: .1rem;
    padding-bottom: .1rem;
    animation: none;
}

/* --- Marquee Controls (Updated to match Swiper) --- */
.marquee-controls {
    display: flex;
    justify-content: flex-end; /* Align to right */
    align-items: center;
    gap: 12px; /* Match swiper gap */
    padding-top: 20px;
    padding-bottom: 20px;
    padding-right: 9vw; /* Match site layout padding */
}

.marquee-btn {
    width: 40px; /* Match swiper button size */
    height: 40px;
    border-radius: 50%;
    background-color: rgb(232,232,237); /* Match swiper background */
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: rgba(0,0,0,0.56);
}

.marquee-btn:hover {
    background-color: rgba(232,232,237,0.84); /* Match swiper hover */
    transform: scale(1.05);
}

.marquee-btn:active {
    transform: scale(0.95);
    background-color: #dfdfe4;
}

.marquee-btn svg {
    width: 16px; /* Increased icon visibility */
    height: 16px;
    transition: all 0.2s ease;
    fill: currentColor;
}

/* Active State for Speed Buttons */
.marquee-btn.active {
    background-color: #c8c8cd; 
    color:rgba(0,0,0,0.64);
}.marquee-card:hover { transform: scale(1.01); }
.marquee-card {position: relative;
    width: 250px;
    height: 150px;transition: all .25s ease;
    background-color: rgba(0, 0, 0, 0.4);   
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 1.2rem;
    font-weight: 600;
        box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;

}

.marquee-card-title-container {
  width: 100%;
      display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;

}
.marquee-promo-content {
    letter-spacing: -0.4px;
  letter-spacing: -.022em;
  line-height: 1.4705882353;
font-size:13px;
font-weight:400;
}
.marquee-card-title-container {
  font-size:17px
}

/* --- Floating Navigation Bar Styles --- */

/* Main container for the floating bar */
.floating-nav-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
opacity: 1;
    visibility: visible;    transform: translateX(-50%) translateY(20px);
    transition: all 0.4s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.75rem; /* This creates the space */
}

.floating-nav-container.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* The navigation bar itself */
.floating-nav {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(210, 210, 210, 0.7);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 99px;
    padding: 5px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* Style for the logo */
.floating-nav-logo {
    height: 34px;
    width: 34px;
    border-radius: 50%;
    transition: box-shadow 0.3s ease-in-out;
}

.floating-nav-logo:hover {
    box-shadow: 0 0 15px rgba(252, 194, 9, 0.7);
    cursor: pointer;
}

/* Wrapper for the links */
.floating-nav-links {
    position: relative;
    display: inline-flex;
    align-items: center;
    /* Add Scroll Snap */
    scroll-snap-type: x mandatory;
}
.floating-nav-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}
/* Individual navigation links/buttons */
.floating-nav-button {
    background: none;
    border: none;
    padding: 9px 20px;
    font-size: .89rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    border-radius: 99px;
    position: relative;
    z-index: 2;
    transition: color 0.5s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* Prevent text from wrapping */
    scroll-snap-align: center;
}

/* Text color hover effects */
.floating-nav-button.is-active {
    color: #ffffff;text-decoration: none;
}
.floating-nav-links:hover .floating-nav-button.is-active {
    color: #495057;
}.floating-nav-links .floating-nav-button.is-active:hover {
    color: #fff;
}

.floating-nav-links .floating-nav-button:hover {
    color: #ffffff;text-decoration: none;
}
.floating-nav-links:not(:hover) .floating-nav-button.is-active {
    color: #ffffff;
}


/* The animated "glider" element */
.floating-nav-glider {
    position: absolute;
    top: 0; /* Adjusted to align with the new parent */
    height: 100%;
    background-color: #ff6f00b3;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 99px;
    z-index: 1;
    transition: all 0.5s ease-in-out; 
}

/* --- Login Button Styles --- */
.floating-nav-login-btn {
    padding: 9px 20px;        flex-shrink: 0; /* Prevent the login button from shrinking */

    font-size: .89rem;
    font-weight: 500;
    background-color: rgba(210, 210, 210, 0.7);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 99px;
}
.floating-nav-login-btn:hover {
    background-color: #ee893a;
    color: white;text-decoration: none;
}


/* --- Responsive Styles for Paddles and Scrolling --- */
.floating-nav-paddles {
    display: none; /* Hidden by default */
}

.nav-paddle {
  display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 10px;
}

.nav-paddle svg {
    padding-top:2.5px;
    width: 30px; /* Adjusted for new SVG */
    height: 30px; /* Adjusted for new SVG */
    fill: #495057;
}

.nav-paddle:disabled svg {
    opacity: 0.3;
}
/* 1. Base State: Set up smooth transitions */
.floating-nav-links, 
.nav-paddle {
    /* Set a max-width large enough to fit your content (e.g. 1000px).
       This allows the browser to animate FROM a number TO 0. */
    max-width: 1000px; 
    opacity: 1;
    
    /* Prevent text from wrapping/stacking as width shrinks */
    white-space: nowrap; 
    
    /* Smooth Apple-like easing for collapsing */
    transition: 
        max-width 0.6s cubic-bezier(0.25, 1, 0.5, 1), 
        opacity 0.4s ease, 
        margin 0.4s ease, 
        padding 0.4s ease;
}

/* 2. Hidden State: Collapse smoothly */
.floating-nav-container.nav-items-hidden .floating-nav-links,
.floating-nav-container.nav-items-hidden .nav-paddle {
    /* Animate to 0 */
    max-width: 0;
    opacity: 0;
    
    /* Remove spacing so they don't take up room */
    margin: 0 !important;
    padding: 0 !important;
    
    pointer-events: none;
}

  

@media (max-width: 920px) {
  .nav-paddle {
        display: flex; 
    }
    /* THIS IS THE FIX: Combine into one pill */
    .floating-nav-container {
        background-color: rgba(210, 210, 210, 0.7);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        border-radius: 99px;
        padding: 5px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        gap: 0;
        width: 95vw;
        max-width: 500px;
    }
    .floating-nav {
        background-color: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none;
        padding: 0;
        flex-grow: 1; /* Allow the nav to take up available space */
        flex-shrink: 1; /* Allow the nav to shrink */
        min-width: 0; /* THIS IS THE FIX */
    }
    .floating-nav-login-btn {
        background-color: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none;
        flex-shrink: 0; /* Prevent the login button from shrinking */
    }
   
            .floating-nav-container.nav-items-hidden     .floating-nav-login-btn {
    padding: 9px 20px;        flex-shrink: 0; /* Prevent the login button from shrinking */

    font-size: .89rem;
    font-weight: 500;
    background-color: rgba(210, 210, 210, 0.7);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 99px;
            }
           .floating-nav-container.nav-items-hidden      .floating-nav-login-btn:hover {
    background-color: #ee893a;
    color: white;text-decoration: none;
}

        .floating-nav-container.nav-items-hidden {
                  background-color: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
              position: fixed;
              box-shadow: none;
              width: unset;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
opacity: 1;
    visibility: visible;    transform: translateX(-50%) translateY(20px);
    transition: all 0.4s ease-in-out;
    display: flex;
    align-items: center;
    gap: 0.75rem; /* This creates the space */

        }
    .floating-nav-container.nav-items-hidden .floating-nav {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(210, 210, 210, 0.7);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 99px;
    padding: 5px;flex-grow: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.floating-nav-container.is-visible.nav-items-hidden {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
    .floating-nav-links {
        overflow-x: scroll;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
        -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
        mask-image: linear-gradient(to right, black 90%, transparent 100%);
    }
    .floating-nav-links::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome/Safari */
    }
    .floating-nav-links.scrolling-middle {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    }
    .floating-nav-links.scrolling-end {
        -webkit-mask-image: linear-gradient(to left, black 90%, transparent 100%);
        mask-image: linear-gradient(to left, black 90%, transparent 100%);
    }
    .floating-nav-paddles {
        display: flex; /* Show paddles on smaller screens */
    }


}


/* --- NEW: Nav Action Form Styles --- */
.nav-action-form {
    display: flex;
    align-items: center;
    background-color: var(--ash);
    border-radius: 32px;
    padding: 0.25rem;
    border: 1px solid var(--border);
    position: relative;
}

.nav-action-input {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    width: 150px; /* Initial width */
    transition: all 0.3s ease-in-out;
}
.nav-action-input:focus {
    outline: none;
    width: 200px; /* Expand on focus */
}

.nav-action-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px; /* Default width for "Book" button */
    height: 32px;
    border-radius: 32px; /* Pill shape */
    background-color: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

/* When the form has text, shrink the button to an icon */
.nav-action-form.has-text .nav-action-btn {
    width: 32px; /* Width of the icon button */
    border-radius: 50%;
}

/* Styles for the icons and text inside the button */
.nav-action-btn .send-icon,
.nav-action-btn .book-text {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.book-text {
    font-weight: 500;
    opacity: 1;
    transform: scale(1);
}

.send-icon {
    width: 18px;
    height: 18px;
    fill: white;
    opacity: 0;
    transform: scale(0.5);
}

/* Animation logic */
.nav-action-form.has-text .book-text {
    opacity: 0;
    transform: scale(0.5);
}
.nav-action-form.has-text .send-icon {
    opacity: 1;
    transform: scale(1);
}


/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .client-dashboard-row {
        flex-direction: column;
    }
    .grid-card-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
    }
/* --- THIS IS THE FIX --- */
    .grid-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .grid-card .card-text-content {
        /* This makes the text content take up all available space */
        flex-grow: 1;
    }
    .grid-card .dashboard-next-page-btn {
        /* This pushes the button to the right edge of the card */
        align-self: flex-end;
    }
  }

/* Base Styles for Paddles (Hidden by default) */
.app-launcher-paddles {
    display: none;
    align-items: center;
}

/* --- Responsive App Launcher (Matches Floating Nav) --- */
@media (max-width: 768px) {
    /* 1. Transform the Header into the main "Pill" Container */
    .app-launcher-header {
        background-color: rgba(210, 210, 210, 0.7);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        border-radius: 99px;
        padding: 5px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        
        /* Size & Positioning */
        width: 95vw;
        max-width: 500px;
        margin: 0 auto;
        /* Sticky positioning adjustment */
        top: 20px;
        
        /* Ensure proper layout */
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0; /* Remove default gap */
        padding: 5px; /* Ensure padding matches floating nav */
    }
/* Target the nav paddles specifically in this header */
    .app-launcher-header .nav-paddle {
        display: flex; /* Force show */
        flex-shrink: 0;
        z-index: 10;
        padding: 0 8px; /* Adjust touch target */
    }
    /* 2. Make the Tab Nav transparent, flexible, and scrollable */
    .launcher-tab-nav {
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        border-radius: 0;
        flex-grow: 1;
        width: auto; 
        margin: 0 5px; /* Slight gap from paddles */
        
        /* Layout */
        display: flex;
        align-items: center;
        flex-grow: 1;
        flex-shrink: 1;
        min-width: 0; /* Critical for scrolling */
        
        /* Scrolling Behavior */
        overflow-x: scroll;
        scrollbar-width: none; /* Firefox */
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;

        /* Fade Effect */
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
    }
    
    /* Scroll states for mask (handled by JS class toggling ideally, but this is a safe default) */
    .launcher-tab-nav.scrolling-middle {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    }
    .launcher-tab-nav.scrolling-end {
        -webkit-mask-image: linear-gradient(to left, black 85%, transparent 100%);
    }

    .launcher-tab-nav::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    /* 3. Fix Button Padding/Sizing to match Floating Nav */
    .launcher-tab-button {
        flex-shrink: 0;
        white-space: nowrap;
    padding: 11px 20px;
    font-size: .89rem;
    scroll-snap-align: center;
      }

    /* 4. Show Paddles */
    .app-launcher-paddles {
        display: none
    }

    /* 5. Style the Close Button to fit */
    .app-launcher-overlay .close-btn {
        box-shadow: none !important;
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        margin-left: 5px;
    }
}
