/* You can add global styles to this file, and also import other style files */
.card-container {
  display: flex;
  flex-direction: row;
  background-color: #ffffff;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  cursor: pointer;
}

.image-section {
  margin: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
}

.content-section {
  flex-grow: 1;
  padding-right: 15px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.text-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}.accordionControlButton{
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}/* Navbar Styles */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e6;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.leftGroup {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-link {
  text-decoration: none;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #002677;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.logo:hover {
  opacity: 0.8;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navItem {
  font-size: 16px;
  font-weight: 500;
  color: #4b4d4f;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s;
  text-decoration: none;
}

.navItem:hover {
  background-color: #f3f3f3;
  color: #002677;
}

.navItem-active {
  color: #002677;
  font-weight: 700;
  border-bottom: 3px solid #002677;
  border-radius: 0;
}

.dropdownWrapper {
  position: relative;
}

.userIcon {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.userIcon:hover {
  opacity: 0.8;
}

.dropdownLeft,
.dropdownRight {
  position: absolute;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #e5e5e6;
  border-radius: 4px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  z-index: 1000;
}

.dropdownLeft {
  left: 0;
}

.dropdownRight {
  right: 0;
}

.dropdownItem {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dropdownItem:hover {
  background-color: #f3f3f3;
}

.dropdownItem:focus {
  outline: 2px solid #002677;
  outline-offset: -2px;
}

.dropdownItemStyled {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dropdownText {
  font-size: 16px;
  font-weight: 500;
  color: #4b4d4f;
}

/* Family Dropdown Styles */

.familyDropdownWrapper {
    position: relative;
}

.familyDropdownMenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
    min-width: 150px;
    max-width: 300px;
    width: auto;
}

.familyDropdownItem {
    padding: 12px 16px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 16px;
}

.familyDropdownItem:hover {
    background-color: #f0f0f0;
}



/* Mobile Header */
.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  height: 64px;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e6;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Left Group: Family View + Select Child */
.mobile-left-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.mobile-logo {
  font-size: 16px;
  font-weight: bold;
  color: #002677;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.familyDropdownWrapper .navItem {
  font-size: 16px;
  font-weight: 500;
  color: #4b4d4f;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.familyDropdownWrapper .navItem-active {
  color: #002677;
    font-weight: 700;
    border-bottom: 3px solid #002677;
    border-radius: 0;
  
}

.familyDropdownWrapper .navItem:hover {
  background-color: #f3f3f3;
}

/* Right Group: Profile Icon */
.mobile-profile-menu {
  display: flex;
  align-items: center;
}

.userIcon {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.userIcon:hover {
  opacity: 0.8;
}
/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: flex-end;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
  display: flex;
  opacity: 1;
}

/* Sliding Mobile Menu */
.mobile-menu {
  background-color: white;
  width: 80%;
  max-width: 300px;
  height: 100%;
  box-shadow: -4px 0 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 16px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu-overlay.open .mobile-menu {
  transform: translateX(0);
}

/* Mobile Menu Items */
.mobile-menu-item {
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e6;
  font-size: 16px;
  color: #4b4d4f;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

.mobile-menu-item:hover {
  background-color: #f3f3f3;
  color: #002677;
}
.close-menu-button {
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #4b4d4f;
  cursor: pointer;
  align-self: flex-end; 
  margin-bottom: 16px;
}

.close-menu-button:hover {
  color: #002677;
}

/* Modal Overlay for mobile child selector*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-sheet {
    background: white;
    border-radius: 8px 8px 0 0;
    width: 100%;
    
    padding: 16px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.close-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.modal-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.child-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e6;
}


.child-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #4b4d4f;
}
.radio-label {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 8px; 
    cursor: pointer;
    width: 100%;
}


.radio-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  outline: none;
  margin-left: auto;
}

.radio-label input[type="radio"]:checked {
  border-color: #007bff;
  background: #007bff;
  box-shadow: inset 0 0 0 4px white;
}
.footer {
  width: 100%;
  background-color: #ffffff;
  margin-top: 10px;
  box-sizing: border-box;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 20px 1.5rem 20px;
  margin: 0 20px;
  border-top: 1px solid #323334;
}

.footer-copyright {
  color: #4b4d4f;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-divider {
  color: #4b4d4f;
  font-size: 12px;
  padding: 0 0.75rem;
}

.footer-link {
  color: #4b4d4f;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #333;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer {
    display: none;
  }
}
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

#root {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.app-content {
  background-color: #faf8f2;
}

/* Root level styles */
.app-root {
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
}

.app-root.theme-light {
  background-color: #ffffff;
  color: #333;
}

.app-root.theme-dark {
  background-color: #1a1a1a;
  color: #f5f5f5;
}

/* Authenticated layout */
.authenticated-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-body {
  flex: 1;
  width: 100%;
  padding-top: 6px; /* header height (Fixed) */
}

/* MFE wrappers */

.careteam-container,
.profile-container,
.summary-container, .documents-container {
  width: 100%;
}


.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s, color 0.3s;
}

.app-container--light {
  background-color: #f5f5f5;
  color: #333;
}

.app-container--dark {
  background-color: #1a1a1a;
  color: #f5f5f5;
}

.app-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.8rem;
}

.brand-badge {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.user-name {
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.logout-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.theme-toggle {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.app-nav {
  background-color: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  padding: 0 2rem;
}

.app-container--dark .app-nav {
  background-color: #2a2a2a;
}

.app-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
}

.app-nav li {
  padding: 1rem 0;
}

.app-nav a {
  text-decoration: none;
  color: #667eea;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.app-nav a:hover {
  color: #764ba2;
}

.app-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.app-content {
  flex: 1;
  display: flex;
  min-height: 100vh;
  max-width: 1240px;
  margin: auto;
}

.home-page {
  text-align: center;
  padding: 2rem;
}

.home-page h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.app-container--dark .feature-card {
  background-color: #2a2a2a;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
  margin: 0 0 1rem 0;
  color: #667eea;
}

.feature-card p {
  margin: 0 0 1.5rem 0;
  color: #666;
}

.app-container--dark .feature-card p {
  color: #aaa;
}

.card-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.3s;
}

.card-link:hover {
  transform: scale(1.05);
}

.mfe-wrapper {
  background: white;
  border-radius: 12px;
  width: 100%;
  /* overflow: hidden; */ /* Removed to allow sticky positioning in child MFEs */
}

.app-container--dark .mfe-wrapper {
  background-color: transparent;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  gap: 1rem;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(102, 126, 234, 0.2);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-container {
  padding: 2rem;
  text-align: center;
  background-color: #fee;
  border: 2px solid #fcc;
  border-radius: 8px;
  color: #c33;
}

.error-container h2 {
  margin: 0 0 1rem 0;
}

.app-footer {
  background-color: white;
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  margin-top: auto;
}

.app-container--dark .app-footer {
  background-color: #2a2a2a;
  border-top-color: #333;
}

.app-footer p {
  margin: 0;
  color: #666;
}

.app-container--dark .app-footer p {
  color: #aaa;
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    gap: 1rem;
  }

  .app-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }
}
:root {
  --m-tabbar-bg: #ffffff;
  --m-tabbar-text: #6b7280;       
  --m-tabbar-text-active: #111827; 
  --m-tabbar-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  --m-tabbar-border: #e5e7eb;   
  --m-label-size: 12px;
}

.m-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--m-tabbar-bg);
  border-top: 1px solid var(--m-tabbar-border);
  box-shadow: var(--m-tabbar-shadow);
  z-index: 1000;
}

.m-tabbar--mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .m-tabbar--mobile-only {
    display: block;
  }
}

.m-tabbar__container {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
  gap: 2px;
 padding: 8px 10px;
}


.m-tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  color: #6D6F70;
  text-decoration: none;
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
  font-size: 12px;
}


.m-tabbar__item.is-active {
  color: #323334;
  font-weight: 700;
}

.m-tabbar__iconwrap {
  position: relative;
  display: grid;
  place-items: center;
}

.m-tabbar__label {
  font-size: var(--m-label-size);
  line-height: 1;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.landing-page {
  width: "100%";
  height: "100%";
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.footer-section {
  width: 100%;
  padding: 40px;
  background-color: #F3F3F3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
}

.footer-links a {
  color: #4B4D4F;
  cursor: pointer;
  text-decoration: none;
}

.footer-page {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #4B4D4F;
}

.back-button {
  margin-top: 24px;
  font-size: 18px;
  padding: 8px 24px;
  cursor: pointer;
}

@supports (height: 100dvh) {
  .landing-page {
    height: 100dvh;
    min-height: 100dvh;
  }
}

@supports (width: 100dvw) {
  .landing-page {
    width: 100dvw;
    min-width: 100dvw;
  }
}.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 100vh;
  min-height: 100vh;
  width: 100%;
}

.welcome-container.mobile {
   align-items: center;
  justify-content: center;
}

.login-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  gap: 5px;
}

.powered-by-img {
  margin-top: 4px;
}

@supports (height: 100dvh) {
  .welcome-container {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.callback-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem;
}

.callback-loading,
.callback-error {
  text-align: center;
  max-width: 500px;
}

.callback-loading h2,
.callback-error h2 {
  font-size: 1.75rem;
  margin: 1.5rem 0 1rem;
  color: #333;
}

.callback-loading p,
.callback-error p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 4px solid #e0e0e0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.error-hint {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #999;
}

.back-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Dark theme support */
.app-container--dark .callback-loading h2,
.app-container--dark .callback-error h2 {
  color: #e0e0e0;
}

.app-container--dark .callback-loading p,
.app-container--dark .callback-error p {
  color: #b0b0b0;
}

.app-container--dark .spinner {
  border-color: #404040;
  border-top-color: #90caf9;
}

.app-container--dark .error-hint {
  color: #808080;
}
.section-header {
  font-weight: 700;
  margin-bottom: 0;
  margin-top: 25px;
  line-height: 26px;
  font-size: 25px;
}

@media (max-width: 768px) {
  .section-header {
    font-size: 22px;
  }
}

.spinner {
    display: flex;
    flex: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

}
