/* ===========================================================
   BROWSER CHROME
   The fake Internet Explorer window: title bar, menu, toolbar, address bar, status row
   =========================================================== */


/* ---- Window frame & visibility states ---- */
.browser-window {
    width: min(760px, calc(100vw - 20px));
    height: min(660px, calc(100vh - 20px));
    max-width: 760px;
    max-height: 660px;
    background: #c0c0c0;
    border: 2px outset #dfdfdf;
    box-shadow: 2px 2px 0 #808080, 4px 4px 0 #ffffff;
    display: flex;
    flex-direction: column;
    padding: 4px;
    gap: 4px;
    margin: 10px auto 4px;
    overflow: hidden;
    box-sizing: border-box;
}

.browser-hidden {
    display: none !important;
}

.browser-fullscreen {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    max-width: none;
    max-height: none;
    margin: 10px auto 4px;
}


/* ---- Title bar ---- */
.browser-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000080;
    border: 2px inset #ffffff;
    padding: 4px 6px;
}

.browser-title {
    font-size: 12px;
    color: white;
    font-weight: bold;


}

.browser-title-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-image: url("/assets/icons/Internet Explorer Icon.ico");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: #dfdfdf;
}

.window-buttons {
    display: flex;
    gap: 2px;
}

.window-btn {
    width: 24px;
    height: 18px;
    padding: 0;
    margin: 0;
    font-size: 11px;
    font-weight: bold;
    border: 2px outset #ffffff;
    background: #c0c0c0;
    cursor: url("../images/pointer.cur"), pointer;
}

.window-btn:active {
    border: 2px inset #ffffff;
}


/* ---- Menu bar (File / Edit / View ...) ---- */
.navbar {
    width: 100%;
    display: flex;
    /* background: linear-gradient(180deg, #dfdfdf 0%, #c0c0c0 100%); */
    border-bottom: 2px solid;
    border-color: #e0dede00;
    padding: 2px 0;
    gap: 0px;
}

.nav-item {
    padding: 1px 4px;
    font-size: 13px;
    font-weight: normal;
    color: #000000;
    cursor: pointer;
    border: 1px solid transparent;
    user-select: none;
}

.nav-item:hover {
    border: 1px solid;
    border-color: #dfdfdf #000080 #000080 #dfdfdf;
    background: linear-gradient(135deg, #dfdfdf 0%, #c0c0c0 100%);
}

.nav-item.active {
    border: 1px solid;
    border-color: #dfdfdf #000080 #000080 #dfdfdf;
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #000000;
}


/* ---- Toolbar ---- */
.browser-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 2px inset #ffffff;
    padding: 4px 7px;
}

.toolbar-btn {
    min-width: 44px;
    height: 36px;
    padding: 2px 4px;
    margin: 1px;
    border: 2px outset #ffffff00;
    background: #c0c0c0;
    font-size: 9px;
    cursor: url("../images/pointer.cur"), pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.toolbar-btn:active {
    border: 2px inset #ffffff;
}

.toolbar-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.toolbar-label {
    padding: 0;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    text-transform: uppercase;
}

.toolbar-divider {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #ffffff 0%, #808080 50%, #ffffff 100%);
    border-top: 1px solid #808080;
    border-bottom: 1px solid #ffffff;
}


/* ---- Address bar ---- */
.browser-address-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    border-color: #e0dede00;
    padding: 4px 6px;
    font-size: 12px;
}

.address-field {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px inset #c0c0c0;
    width: 100%;
}

.address-field img {
    height: 13px;
    padding: 0px 0px 0px 5px;
}

.address-input {
    flex: 1;
    border: 1px solid #80808000;
    background: #ffffff;
    font-family: "Tahoma", "MS Sans Serif", Arial, sans-serif;
    font-size: 13px;
    padding: 2px 4px;
    color: #000000;
}

.go-btn {
    border: 2px outset #9e9999;
    background: #c0c0c0;
    padding: 1px 5px;
    font-size: 11px;
    font-weight: bold;
    cursor: url("../images/pointer.cur"), pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.address-button-divider {
    width: 1px;
    height: 29px;
    background: #8d8a8a;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #6b6767;
}

.go-btn img {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.go-btn:active {
    border: 2px inset #ffffff;
}


/* ---- Status row ---- */
.browser-bottom-row {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 0.5fr 0.5fr 0.8fr;
    gap: 0;
    flex-shrink: 0;
}

.browser-bottom-col {
    min-height: 24px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    border: 1px solid #808080;

}

.browser-bottom-left {
    border-top: 1px solid #808080;
    border-bottom: 1px solid #ffffff;
    justify-content: flex-start;
    gap: 6px;
}

.browser-bottom-middle {
    background: #c7c7c7;
    border-top: 1px solid #808080;
    border-bottom: 1px solid #ffffff;
}

.browser-bottom-middle-small {
    background: #c7c7c7;
    border-top: 1px solid #808080;
    border-bottom: 1px solid #ffffff;
}

.browser-bottom-right {
    border-top: 1px solid #808080;
    border-bottom: 1px solid #ffffff;
    justify-content: flex-start;
    gap: 6px;
}

.browser-bottom-col img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
}

.browser-bottom-right span {
    font-size: 12px;
    font-weight: bold;
    color: #0f2b4a;
}

.browser-done-text {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
}
