@font-face {
    font-family: "vazirmatn";
    src: url("/fonts/Vazirmatn-Thin.woff2");
    font-weight: 100;
}

@font-face {
    font-family: "vazirmatn";
    src: url("/fonts/Vazirmatn-ExtraLight.woff2");
    font-weight: 200;
}

@font-face {
    font-family: "vazirmatn";
    src: url("/fonts/Vazirmatn-Light.woff2");
    font-weight: 300;
}

@font-face {
    font-family: "vazirmatn";
    src: url("/fonts/Vazirmatn-Regular.woff2");
    font-weight: 400;
}

@font-face {
    font-family: "vazirmatn";
    src: url("/fonts/Vazirmatn-Medium.woff2");
    font-weight: 500;
}

@font-face {
    font-family: "vazirmatn";
    src: url("/fonts/Vazirmatn-SemiBold.woff2");
    font-weight: 600;
}

@font-face {
    font-family: "vazirmatn";
    src: url("/fonts/Vazirmatn-Bold.woff2");
    font-weight: 700;
}

@font-face {
    font-family: "vazirmatn";
    src: url("/fonts/Vazirmatn-ExtraBold.woff2");
    font-weight: 800;
}

@font-face {
    font-family: "vazirmatn";
    src: url("/fonts/Vazirmatn-Black.woff2");
    font-weight: 900;
}

* {
    font-family: "vazirmatn";
}

html {
    font-size: 14px;
}

body {
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 18px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #eee;
    margin: 10px;
    border: 4px solid #fff;
    border-radius: 99px;
}

@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;
    background-image: url("https://triage.asanglobal.ir/images/bg.svg");
    background-repeat: no-repeat;
    background-size: cover;
}

.w-40 {
    width: 40%;
}

.bg-nav {
    background-color: #1f7a8b !important;
    color: white !important;
}

/*x.main-container {
    height: 60vh;
}*/

.main-card {
    background-color: white;
    height: 75vh;
    width: 25vw;
    border-radius: 15px;
    box-shadow: 3px 6px 15px 2px gray;
}

.center-main-card {
    width: 100%;
}

    .center-main-card div {
        width: 100%;
        text-align: -webkit-center;
    }

    .center-main-card input {
        width: 80%;
        border-radius: 10px;
        border: 1px solid #bedaf6;
        text-align: center;
    }

::placeholder {
    color: #bedaf6;
    opacity: 1; /* Firefox */
}

.w-80 {
    width: 80% !important;
}

.input-group-text {
    background-color: #1f7a8b;
}

.log-in {
    background-color: #1f7a8b;
    color: white;
    border-color: transparent;
    border-radius: 10px;
    padding: 10px;
}

.mybtn {
    background-color: #1f7a8b;
    color: white;
    border-color: transparent;
    border-radius: 10px;
    padding: 10px;
}

.bottom-main-card {
    margin-top: 5vh;
}

.top-main-card {
    height: 20vh;
    width: 10vw;
    background-image: url("../images/v-behdasht.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
}

.phone-icon {
    width: 200px;
}

label {
    color: #1f7a8b;
}

.main-card-forms {
    background-color: white;
    height: 35vh;
    width: 30%;
    border-radius: 15px;
    box-shadow: 3px 6px 15px 2px gray;
}

    .main-card-forms:hover {
        box-shadow: 3px 6px 15px 2px black;
        cursor: pointer;
    }

.title {
    color: #022b3a;
    text-decoration: solid;
    font-weight: 1000;
    font-size: x-large;
}

.succes {
    color: #72fe43;
}

.fail {
    color: #e94e4e;
}

.active-q {
    direction: rtl;
    color: #296d00;
    cursor: pointer;
}

.deactive-q {
    direction: rtl;
    color: #ff0000;
    cursor: pointer;
}

.m10 {
    margin: 10vh;
}

.m1 {
    margin: 1vh;
}

.overflow-edit {
    border: 1px solid #bedaf6;
    border-radius: 15px;
    overflow: auto;
    height: 45vh;
}

.vw25 {
    width: 23vw !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
label {
    color: #022b3a;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    width: 100%;
    height: 60px;
    background: #1a6875;
    box-shadow: 0 -10px 25px #00000033;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

    header a {
        font-family: "Vazirmatn";
        font-weight: bold;
        font-size: 16px;
        color: #fff;
        text-decoration: none;
        transition: 0.25s;
    }

        header a:hover {
            color: #ccc;
        }

    header .logo {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 20px;
    }

    header .action-bar {
        display: flex;
        align-items: center;
    }

    header .logout {
        color: #e75151;
    }

        header .logout:hover {
            color: #c74c4c;
        }

    header .spacer {
        display: inline-block;
        width: 3px;
        height: 20px;
        border-radius: 999px;
        margin: 0 15px;
        background-color: #d9d9d9;
    }

.action {
    cursor: pointer;
}

.shadow {
}

.box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 300px;
    background-color: #fff;
    border-radius: 15px;
    padding: 30px 50px;
    border: 1px solid #e0e4f1;
    box-shadow: 5px 5px 10px #0003;
    box-sizing: content-box;
}

.input-container {
    display: flex;
    height: 45px;
    align-items: stretch;
    border: 1px solid #bedaf6;
    border-radius: 10px;
    overflow: hidden;
}

    .input-container:focus-within {
        border-color: #1f7a8b;
    }

    .input-container input {
        background: none;
        border: none;
        outline: none;
        width: 100%;
        padding: 0 10px;
        text-align: center;
    }

    .input-container:has(input:invalid) {
        border-color: #e94e4e;
    }

    .input-container button {
        background-color: #e0e4f1;
        width: 45px;
        height: 45px;
        border: none;
        outline: none;
        padding: 0;
    }

    .input-container .icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 45px;
        cursor: pointer;
        background-color: #1f7a8b;
    }

input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}

.radio-container input {
    display: none;
}

.radio-container .radio-label {
    display: flex;
    /* background-image: url("male.svg"); */
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #f5f5f5;
    border: 2px solid #bedaf6;
    color: #bedaf6;
    border-radius: 999px;
}

.radio-container input:checked + .radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #1f7a8b;
    color: #fff;
    border: none;
    border-radius: 999px;
}

.primary-btn {
    height: 42px;
    padding: 10px 20px;
    gap: 10px;
    text-align: center;
    background-color: #1f7a8b;
    color: white;
    border: none;
    font-weight: 600;
    border-radius: 999px;
}

    .primary-btn:hover {
        background-color: #022b3a;
        cursor: pointer;
    }

    .primary-btn:active {
        background-color: #1f7a8b;
        color: #e0e4f1;
    }

    .primary-btn:disabled {
        background-color: #E0E4F1;
        color: #98aec5;
    }

.secondary-btn {
    height: 42px;
    padding: 10px 20px;
    gap: 10px;
    text-align: center;
    background-color: #fff;
    color: #022b3a;
    border: 1px solid #bedaf6;
    font-weight: 600;
    border-radius: 999px;
}

    .secondary-btn:hover {
        background-color: #00000033;
        border-width: 2px;
    }

    .secondary-btn:active {
        background-color: #f5f5f5;
        border-width: 1px;
    }

    .secondary-btn:disabled {
        background-color: #FFFFFF;
        border-color: #98aec5;
    }

.question-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 500px;
    height: 55vh;
    padding: 2vh;
    margin: 0;
}

.progress {
    height: 10px;
    border-radius: 999px;
}

.progress-bar {
    background-color: #1f7a8b;
}

.next-question {
    border-radius: 25px 0px 0px 25px;
}

.previous-question {
    border-radius: 0px 25px 25px 0px;
}

.answer-options {
    height: 15vh;
    padding: 1vh;
    border: 1px solid #bedaf6;
    border-radius: 10px;
    overflow: auto;
}

.selected {
    background-color: #1f7a8b;
    color: white;
}

.answer-options .answer-item {
    padding: 5px 10px;
    border-radius: 10px;
    text-align: right;
}

    .answer-options .answer-item:hover {
        background-color: #0001;
    }



.answer-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 500px;
    height: 50vh;
    padding: 2vh;
}

.question-list {
    height: 100%;
    border: 1px solid #bedaf6;
    border-radius: 10px;
    overflow: auto;
    padding: 10px;
    scroll-behavior: smooth;
}

.question-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 10px;
}

    .question-item:not(.selected):hover {
        cursor: pointer;
        background-color: #0001;
    }

.question-item-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0 10px;
    user-select: none;
}

    .question-item-dropdown .title {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

        .question-item-dropdown .title img {
            transform: rotate(0);
            transition: .25s;
        }

    .question-item-dropdown.active .title img {
        transform: rotate(180deg);
    }

    .question-item-dropdown .answers-contianer {
        display: none;
    }

    .question-item-dropdown.active .answers-contianer {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .question-item-dropdown .answers-contianer .answer-item {
        padding: 5px 10px;
        border-radius: 10px;
        cursor: pointer;
    }

        .question-item-dropdown .answers-contianer .answer-item:not(.active):hover {
            background-color: #0001;
        }

.answerd .answerd-icon {
    visibility: visible;
}

.answerd-icon {
    visibility: hidden;
}

.question-item.selected .answerd-icon {
    visibility: hidden;
}

.forms-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 10px;
}

    .forms-item:not(.selected):hover {
        cursor: pointer;
        background-color: #0001;
    }

.list-box-container {
    border: 1px solid #bedaf6;
    border-radius: 10px;
    overflow: auto;
    scroll-behavior: smooth;
    height: 300px;
}

.list-box {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .list-box td {
        padding: 10px 15px;
    }

    .list-box thead {
        position: sticky;
        top: 0;
        background-color: #fff;
    }

        .list-box thead .spacer td {
            padding-top: 0;
            padding-bottom: 0;
        }

        .list-box thead .spacer .line {
            border-bottom: 1px solid #bedaf6;
        }

.search-text {
    color: #0070c4f2;
    font-size: larger;
    border: none;
    text-decoration: none;
    width: 100%;
    border-bottom: 1px solid;
}

    .search-text:focus {
        border: none;
        outline: none;
        border-bottom: 1px solid;
    }

.forms-list {
    width: 100%;
    height: 36vh;
    margin: 1vw;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: self-end;
    border: 1px solid #bedaf6;
    border-radius: 10px;
    overflow: auto;
    padding: 10px;
    scroll-behavior: smooth;
}

.btn-action {
    width: 250px;
}

.alerts-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 10px;
    /* align-items: center; */
    z-index: 20;
}

.alert {
    padding: 20px;
    min-width: 300px;
    background-color: #F5F5F5;
    border: 1px solid #98aec5;
    border-radius: 10px;
    overflow: hidden;
    text-align: right;
    animation: close-alert 8s forwards;
    margin-bottom: 10px;
}

    .alert:hover {
        animation: none;
    }

@keyframes close-alert {
    0% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    99% {
        opacity: 0;
        width: auto;
        height: auto;
        margin-bottom: 10px;
        padding: 20px;
    }

    100% {
        margin-bottom: 0;
        opacity: 0;
        width: 0;
        height: 0;
        padding: 0;
    }
}

.alert::before {
    display: inline-block;
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #98aec5;
    animation: close-alert-progress 8s forwards;
    border-radius: 999px;
}

.alert:hover::before {
    animation: none;
}

@keyframes close-alert-progress {
    to {
        width: 0;
    }
}

.alert .close-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    background: none;
    border: none;
    outline: none;
}

.question-box-new {
    display: flex;
    flex-direction: column;
    height: 300px;
    border: 1px solid #bedaf6;
    border-radius: 10px;
    overflow: auto;
    padding: 20px;
    scroll-behavior: smooth;
    gap: 20px;
}

    .question-box-new .question-item-new {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

.question-item-new .question-answer-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 10px;
    row-gap: 5px;
}

.question-item-new .line {
    display: block !important;
    height: 1px;
    background-color: #bedaf6;
}

.question-item-new:last-child .line {
    display: none;
}

.microphone-btn {
    width: 60px;
    height: 60px;
}

#microphone-btn.active {
    background-color: #1f7a8b;
}

.w-85 {
    width: 85% !important;
}

.route {
    margin-top: 10px;
}

    .route a {
        color: gray;
        text-decoration: none;
    }

        .route a:hover {
            color: #1a6875;
        }

    .route:hover {
        cursor: pointer;
    }

    .route.active::before {
        color: #1a6875;
        content: "/";
        margin-right: 4px;
        margin-left: 4px;
    }


@media (max-width: 576px) {
    header .logo > span {
        display: none;
    }

    header a {
        font-size: smaller;
    }

    .phone-icon {
        width: 100px;
    }

    .h1, h3, .h3 {
        font-size: medium;
        text-align:center;
    }

    .box {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .question-box {
        width: 100%;
    }

    .w-full-sm {
        width: 100% !important;
    }
}
