:root {    
	--brand-border: #DDE0E4;
	--brand-primary: rgb(64 163 233);
	--nav-active: #51B4FB;
	--nav-inactive: #555E68;
	--gray-bg: rgba(250, 250, 250, 0.8);
	--bg-highlight: #F0F9FF;
}


/* Custom styles - extend as needed */
* {
  transition: opacity 0.2s ease;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #111827;
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}


/* INPUT FIELD TREATMENT */

input::placeholder,
select.input::placeholder,
textarea.input::placeholder {
  color: #DDDDDD;
}



/* The input wrapper box */
.input-wrapper {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  height: 3rem;
  background: white;
/* border: 1px solid var(--brand-border); */
    /* border-radius: 0.75rem; */
  transition: background 0.2s, border-color 0.2s;
}

.input-wrapper img,
.input-wrapper iconify-icon,
.input-wrapper svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.input-wrapper--textarea {
  height: auto;
  align-items: flex-start;
  padding: 0.75rem;
}

/* Kill native focus styles on inputs inside wrappers */
.input-wrapper .input:focus,
.input-wrapper .input:focus-visible {
  box-shadow: none;
  border-color: transparent;
  outline: none;
}

/* Autofill: let wrapper background show through */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset;
  box-shadow: 0 0 0px 1000px transparent inset;
  -webkit-text-fill-color: #161A1D;
  transition: background-color 99999s ease-in-out 0s;
}

/* Focus state lives on the wrapper */
.input-wrapper:focus-within {
  border-color: var(--brand-primary);
  background: var(--bg-highlight);
}

/* Field group (the outer div containing label + input) */
.input-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Labels */
.input-field-label,
.input-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #161A1D;
  margin-bottom: 0.25rem;
}

.input-field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* The actual input/select/textarea element */
.input {
  width: 100%;
  height: 100%;
  background: transparent;
  font-size: 1rem;
  outline: none;
  border: none;
  color: #161A1D;
}

.input-wrapper .input {

    border: 1px solid var(--brand-border);
    padding: 0 10px;
    border-radius: 10px;
}

select.input {
  appearance: none;
  cursor: pointer;
  padding:10px;
}

textarea.input {
  resize: vertical;
  padding: 0.5rem 0;
}

/* Form section layout */
.form-section {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

  /* -- Input icon prefix -- */
  .input-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
  }

  /* -- Helper text -- */
  .input-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    margin-top: 0.25rem;
  }

  .input-hint img {
    width: 0.75rem;
    height: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
  }

  .input-hint-text {
    font-size: 0.6875rem;
    color: var(--brand-muted);
    margin: 0;
  }
  
.form-intro-text {
  font-size: 0.875rem;
  color: #555E68;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 36rem;
}

@media (min-width: 1024px) {
  .form-intro-text { font-size: 1rem; }
}  

    /* -- Name grid (two columns) -- */
  .name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

/* END INPUT FIELD TREATMENT */

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tap-highlight-none {
  -webkit-tap-highlight-color: transparent;
}

.text-balance {
  text-wrap: balance;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.bg-brand-primary {
    --tw-bg-opacity: 1;
    background-color: rgb(81 180 251 / var(--tw-bg-opacity, 1));
}

#toast {
    position: fixed;
    top: -20px;
    z-index: 120;
    background: #000;
    color: #fff;
    width: 80%;
    padding: 10px 15px;
    margin: auto 10%;
    display: none;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 1em;
    transition: top 0.5s ease;
    opacity: 0.9;
}

#toast.visible {
    top: 60px;
}

.ui-autocomplete {
	transition:none	
}

.bottom_buffer {
	height:60px;	
}

.selected_icon {
	color:green;	
}

.selected_icon.faded {
	color:#efefef;	
}

#waiting_mask {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    text-align: center;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    background-image: url(ajax-loader.gif);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    z-index: 200;
}

.glass-tab-active {
	border:1px solid 	#ccc;
	font-weight:bold;
	background:#fafafa;
}

/* Custom components */
.error-message {
  display: flex;
  align-items: center;
  border-radius: 10px;
  color: rgb(162 40 40);
  font-size: 12px;
  border: 1px solid rgb(162 40 40);
  box-shadow: 0 0 0 1px rgb(162 40 40);
  background: rgb(254 242 242);
  padding: 0.5rem 0.75rem;
  margin-top:3px;
}

label iconify-icon {
	color:#55bcee;	
}


 /* -- Login: Main Container -- */
  .login-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
  }
 
  @media (min-width: 768px) { .login-main { padding: 3rem 1.5rem; } }
  @media (min-width: 1024px) { .login-main { padding: 4rem 1.5rem; } }
 
  .login-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
 
  @media (min-width: 1024px) {
    .login-layout {
      flex-direction: row;
      align-items: flex-start;
      gap: 5rem;
    }
  }
 
  /* -- Left: Branding -- */
  .login-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
 
  @media (min-width: 1024px) {
    .login-branding {
      align-items: flex-start;
      width: 50%;
      padding-top: 3rem;
    }
  }
 
  .login-logo-box {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  }
 
  .login-logo-box img { width: 3.5rem; height: 3.5rem; }
 
  .login-hero-text {
    text-align: center;
    margin-bottom: 2.5rem;
  }
 
  @media (min-width: 1024px) { .login-hero-text { text-align: left; } }
 
  .login-hero-headline {
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin: 0 0 0.25rem;
  }
 
  @media (min-width: 768px) { .login-hero-headline { font-size: 2.5rem; } }
 
  .login-hero-subline {
    font-size: 1.5rem;
    color: #51B4FB;
    font-weight: 700;
    font-style: italic;
    margin: 0 0 1rem;
  }
 
  @media (min-width: 768px) { .login-hero-subline { font-size: 2rem; } }
 
  .login-hero-domain {
    font-size: 0.75rem;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    color: #555E68;
    font-weight: 500;
    margin: 0;
  }
 
  /* -- Value Props (desktop only) -- */
  .login-value-props {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
  }
 
  @media (min-width: 1024px) { .login-value-props { display: flex; } }
 
  .login-value-prop {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }
 
  .login-value-prop-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(81, 180, 251, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #51B4FB;
  }
 
  .login-value-prop-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
  }
 
  .login-value-prop-desc {
    color: #555E68;
    margin: 0;
  }
 
  /* -- Right: Auth Form -- */
  .login-form-col {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
 
  @media (min-width: 1024px) {
    .login-form-col {
      margin: 0;
      width: 50%;
      max-width: none;
    }
  }
 
  .login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
 

 

 
  .login-forgot-btn {
    font-size: 0.75rem;
    font-weight: 500;
    color: #51B4FB;
    background: none;
    border: none;
    cursor: pointer;
  }
  .login-forgot-btn:hover { text-decoration: underline; }
 

 
  
 
  .login-submit-btn {
    width: 100%;
    height: 3.5rem;
    background: #51B4FB;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(81, 180, 251, 0.2);
    cursor: pointer;
    transition: all 0.2s;
  }
 
  .login-submit-btn:hover { background: #40a3e9; }
  .login-submit-btn:active { transform: scale(0.98); }
 
  /* -- Divider -- */
  .login-divider {
    position: relative;
    margin: 2.5rem 0;
  }
 
  .login-divider-line {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
  }
 
  .login-divider-line div {
    width: 100%;
    border-top: 1px solid #DDE0E4;
  }
 
  .login-divider-label {
    position: relative;
    display: flex;
    justify-content: center;
  }
 
  .login-divider-label span {
    background: white;
    padding: 0 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #555E68;
  }
 
  /* -- Create Account Button -- */
  .login-create-btn {
    width: 100%;
    height: 3.5rem;
    background: white;
    border: 2px solid #DDE0E4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #161A1D;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1.5rem;
  }
 
  .login-create-btn:hover { background: #f9fafb; }
 
  /* -- Social + Footer -- */
  .login-social-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
 
  .login-social-row {
    display: flex;
    gap: 1rem;
  }
 
  .login-social-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: white;
    border: 2px solid #DDE0E4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: box-shadow 0.2s;
  }
 
  .login-social-btn:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
  .login-social-btn img { width: 1.5rem; height: 1.5rem; }
 
  .login-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
 
  .login-footer-link-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #555E68;
  }
 
  .login-footer-link-row a {
    color: #555E68;
    text-decoration: none;
  }
  .login-footer-link-row a:hover { color: #161A1D; }
 
  .login-footer-divider {
    width: 1px;
    height: 0.75rem;
    background: #DDE0E4;
  }
 
  .login-copyright {
    font-size: 0.625rem;
    color: rgba(85, 94, 104, 0.6);
    margin: 0;
  }

/* Account Create */

 /* -- Layout -- */
  .page-header {
    position: sticky;
    top: 0;
    z-index: 110;
    background: white;
    border-bottom: 1px solid var(--brand-border);
  }

  .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 3.5rem;
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
  }

  .nav-back-btn {
    padding: 0.5rem;
    margin-left: 0.5rem;
    border-radius: 9999px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
  }
  .nav-back-btn:hover { background: #f3f4f6; }

  .nav-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
  }

  .nav-spacer { width: 2.25rem; }

  /* -- Progress Section -- */
  .progress-section {
    background: color-mix(in srgb, var(--brand-light) 50%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 10%, transparent);
    padding: 1.5rem 0;
  }

  .progress-inner {
    max-width: 36rem;
    margin: 0 auto;
    padding: 0 1rem;
  }

  .progress-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    display:flex;
    align-items: center;
  }
  
  .progress-title iconify-icon {margin-right:10px}

  .progress-bar-track {
    width: 100%;
    height: 0.375rem;
    background: var(--brand-bg);
    border-radius: 9999px;
    overflow: hidden;
  }

  .progress-bar-fill {
    height: 100%;
    background: var(--brand-primary);
    border-radius: 9999px;
    width: 33.333%;
  }







  /* -- Terms box -- */
  .terms-box {
    padding: 1rem;
    background: var(--brand-bg);
    border: 1px solid var(--brand-border);
    border-radius: 0.5rem;
    margin-top: 2rem;
  }

  .terms-text {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--brand-muted);
    margin: 0;
  }

  .terms-link {
    color: var(--brand-primary);
    font-weight: 500;
    text-decoration: none;
  }
  .terms-link:hover { text-decoration: underline; }

  /* -- Footer -- */
  .page-footer {
    position: sticky;
    bottom: 0;
    background: white;
    border-top: 1px solid var(--brand-border);
    padding: 1rem;
  }

  .footer-inner {
    max-width: 36rem;
    margin: 0 auto;
  }

  .submit-btn {
    width: 100%;
    height: 3.5rem;
    background: var(--brand-primary);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px color-mix(in srgb, var(--brand-primary) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
  }
  .submit-btn:hover { opacity: 0.9; }
  .submit-btn:active { transform: scale(0.98); }
  
  /* -- Desktop Sidebar (hidden on mobile/tablet) -- */
  .sidebar {
    display: none;
  }
 
  @media (min-width: 1280px) {
    .sidebar {
      display: flex;
      flex-direction: column;
      position: fixed;
      left: 0;
      top: 0;
      height: 100%;
      width: 16rem;
      background: #fff;
      border-right: 1px solid var(--brand-border);
      padding: 1.5rem;
    }
  }
 
  .sidebar-logo-wrap {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
  }
 
  .sidebar-logo-box {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  }
 
  .sidebar-logo-box img {
    width: 3.5rem;
    height: 3.5rem;
  }
 
  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
 
  .sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
  }
 
  .sidebar-nav-item--active {
    color: var(--brand-primary);
  }
 
  .sidebar-nav-item--inactive {
    color: var(--brand-muted);
    opacity: 0.5;
  }

/* MAIN APP STYLES */

/* -- Main App Sidebar (hidden on mobile) -- */
  .app-sidebar {
    display: none;
  }
 
  @media (min-width: 1024px) {
    .app-sidebar {
      display: flex;
      flex-direction: column;
      width: 16rem;
      background: white;
      border-right: 1px solid #DDE0E4;
      position: sticky;
      top: 0;
      height: 100vh;
      padding: 1.5rem;
    }
  }
 
  .app-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }
 
  .app-sidebar-brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    border:2px solid #96C6F5;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
 
  .app-sidebar-brand-icon img {
    width: 1.5rem;
    height: 1.5rem;
  }
 
  .app-sidebar-brand-name {
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -0.05em;
  }
 
  .app-sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
 
  .app-sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    color: #555E68;
    text-decoration: none;
    transition: background 0.2s;
    position: relative;
  }
 
  .app-sidebar-nav-item:hover {
    background: #f9fafb;
  }
 
  .app-sidebar-nav-item--active {
    background: #F0F9FF;
    color: #51B4FB;
    font-weight: 700;
  }
 
  .app-sidebar-nav-item--active:hover {
    background: #F0F9FF;
  }
 
  .app-sidebar-nav-badge {
    margin-left: auto;
    background: #EB4763;
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
  }
 
  .app-sidebar-support {
    margin-top: auto;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 1rem;
  }
 
  .app-sidebar-support-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #555E68;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
  }
 
  .app-sidebar-support-btn {
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #161A1D;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
 
  .app-sidebar-support-btn:hover {
    text-decoration: underline;
  }
  
/* -- Mobile Bottom Navigation -- */
  .mob-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: white;
    border-top: 1px solid #E5E7EB;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 110;
    padding-bottom: env(safe-area-inset-bottom);
  }
 
  @media (min-width: 1024px) {
    .mob-nav { display: none; }
  }
 
  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    position: relative;
    color:var(--nav-inactive);
  }
  
  .mob-nav-item.mob-nav-item--active {
	color:var(--nav-active);	  
  }
 
  .mob-nav-label {
    font-size: 0.625rem;
    font-weight: 500;
  }
 
  .mob-nav-badge {
    position: absolute;
    top: -0.25rem;
    right: 0;
    background: #EB4763;
    color: white;
    font-size: 0.5rem;
    font-weight: 700;
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 2px solid white;
  }  

  /* -- Main App Header -- */
  .app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #DDE0E4;
    padding: 0.75rem 1rem;
  }
 
  @media (min-width: 1024px) {
    .app-header {
      padding: 1.5rem 2rem;
    }
  }
 
  .app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
 
  .app-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
 
  /* Mobile-only logo mark */
  .app-header-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border: 2px solid #96C6F5;
    flex-shrink: 0;
  }
 
  @media (min-width: 1024px) {
    .app-header-logo { display: none; }
  }
 
  .app-header-logo img {
    width: 2.5rem;
    height: 2.5rem;
  }
 
  .app-header-title {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    min-width: 200px;
    margin: 0;
  }
 
  @media (min-width: 1024px) {
    .app-header-title {
      font-size: 1.5rem;
      min-width: 400px;
    }
  }
 
  /* Right side actions */
  .app-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
 
  .app-header-notif-btn {
    position: relative;
    padding: 0.5rem;
    border-radius: 9999px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
  }
 
  .app-header-notif-btn:hover { background: #f3f4f6; }
 
  .app-header-notif-btn img {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
  }
 
  .app-header-notif-dot {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 0.625rem;
    height: 0.625rem;
    background: #EB4763;
    border: 2px solid white;
    border-radius: 9999px;
  }
 
  /* Desktop user profile (hidden on mobile) */
  .app-header-user {
    display: none;
  }
 
  @media (min-width: 1024px) {
    .app-header-user {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-left: 1rem;
      padding-left: 1rem;
      border-left: 1px solid #DDE0E4;
    }
  }
 
  .app-header-user-text {
    text-align: right;
  }
 
  .app-header-user-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #161A1D;
    margin: 0;
  }
 
  .app-header-user-role {
    font-size: 0.625rem;
    color: #555E68;
    text-transform: uppercase;
    margin: 0;
  }
 
  .app-header-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid #DDE0E4;
    flex-shrink: 0;
  }
 
  .app-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit:cover;
  }
/* -- Main Content Container -- */  
  .content_container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F9FAFB;
  }
 
  @media (min-width: 1024px) {
    .content_container {
      flex-direction: row;
    }
  }

  .main_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 64rem;
    margin: 0;
    width: 100%;
    background: white;
    overflow: hidden;
    padding-bottom: 6rem;
  }
 
  @media (min-width: 1024px) {
    .main_content {
      box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
      padding-bottom: 2rem;
    }
  }  
  
  
 /* -- Desktop Right Panel -- */
  .right-panel {
   /* display: none;*/
  }
 
  @media (min-width: 1280px) {
    .right-panel {
      display: flex;
      flex-direction: column;
      width: 20rem;
      padding: 1.5rem;
      gap: 1.5rem;
      position: sticky;
      top: 0;
      height: 100vh;
      overflow-y: auto;
      scrollbar-width: none;
    }
    .right-panel::-webkit-scrollbar { display: none; }
  }
 
  /* -- Shared card base -- */
  .right-panel-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
    margin-bottom: 1rem;
  }
 
  .right-panel-card--dark {
    background: #161A1D;
    color: white;
    border: none;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
  }
 
  .right-panel-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1rem;
  }
 
  .right-panel-card--dark .right-panel-card-title {
    margin-bottom: 0.5rem;
  }
 
  /* -- Stat row (label + value) -- */
  .right-panel-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
 
  .right-panel-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
  }
 
  .right-panel-stat-value {
    font-size: 0.875rem;
    font-weight: 700;
  }
 
  .right-panel-stat-value--alert { color: #ef4444; }
 
  /* -- Progress bar -- */
  .right-panel-bar-track {
    width: 100%;
    background: #f3f4f6;
    height: 0.5rem;
    border-radius: 9999px;
    overflow: hidden;
    margin: 0.75rem 0;
  }
 
  .right-panel-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: #ef4444;
  }
 
  .right-panel-caption {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
  }
 
  /* -- Dark card body text -- */
  .right-panel-card--dark p {
    font-size: 0.875rem;
    color: #d1d5db;
    margin: 0 0 1rem;
  }
 
  .right-panel-dark-btn {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
  }
 
  .right-panel-dark-btn:hover { background: rgba(255,255,255,0.2); }
 
  /* -- List items -- */
  .right-panel-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
 
  .right-panel-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
  }
 
  .right-panel-list-item:hover { background: #f9fafb; }
 
  .right-panel-list-item iconify-icon { color: #9ca3af; }
 
  .right-panel-list-item span {
    font-size: 0.875rem;
    font-weight: 500;
  }  
  
  
   .submit-btn {
    width: 100%;
    background: #51B4FB;
    color: white;
    font-weight: 700;
    padding: 0.875rem;
    border: none;
    border-radius: 0.125rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
  }
 
  .submit-btn:hover { background: #40a3e9; }
  .submit-btn:active { transform: scale(0.98); } 
  
  .button-cta {
	  width: 100%;
	  height: 3.5rem;
	  background: #51B4FB;
	  color: white;
	  font-weight: 700;
	  font-size: 1.125rem;
	  border: none;
	  border-radius: 0.625rem;
	  box-shadow: 0 4px 8px rgba(81, 180, 251, 0.2);
	  cursor: pointer;
	  transition: all 0.2s;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  gap: 0.5rem;
	}

  .button-cta:hover { background: #40a3e9; }
  .button-cta:active { transform: scale(0.98); }  
  
    .cancel-btn {
    width: 100%;
    max-width: 28rem;
    height: 3rem;
    border: 1px solid #fee2e2;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #EB4763;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
  }
 
  .cancel-btn:hover { background: #fef2f2; }
  .cancel-btn img { width: 1rem; height: 1rem; }
  
  
/* -- Side Panel States -- */

/* The panel is hidden by default */
#secondary_content.right-panel {

  opacity: 0;
  transition: opacity 0.25s ease,left 0.5s ease;
}

/* Mobile: slides in as a fixed overlay from the right */
@media (max-width: 1023px) {
  #secondary_content.right-panel {
    position: fixed;
    top: 0;
    left: 100%;
    height: 100%;
    width: 100%;
    background: white;
    z-index: 100;
    overflow-y:scroll;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    /* transition: left 0.5s ease;*/
  }

  #content.panel-open #secondary_content.right-panel {
    left: 0%;
    opacity: 1;
    padding-bottom:60px; /*for bottom nav*/
  }
}

/* Desktop: panel grows inline, main content shrinks */
@media (min-width: 1024px) {
  #content.panel-open #secondary_content.right-panel {
    width: 420px;
    min-width: 420px;
    opacity: 1;
    overflow-y: auto;
    border-left: 1px solid #DDE0E4;
  }

  #content.panel-open .main_content {
    transition: min-width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
  }
}

/* Optional: dim backdrop on mobile when panel is open */
#content::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 99;
  transition: opacity 0.3s ease;
}

@media (max-width: 1023px) {
  #content.panel-open::after {
    opacity: 1;
    pointer-events: auto;
  }
}  

@media (min-width: 1024px) {
  #secondary_content.right-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
}

