html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* ===== Global Persian Typography ===== */

:root {
    --portal-font:
        Tahoma,
        "Segoe UI",
        Arial,
        sans-serif;
}

html,
body,
button,
input,
select,
textarea,
label,
a,
p,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--portal-font) !important;
}

body {
    line-height: 1.8;
    color: #18233a;
}

/* ===== Header Brand ===== */

.portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #162a4c !important;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.portal-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.portal-brand:hover {
    color: #0b57a3 !important;
}


/* ===== Persian typography ===== */

body,
button,
input,
select,
textarea {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

body {
    color: #18233a;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-weight: 700;
}



/* ===== Header ===== */

.navbar-brand {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    color: #17315b !important;
    font-size: 16px;
    font-weight: 700;
}

/* ===== Forms ===== */

.form-control {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

.btn {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
}
/* فونت عمومی پرتال */

body,
button,
input,
select,
textarea {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

.navbar-brand {
    color: #17315b !important;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
}

/* ===== Portal navbar ===== */

.portal-navbar {
    min-height: 68px;
    margin-bottom: 0 !important;
    padding: 8px 0;
}

.portal-navbar .container {
    display: flex;
    align-items: center;
}

.portal-navbar-brand {
    margin-left: 28px;
    margin-right: 0;
    color: #17315b !important;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.portal-navbar .navbar-collapse {
    align-items: center;
}

.portal-main-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto !important;
    margin-right: 0 !important;
}

.portal-navbar .nav-link {
    color: #35445a;
    font-size: 14px;
    text-decoration: none;
}

.portal-navbar .nav-link:hover {
    color: #1765ba;
}

.portal-account-menu {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-right: auto;
}

.portal-user-name {
    max-width: 220px;
    overflow: hidden;
    color: #657287;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-login-link {
    color: #155fae !important;
    font-weight: 600;
}

.portal-logout-button {
    padding: 7px 15px;
    color: #b42318;
    background: #fff2f0;
    border: 1px solid #ffd7d2;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.portal-logout-button:hover {
    color: #ffffff;
    background: #b42318;
    border-color: #b42318;
}

/* ===== Portal footer ===== */

.portal-footer {
    padding: 17px 0;
    color: #738095;
    background: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    text-align: center;
}

.portal-footer .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
}

.portal-footer a {
    color: #3068a8;
    text-decoration: none;
}

.portal-footer a:hover {
    text-decoration: underline;
}

.portal-footer-separator {
    color: #c2cad4;
}

@media (max-width: 576px) {
    .portal-navbar-brand {
        margin-left: 8px;
        font-size: 15px;
    }

    .portal-navbar .navbar-collapse {
        padding-top: 15px;
    }

    .portal-main-menu,
    .portal-account-menu {
        width: 100%;
        align-items: flex-start;
        margin: 0 !important;
        flex-direction: column;
        gap: 4px;
    }

    .portal-account-menu {
        margin-top: 10px !important;
        padding-top: 10px;
        border-top: 1px solid #e5eaf0;
    }

    .portal-footer-separator {
        display: none;
    }

    .portal-footer .container {
        flex-direction: column;
        gap: 4px;
    }
}
