html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

.top-banner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: #003761;
    padding: 10px 24px;
    position: relative;
}
.banner-system-name {
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    margin-left: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
@media (max-width: 768px) {

    .banner-system-name {
        margin-left: 50px;
        font-size: 12px;
    }
}
#lblBannerSystem {
    color: #ffffff !important;
}

.filter-banner {
    background: #eef7ff;
    border-left: 4px solid #169bd5;
    padding: 8px 12px;
    margin: 10px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.hamburger {
    display: none;
    position: absolute;
    left: 10px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    margin-left: auto;
}

 
.user-avatar {
    width: 32px;
    height: 32px;
}

 
.user-id {
    font-weight: 600;
    white-space: nowrap;
}

.user-details {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: white;
}

.logout-link {
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

 
.logout-link:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {

    .user-details {
        font-size: 12px;
        line-height: 1.1;
    }

    .logout-link {
        font-size: 11px;
    }

}
@media (max-width: 768px) {

    .user-id {
        display: inline;
    }

    .user-info {
        gap: 4px;
    }

    .user-id,
    .logout-link {
        font-size: 10px;
        line-height: 28px;
    }
}

.top-banner .hamburger {
    margin-right: 10px;
}

.container {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 50px); /* Adjust for banner height */
    overflow: hidden;
}

/* Navigation Pane */

.nav-pane {
    width: 200px; 
    background-color: #003761;
    color: white;
    padding: 10px;
    transition: transform 0.3s ease;
    font-size: 14px;
}


.nav-pane ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-pane li {
    padding: 10px 0;
    cursor: pointer;
}

.nav-pane li:hover {
    background-color: #004080;
}


.nav-title-btn {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 10px auto;
    padding: 12px 18px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.30);
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    transition: background 0.2s ease;
}

.nav-title-btn:hover {
    background: rgba(255,255,255,0.25);
}

.content-area {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto; /* let this area scroll vertically */
    overflow-x: hidden; /* keep horizontal clean */
}


.content-area iframe {
    width: 100%;
    height: 100%;
    border: none;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* show only on mobile */
    }
    .nav-pane {
        position: fixed;
        top: 50px;
        left: 0;
        width: 220px;
        height: calc(100vh - 50px);
        transform: translateX(-100%);
        z-index: 1000;
    }

    .nav-pane.open {
        transform: translateX(0);
    }

    .container {
        flex-direction: column;
    }

    .content-area {
        width: 100%;
        height: calc(100vh - 50px); /* Full height minus banner */
    }
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 10px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

    .menu-item:hover {
        background-color: #004080;
    }

.icon {
    margin-right: 0;
    width: 16px;
    flex-shrink: 0;
}

.arrow {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.7;
}

.submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: white;
    color: black;
    list-style: none;
    padding: 10px;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    min-width: 160px;
    z-index: 1200;
    border-radius: 4px;
}

.submenu li {
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submenu li:hover {
    background-color: #f0f0f0;
}

.menu-item.open > .submenu {
    display: block;
}
.nav-header {
    text-align: center; /* Center the logo */
    padding: 15px;
}

.nav-logo {
    width: 100px; 
    height: auto; 
    display: block; 
    margin-left: 10px;
}

.nav-divider {
    border: none;
    border-top: 1px solid #fff; /* White line */
    margin: 10px 0;
}

.errormsg {
    display: block;
    width: 100%;
    margin-top: 6px;
    color: #d9534f;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left; 
    white-space: normal;
}

.validator {
    color: #d9534f; /* Red for error */
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
}

.nav-title {
    text-decoration: none !important;
    color: #ffffff;
    cursor: pointer;
}

/* Optional: tighter spacing on small screens */
@media (max-width: 768px) {
    .nav-title {
        font-size: 15px;
    }
}

/* Utility: hide until selection made */
.is-hidden {
    display: none !important;
}
.nav-entry-selected {
    cursor: pointer;
    text-decoration: none !important; /* removes underline on LinkButton (<a>) */
    color: #ffffff !important;
}

.nav-entry-display {
    cursor: default; 
    text-decoration: none;
    color: #ffffff;
    padding: 10px;
    display: block;
}

.nav-entry-selected:hover {
    background-color: #004080; /* matches hover tone */
}

.nav-item-text {
    flex: 1;
}

.nav-caret {
    margin-left: auto;
    opacity: 0.85;
}


.flyout-panel {
    display: block;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

/* Flyout list and links */
.flyout-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.flyout-list li {
    margin: 0;
    padding: 0;
}

.flyout-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 5px 12px;
    color: #e6f0fa !important;
    font-weight: 500;
    text-decoration: none !important; /* keep LinkButtons plain */
    border-radius: 6px;
    line-height: 1.25;
}

.flyout-link:hover {
    background: #004080; 
    color: #ffffff !important;
}

/* Slight tweak so .nav-header spacing looks good with the block */
.nav-selected-block {
    margin-top: 4px;
}

#selectedSystemText {
    font-size: 13px;
    font-weight font-weight: 600;
}


/* ONLY apply these rules to the container page */
.app-shell,
.app-shell form#form1 {
    height: 100%;
    overflow: hidden;
}

.app-shell .container {
    height: calc(100vh - 50px);
    overflow: hidden;
}
.app-shell .content-area {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}
.content-area {
    flex-grow: 1;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Dirty warning (info) */
#dirtyMsgWrap.msg-line.show.msg-info {
    display: block;
    background-color: #e9f6fc; /* light blue */
    border-color: #bfe7f6;
    color: #003761;
}

/* =====================================
   MESSAGE NOTIFICATION BUTTON
   ===================================== */

/* Message Button */

.message-button {
    width: 26px;
    height: 26px;
    cursor: pointer;
    border: none;
    background: transparent;
}

.message-icon {
    color: white !important;
    line-height: 1;
}
.message-wrapper {
    position: relative;
    display: inline-block;
}
.message-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    background: red;
    color: white;
    display: none;
}

/* Unread messages */

.message-alert .message-icon {
    color: #ffb000 !important;
}

.message-alert {
    filter: sepia(100%) saturate(500%) hue-rotate(350deg);
    animation: messagePulse 1.25s infinite;
}
.message-button:hover {
    color: #ffffff;
    opacity: .85;
}
.message-badge.message-alert {
    animation: badgePulse 1.25s infinite;
}
.message-body {
    text-align: left;
    text-indent: 0;
}
.message-link {
    margin-top: 10px;
}
.message-link a {
    color: #0066cc;
    text-decoration: underline;
}
@keyframes badgePulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.20);
    }

    100% {
        transform: scale(1);
    }
}
