/* ============================================================
   GLOBAL ROOT LAYOUT — SINGLE SOURCE OF TRUTH
============================================================ */

html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;              /* browser never scrolls */
    display: flex;
    flex-direction: column;
    min-height: 0;                 /* CRITICAL for nested flex scrolling */
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
}

/* ============================================================
   MAIN APP CONTAINER
============================================================ */

#app,
.main-layout,
#app-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;                 /* CRITICAL */
    overflow: hidden;              /* app never scrolls */
    width: 100%;
}


/* ============================================================
   TOP NAV
============================================================ */

.top-menu-bar {
    width: 100%;
    height: 48px;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 100;
}

.top-menu-bar .menu-items a {
    margin-right: 16px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.top-menu-bar .search-bar {
    margin-left: auto;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ============================================================
   GLOBAL HEADER
============================================================ */

.header-container {
    width: 100%;
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 90;
}

.header-left .app-logo {
    font-size: 20px;
    font-weight: 700;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.global-search {
    width: 60%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.notification-bell {
    position: relative;
    
    cursor: pointer;
    user-select: none;
    
    font-size: 15px;
}

.notification-bell:hover {
    opacity: 0.8;
}

#notification-badge {
    position: absolute;
    top: -10px;
    right: -10px; /* move further right */
    background: #ff3b30;
    color: white;
    font-size: 9px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 3px;
    box-sizing: border-box;
    transition: transform .15s ease;
}

#notification-badge.hidden {
    display: none;
}

.badge-pop {
    transform: scale(1.25);
}

/*
.menu-items {
    position: relative;
}  */

.menu-inbox-link {
    position: relative;
    display: inline-block;
}

#inbox-unread-badge {
    position: absolute;
    top: -10px;
    right: -14px;
    background: #ff3b30;
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 10px;
    box-sizing: border-box;
    transition: transform .15s ease;
}

#inbox-unread-badge.hidden {
    display: none;
}

#inbox-unread-badge.badge-pop {
    transform: scale(1.25);
}


#logo {
  padding-right: 5px;
  transform: translateY(7px); /* moves logo down */
}

/* ============================================================
   FOOTER
============================================================ */

.footer-container {
    height: 36px;
    background: #ffffff;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 12px;
    color: #666;



