/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* MainLayout component scoped CSS - enforces full-height grid with sticky header/footer and two scrollable columns */

/* global page sizing moved to wwwroot/app.css to avoid CSS isolation pseudo-class parsing errors */

.app-layout[b-72u9re7gwj] {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;    /* header | content | footer */
  grid-template-columns: 260px 1fr;     /* sidebar | main (widened to avoid horizontal scroll) */
  grid-template-areas:
    "header header"
    "sidebar main"
    "footer footer";
  width: 100%;
  box-sizing: border-box;
}

/* Collapsed sidebar layout */
.app-layout.collapsed[b-72u9re7gwj] {
  grid-template-columns: 96px 1fr; /* narrow sidebar when collapsed (widened proportionally) */
}

.collapse-toggle[b-72u9re7gwj] {
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
  border: none;
  background: transparent;
  color: inherit;
}

/* header spans full width and stays visible */
.app-header[b-72u9re7gwj] {
  grid-area: header;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 3.5rem; /* match footer height */
  padding: 0.6rem 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  width: 100%;
  box-sizing: border-box;
}

.header-left[b-72u9re7gwj],
.header-right[b-72u9re7gwj] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ensure right group is pushed to the far edge */
.header-right[b-72u9re7gwj] {
  margin-left: auto;
}

/* negate any global float rules for header links */
.app-header a[b-72u9re7gwj],
.app-header .nav-link[b-72u9re7gwj] {
  float: none !important;
}

/* sidebar and main must be able to shrink inside the grid */
.app-sidebar[b-72u9re7gwj] {
  grid-area: sidebar;
  min-height: 0;         /* critical: allow child to be constrained */
  overflow-y: auto;
  box-sizing: border-box;
  padding: 1rem;
  background: #fff;
  border-right: 1px solid #e6e6e6; /* subtle divider between sidebar and main */
}

.app-main[b-72u9re7gwj] {
  grid-area: main;
  min-height: 0;         /* critical */
  overflow-y: auto;
  box-sizing: border-box;
  padding: 1rem;
  background: #fff;
}

.app-footer[b-72u9re7gwj] {
  grid-area: footer;
  padding: 0.5rem 1rem;
  /* Make footer 25px shorter than header */
  min-height: calc(3.5rem - 25px);
  display: flex;
  align-items: center;
  background: #fff;
  border-top: 1px solid #ddd;
}

/* responsive fallback */
@media (max-width: 800px) {
  .app-layout[b-72u9re7gwj] {
    grid-template-columns: 1fr; /* stack on small screens */
    grid-template-areas:
      "header"
      "main"
      "sidebar"
      "footer";
  }
  .app-sidebar[b-72u9re7gwj] {
    border-right: none;
    border-top: 1px solid #ddd;
  }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-2u5yx992bk] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-2u5yx992bk] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-2u5yx992bk] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-2u5yx992bk] {
    font-size: 1.1rem;
}

.bi[b-2u5yx992bk] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-2u5yx992bk] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-2u5yx992bk] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

/* document/file icon for CV link */
.bi-file-doc-nav-menu[b-2u5yx992bk] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='1' width='12' height='14' rx='1' fill='white'/%3E%3Cpath d='M10 1v4h4' fill='white'/%3E%3Crect x='4' y='6' width='8' height='1' fill='white'/%3E%3Crect x='4' y='8' width='8' height='1' fill='white'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-2u5yx992bk] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-lock-nav-menu[b-2u5yx992bk] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.bi-person-nav-menu[b-2u5yx992bk] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z'/%3E%3C/svg%3E");
}

.bi-person-badge-nav-menu[b-2u5yx992bk] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-badge' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/%3E%3Cpath d='M4.5 0A2.5 2.5 0 0 0 2 2.5V14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2.5A2.5 2.5 0 0 0 11.5 0h-7zM3 2.5A1.5 1.5 0 0 1 4.5 1h7A1.5 1.5 0 0 1 13 2.5v10.795a4.2 4.2 0 0 0-.776-.492C11.392 12.387 10.063 12 8 12s-3.392.387-4.224.803a4.2 4.2 0 0 0-.776.492V2.5z'/%3E%3C/svg%3E");
}

.bi-person-fill-nav-menu[b-2u5yx992bk] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3Zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}

.bi-arrow-bar-left-nav-menu[b-2u5yx992bk] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-arrow-bar-left' viewBox='0 0 16 16'%3E%3Cpath d='M12.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5ZM10 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H9.5a.5.5 0 0 1 .5.5Z'/%3E%3C/svg%3E");
}

.bi-play-nav-menu[b-2u5yx992bk] {
    /* play triangle as white on transparent; we add a dark circular background so it shows on white sidebar */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolygon points='6,4 12,8 6,12' fill='%23ffffff'/%3E%3C/svg%3E");
    background-color: #000; /* dark circle background */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60% 60%;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Ensure this specific icon is not inverted by the generic icon rule */
.nav-item[b-2u5yx992bk]  .bi-play-nav-menu {
    filter: none !important;
}
.nav-item[b-2u5yx992bk] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-2u5yx992bk] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-2u5yx992bk] {
        padding-bottom: 1rem;
    }

    .nav-item[b-2u5yx992bk]  .nav-link {
        color: #222; /* darker for contrast against the light sidebar */
        background: none;
        border: none;
        border-radius: 4px;
        min-height: 3rem;
        display: flex;
        align-items: center;
        line-height: 1.4;
        width: 100%;
        text-decoration: none;
        position: relative; /* for tooltip positioning */
        white-space: normal; /* allow wrapping */
        word-break: break-word;
        padding-right: 0.75rem; /* room for tooltip indicator */
    }

/* Keep unvisited links a dark gray, but make visited (followed) links black for clarity */
.nav-item[b-2u5yx992bk]  .nav-link:link,
.nav-item[b-2u5yx992bk]  .nav-link:active {
    color: #222;
}

.nav-item[b-2u5yx992bk]  .nav-link:visited {
    color: #000;
}

/* Ensure active link remains white even if visited */
.nav-item[b-2u5yx992bk]  a.active:visited {
    color: white;
}

.nav-item[b-2u5yx992bk]  a.active {
    background-color: rgba(0,0,0,0.06); /* subtle highlight for active item */
    color: #000; /* make selected link text black */
}

/* Ensure active visited links stay black */
.nav-item[b-2u5yx992bk]  a.active:visited {
    color: #000;
}

.nav-item[b-2u5yx992bk]  .nav-link:hover {
    background-color: rgba(0,0,0,0.03);
    color: #000;
}

    /* Ensure icon SVGs (embedded as background images) are visible on the light sidebar */
    .nav-item[b-2u5yx992bk]  .bi {
        filter: invert(1); /* turn the white SVGs to dark on light backgrounds */
    }

.nav-scrollable[b-2u5yx992bk] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-2u5yx992bk] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-2u5yx992bk] {
        display: none;
    }

    .nav-scrollable[b-2u5yx992bk] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus, but only when content exceeds viewport
           Use max-height so short menus do not get a scrollbar */
        max-height: calc(100vh - 7rem + 25px); /* account for header (3.5rem) and footer (3.5rem -25px) */
        overflow-y: auto;
        overflow-x: hidden; /* prevent horizontal scrolling */
    }
}

/* When the layout has the collapsed class, show compact icon-only sidebar */
/* Removed collapsed-mode styling as sidebar collapsing was removed */

/* Ensure sidebar itself never shows a horizontal scrollbar */
.app-sidebar[b-2u5yx992bk] {
    overflow-x: hidden;
}

/* Prefer per-component collapse hook: when NavMenu receives .nav-wrapper.collapsed hide text */
.nav-wrapper.collapsed[b-2u5yx992bk]  .nav-link {
    justify-content: center;
    padding-left: 0.25rem;
}

.nav-wrapper.collapsed[b-2u5yx992bk]  .nav-text {
    display: none;
}

/* CSS tooltip that shows the full label on hover using the native title attribute as the source */
.nav-item[b-2u5yx992bk]  .nav-link[title] {
    /* ensure pseudo-element can be positioned out of flow */
}

.nav-item[b-2u5yx992bk]  .nav-link[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + 0.5rem);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.85rem;
    z-index: 40;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* For small screens, show tooltip above the item instead of to the right */
@media (max-width: 640px) {
    .nav-item[b-2u5yx992bk]  .nav-link[title]:hover::after {
        left: 50%;
        top: auto;
        bottom: calc(100% + 0.4rem);
        transform: translateX(-50%) translateY(0);
        white-space: normal;
        max-width: 80vw;
        text-align: center;
    }
}

/* Active state in collapsed (icon-only) mode should also use black color for any text or fallback */
.nav-wrapper.collapsed[b-2u5yx992bk]  .nav-link.active {
    color: #000;
}

.nav-wrapper.collapsed[b-2u5yx992bk]  .nav-link.active:visited {
    color: #000;
}

/* Also guard against visited link coloring when collapsed */
.nav-wrapper.collapsed[b-2u5yx992bk]  .nav-link:link,
.nav-wrapper.collapsed[b-2u5yx992bk]  .nav-link:active {
    color: #222;
}

.nav-wrapper.collapsed[b-2u5yx992bk]  .nav-link:visited {
    color: #000;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-m33i61itto],
.components-reconnect-repeated-attempt-visible[b-m33i61itto],
.components-reconnect-failed-visible[b-m33i61itto],
.components-pause-visible[b-m33i61itto],
.components-resume-failed-visible[b-m33i61itto],
.components-rejoining-animation[b-m33i61itto] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-m33i61itto],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-m33i61itto],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-m33i61itto],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-m33i61itto],
#components-reconnect-modal.components-reconnect-retrying[b-m33i61itto],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-m33i61itto],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-m33i61itto],
#components-reconnect-modal.components-reconnect-failed[b-m33i61itto],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-m33i61itto] {
    display: block;
}


#components-reconnect-modal[b-m33i61itto] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-m33i61itto 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-m33i61itto 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-m33i61itto 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-m33i61itto]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-m33i61itto 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-m33i61itto {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-m33i61itto {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-m33i61itto {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-m33i61itto] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-m33i61itto] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-m33i61itto] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-m33i61itto] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-m33i61itto] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-m33i61itto] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-m33i61itto] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-m33i61itto 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-m33i61itto] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-m33i61itto {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/CV.razor.rz.scp.css */
.cv-full-bleed[b-zzn0k79vi0] {
  width: 100%; /* fill the @Body/main column */
  height: 100%;
  box-sizing: border-box;
  padding: 0;
}

/* Ensure the embedded PDF fills the container (the main column) */
.cv-full-bleed iframe[b-zzn0k79vi0] {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Small-screen fallback: allow reasonable minimum height */
@media (max-width: 800px) {
  .cv-full-bleed iframe[b-zzn0k79vi0] {
    min-height: 60vh;
  }
}
/* /Components/Pages/Home.razor.rz.scp.css */
.page-center[b-7dalq5q172] {
  min-height: 100%;            /* fill the .app-main area */
  display: flex;
  flex-direction: column;
  justify-content: center;     /* vertical centering */
  align-items: center;         /* horizontal centering */
  padding: 1rem;
  box-sizing: border-box;
  width: 100%;
}

/* If you want to constrain content width so it's visually centered within main column */
.page-center .content-inner[b-7dalq5q172] {
  width: 100%;
  max-width: 900px;
}

/* Shift the centered content left by half the sidebar width so it appears centered in the viewport
   when a left sidebar is present. Adjust for collapsed sidebar and small screens. */
.page-center[b-7dalq5q172] {
  /* half of MainLayout sidebar width (260px) */
  margin-left: calc(-260px / 2);
}

:global(.app-layout.collapsed) .page-center[b-7dalq5q172] {
  /* half of collapsed sidebar width (96px) */
  margin-left: calc(-96px / 2);
}

@media (max-width: 800px) {
  /* when layout stacks (small screens), don't offset */
  .page-center[b-7dalq5q172] {
    margin-left: 0;
  }
}
