@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===================== GLOBAL ===================== */
body {
    background: linear-gradient(135deg, #f4f6fb 0%, #eef1f8 100%);
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

/* ===================== NAVBAR ===================== */
.navbar-gradient {
    background: linear-gradient(90deg, #1E2369 0%, #333995 60%, #0077B6 100%) !important;
    box-shadow: 0 3px 12px rgba(51, 57, 149, 0.35);
}

.top-row {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 12px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.flex-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

/* Desktop: show full nav, hide burger */
.fullnavbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.hamburger-menu-icon {
    display: none;
    position: relative;
    cursor: pointer;
    color: white;
    padding: 4px 8px;
}

/* Mobile: hide full nav, show burger */
@media (max-width: 768px) {
    .fullnavbar {
        display: none;
    }
    .hamburger-menu-icon {
        display: flex;
        align-items: center;
        margin-left: auto;
    }
}

.navbar-logout-btn {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600;
    opacity: 0.9;
    transition: opacity 0.2s;
    white-space: nowrap;
    margin-left: auto;
}

.navbar-logout-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

.hamburger-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(51, 57, 149, 0.22);
    padding: 10px;
    gap: 6px;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    z-index: 2000;
}

/* ===================== CARDS & CONTAINERS ===================== */
.frumherji-containter {
    background: #ffffff;
    border: none;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(51, 57, 149, 0.10);
    padding: 24px 28px;
    margin: 0 auto;
}

.frumherji-containter-login {
    background: #ffffff;
    border: none;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(51, 57, 149, 0.10);
    padding: 28px 32px 20px;
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
}

.login-page-wrap {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 0;
}

.login-footer {
    width: 100%;
    max-width: 360px;
    margin: 16px auto 0;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.frumherji-containter-min-sida {
    width: auto;
    background: #ffffff;
    border: none;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(51, 57, 149, 0.10);
    padding: 24px 28px;
    margin: 0 auto;
}

.skraNidurstodurBorder {
    border: none;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(51, 57, 149, 0.10);
    padding: 24px 28px;
    margin: 0 auto;
    background: #ffffff;
}

.borderBas {
    border: 1.5px solid #dde3f5;
    border-radius: 10px !important;
    background: #fafbff;
}

.borderFru {
    border: 1.5px solid #dde3f5;
    border-radius: 10px !important;
    padding: 20px 24px;
    margin: 0 auto;
    width: fit-content;
    background: #fafbff;
}

/* ===================== TITLES ===================== */
.borderTitle {
    width: fit-content;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(135deg, #333995, #0077B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin: 0 0 0.5rem 0;
    font-size: 18px;
    padding: 0 15px;
}

.frumherji-Title {
    font-weight: 700;
    background: linear-gradient(135deg, #333995, #0077B6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 100%;
    text-align: center;
    display: block;
    margin: 0 auto 0.75rem;
    padding: 0 15px;
    font-size: 28px;
}

/* ===================== BUTTONS ===================== */
.btn-frum {
    background: linear-gradient(135deg, #333995, #0077B6) !important;
    color: #fff;
    width: 100%;
    font-weight: 600;
    font-size: 14px;
    height: 3em;
    margin-bottom: 30px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(51, 57, 149, 0.3);
    transition: box-shadow 0.2s, transform 0.1s;
}

.btn-frum:hover {
    box-shadow: 0 4px 16px rgba(51, 57, 149, 0.45);
    transform: translateY(-1px);
}

.frumherji-Blue-Button {
    background: linear-gradient(135deg, #333995, #0077B6);
    color: white;
    width: 100px;
    margin: 5px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(51, 57, 149, 0.25);
}

/* ===================== INPUTS ===================== */
.frum-input {
    line-height: 2.5em;
    min-height: 2.5em;
    background: #f8f9ff;
    border-radius: 10px;
    border: 1.5px solid #dde3f5;
}

.frum-inputs {
    width: 100%;
    color: #333995;
    font-size: 0.7em;
    font-weight: 800;
    padding-left: 10px;
    -webkit-text-fill-color: rgba(51, 57, 149, 1);
    border-radius: 10px;
    background: #f8f9ff;
    border: 1.5px solid #dde3f5;
    line-height: 2.5em;
    min-height: 2.5em;
    margin-bottom: 10px;
}

/* ===================== STATUS COLORS ===================== */
.Stadid {
    background-color: rgba(0, 180, 216, 0.12);
    border: 2px solid rgba(0, 119, 182, 0.7);
    border-radius: 8px;
    width: 100% !important;
}

.Fallid {
    background-color: rgba(211, 47, 47, 0.10);
    border: 2px solid rgba(211, 47, 47, 0.7);
    border-radius: 8px;
    width: 100% !important;
}

.red { color: #D32F2F; }
.green { color: #2E7D32; }
.redbg { background-color: #D32F2F; }
.greenbg { background-color: #2E7D32; }

.frumherji-Blue { color: #333995; }

/* ===================== LAYOUT UTILITIES ===================== */
.hidden { visibility: hidden; }

.fitWidth {
    min-width: min-content;
    width: fit-content;
    display: contents;
}

.alignCenter { text-align-last: center; }
.txt_black { color: black; }
.boldW { font-weight: bold; }
.text-right { text-align: right; }
.leanLeft { text-align: left; }
.zindex100 { z-index: 100; }
.textRed { color: red; }
.fontsize18 { font-size: 18px !important; }
.bluebackground { background-color: #00B4D8; }

.twoSixtyWidth { min-width: 260px; max-width: 260px; }
.limWidth { width: 80% !important; }
.w-15 { width: 15% !important; }
.mt-10 { margin-top: 10px; }

.stigAlls {
    border: 2px solid #333995;
    border-radius: 4px;
    width: 30px;
    text-align: center;
    display: inline-block;
    font-weight: 600;
    color: #333995;
}

.stigMenu { width: 350px; display: flex; }

.skraNidurstodurGridLen { max-width: 100%; }
.skraNidurstodurFeedBack { max-width: fit-content; }
.skraNidurstodurDialog { padding-top: 50px; }

/* ===================== SIZE HELPERS ===================== */
.size1rem { width: 1rem; }
.size2rem { width: 2rem; }
.size3rem { width: 3rem; }
.size4rem { width: 4rem; }
.size5rem { width: 5rem; }
.size6rem { width: 6rem; }
.size7rem { width: 7rem; }
.size8rem { width: 8rem; }
.size9rem { width: 9rem; }
.size10rem { width: 10rem; }
.size15rem { width: 15rem; }

/* ===================== RESPONSIVE ===================== */
.frumherji-Responsive-Min-Sida {
    background: linear-gradient(90deg, #1E2369 0%, #333995 100%);
    min-height: 55px;
    max-height: 55px;
    max-width: 100%;
}

@media (max-width: 470px) {
    #frumlogo { content: url("/img/hvitt-frumherji-logo-only.png"); }
}

@media (max-width: 450px) {
    .frumherji-containter-min-sida-low-res { display: table-cell; }
    .frumherji-Responsive-Min-Sida { min-width: 420px; }
}

/* ===================== MISC ===================== */
.mobile-box {
    padding-top: 70px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
    width: auto;
}

.footer-box {
    padding-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

.footertext {
    color: #333995;
    text-decoration: none;
    margin-top: 2em;
    font-weight: 600;
    font-size: 14px;
}

.islandfont {
    padding-top: 16px;
    font-weight: bold;
    font-size: 14px;
    color: black;
}

.login-text { font-weight: 800; }
.custom-class { background-color: #f4f6fb !important; }

.blazor-input-style {
    min-width: 240px;
    max-width: 240px;
    height: 50px;
    margin-top: 15px;
}

.timaskraColMany { width: 8.333%; }
.timaskraCol { width: 8.333%; height: 100%; display: inline-block; }

.borderRed { border: 1px solid #D32F2F; }
.borderBlack { border: 1px solid black; }

.mdc-select__menu.mdc-menu.mdc-menu-surface.mdc-menu-surface--open.mdc-menu-surface--is-open-below {
    max-height: 370px !important;
}

input::placeholder { overflow: visible; color: #333995; }

.frum-placeholder::-webkit-input-placeholder {
    color: #333995;
    font-size: 0.7em;
    font-weight: 800;
    vertical-align: text-top;
    top: 13px;
    left: 13px;
    position: absolute;
}

.modalImgSize { width: 100%; height: 100%; }