@font-face {
    font-family: "yekan";
    font-style: normal;
    font-display: swap;
    src: url("/assets/yekan/yekan.woff2") format("woff2"),
        url("/assets/yekan/yekan.woff") format("woff");
}

* {
    font-family: yekan;
}

a:hover {
    text-decoration: none;
}

.en {
    font-family: Arial, Tahoma;
}

.rtl {
    direction: rtl;
}

.ltr {
    direction: ltr;
}

.display-none {
    display: none;
}

body.wait-cursor,
body.wait-cursor * {
    cursor: progress !important;
}

.loading-overlay {
    position: absolute;
    cursor: wait;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    opacity: 0.6;
    z-index: 1000;
    background-color: var(--bg-primary);
}

.loading-overlay img {
    position: absolute;
    top: 49%;
    left: 48%;
}

.swal-modal {
    direction: rtl;
}

.swal-text-right .swal-text {
    text-align: right;
}

.swal-footer {
    text-align: center;
}

header {
    text-align: right;
    color: #fff;
    padding: 30px;
    background: #563d7c;
    box-shadow: 0 2px 10px #3b2d4f;
}

.registration-form {
    margin-top: 40px;
    text-align: center;
}

.registration-form h1 {
    font-size: 36px;
    font-weight: normal;
    line-height: 2.22;
    margin-left: -1px;
    display: inline-block;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: #20232e;
}

.test-card-wrapper {
    perspective: 1000px;
    height: 100%;
}

.test-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 30px 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
    color: #333;
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3ccfcf, #4257b2);
    transition: height 0.3s ease;
}

.test-card.form-card::before {
    background: linear-gradient(90deg, #ffcd1f, #ff9f1c);
}

.test-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    color: #4257b2;
}

.test-card:hover::before {
    height: 6px;
}

.test-card-icon {
    width: 80px;
    height: 80px;
    background: rgba(60, 207, 207, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    color: #3ccfcf;
}

.form-card .test-card-icon {
    background: rgba(255, 205, 31, 0.1);
    color: #ffcd1f;
}

.test-card:hover .test-card-icon {
    transform: rotate(5deg) scale(1.1);
    background: #3ccfcf;
    color: #fff;
}

.form-card:hover .test-card-icon {
    background: #ffcd1f;
}

.test-card-icon svg {
    width: 48px;
    height: 48px;
}

.test-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.test-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.test-action-label {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-block;
    align-self: center;
}

.test-card:hover .test-action-label {
    background: #4257b2;
    color: #fff;
}

.form-card:hover .test-action-label {
    background: #ffcd1f;
    color: #333;
}

.test-card.register-card::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.test-card.login-card::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.register-card .test-card-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.login-card .test-card-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* Dark Mode Extensions */
[data-theme="dark"] .test-card {
    background: #1e1e2d;
    border-color: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .test-card-icon {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .test-action-label {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .test-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.info-user-test .form-control {
    border-radius: 0;
}

/* HTML5 Boilerplate accessible hidden styles */
.quiz [type="radio"] {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* One radio button per line */
.registration-form [type="radio"]+span {
    display: block;
    cursor: pointer;
}

/* the basic, unchecked style */
.registration-form [type="radio"]+span:before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.25em;
    border-radius: 1em;
    border: 0.125em solid #fff;
    box-shadow: 0 0 0 0.15em #000;
    margin-left: 0.5em;
    transition: 0.5s ease all;
}

/* the checked style using the :checked pseudo class */
.registration-form [type="radio"]:checked+span:before {
    background: green;
    box-shadow: 0 0 0 0.25em #000;
}

.bd-callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #eee;
    border-left-width: 1px;
    border-left-color: rgb(238, 238, 238);
    border-left-width: .25rem;
    border-radius: .25rem;
}

.bd-callout-info {
    border-left-color: #5bc0de;
}

.test-styles .test-style-point {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    background-color: orange;
    -webkit-animation: pointAnimate 1s infinite;
    /* Safari 4.0 - 8.0 */
    animation: pointAnimate 1s infinite;
}

.test-styles .test-style-item {
    position: absolute;
}

/*/login*/
@media (min-width: 1200px) {
    .form-container {
        padding-top: 100px;
        width: 480px;
        margin: 0 auto;
        height: 100%;
    }

    .dropzone-container {
        width: 100%;
        padding: 0;
    }

}

.btn-register .btn {
    width: 100%;
    border: 1px solid #0372f2;
    color: #0372f2;
    border-radius: 21px !Important;
    text-transform: uppercase;
    display: inline-block;
    padding: 0 35px;
    text-align: center;
    line-height: 46px;
    font-size: 17px;
    margin-bottom: 20px;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-register .btn:hover {
    box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 50%);
}

.register-home {
    position: absolute;
    right: 0;
    bottom: 20%;
    left: 0;
}

.register-home .btn {
    width: 92%;
}

.register-home .btn.login {
    width: 92%;
    background: #3674e9;
    color: #ffffff;
}

.register-home .btn.login:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/*Questions*/
.box-questions {
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding-left: 0px;
    padding-right: 0px;
}

.box-questions .form-group div {
    font-size: 17px;
}

.box-questions .question-form .quiz .form-group label {
    position: relative;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    border-radius: 4px;
    box-shadow: rgb(226 226 226 / 80%) 0px 0px 0px 2px inset;
    color: rgb(82, 82, 82);
    max-width: 100%;
    min-width: 75px;
    min-height: 40px;
    outline: 0px;
    transition-property: background-color, color, border-color, opacity, box-shadow;
    transition-timing-function: ease-out;
    width: 100%;
    animation: 0.25s ease 0s 2 normal none running jBPXGM;
    cursor: pointer;
    opacity: 1;
    padding: 10px;
}

.box-questions .question-form .quiz .form-group.raven60 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
}

.box-questions .question-form .quiz .form-group.raven60 .radio-btn {
    flex: 1;
    min-width: 120px;
}

.box-questions .question-form .quiz .form-group.raven60 label {
    min-height: 120px;
    box-shadow: none;
}

.box-questions .question-form .quiz .form-group.raven60 label:hover {
    box-shadow: rgb(192, 224, 181) 0px 0px 0px 2px inset;
}

/* Button Questions*/
.quiz .radio-btn {
    position: relative;
    display: block;
}

.quiz .radio-btn label:after,
.radio-btn label:before {
    content: "";
    position: absolute;
    left: 11px;
    top: 11px;
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.quiz .radio-btn label:before {
    background: transparent;
    transition: 0.1s width cubic-bezier(0.075, 0.82, 0.165, 1) 0s, 0.3s height cubic-bezier(0.075, 0.82, 0.165, 2) 0.1s;
    z-index: 2;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: 13px;
    background-position: center;
    width: 0;
    height: 0;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNS4zIDEzLjIiPiAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTE0LjcuOGwtLjQtLjRhMS43IDEuNyAwIDAgMC0yLjMuMUw1LjIgOC4yIDMgNi40YTEuNyAxLjcgMCAwIDAtMi4zLjFMLjQgN2ExLjcgMS43IDAgMCAwIC4xIDIuM2wzLjggMy41YTEuNyAxLjcgMCAwIDAgMi40LS4xTDE1IDMuMWExLjcgMS43IDAgMCAwLS4yLTIuM3oiIGRhdGEtbmFtZT0iUGZhZCA0Ii8+PC9zdmc+);
}

.quiz .radio-btn input[type=radio] {
    display: none;
    position: absolute;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.quiz .radio-btn input[type=radio]:checked+label {
    box-shadow: 0px 0px 3px 1px #43a191;
}

.quiz .radio-btn input[type=radio]:checked+label:after {
    background: #43a191;
    float: left;
}

.quiz .radio-btn input[type=radio]:checked+label:before {
    width: 20px;
    height: 20px;
}

.link {
    font-family: "yekan";
}

.no-record-found {
    padding: 20px;
    font-size: 14px;
    border: 1px solid red;
}

.navbar-nav {
    padding-right: 40px;
}

.info-user {
    direction: rtl;
    font-size: 15px;
    border: 2px solid #e2e6ea;
    text-align: right;
}

.info-user label {
    font-weight: bold;
    margin-left: 10px;
}

/*/login*/
@media (min-width: 768px) {
    .info-tab {
        top: 50px;
    }
}

.visable-print {
    display: none;
}

.test-items .card-title {
    font-size: 1.5rem;
}

.box-chat {
    position: fixed;
    left: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.swal2-container {
    direction: rtl;
}

object.test-result {
    background: var(--bg-primary) no-repeat center;
    /* Animated SVG background to avoid rotating the entire element */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' width='40' height='40'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='rgba(59, 130, 246, 0.2)' stroke-width='4'/%3E%3Cpath fill='none' stroke='%233b82f6' stroke-width='4' d='M25 5 A20 20 0 0 1 45 25'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
    background-size: 44px 44px;
}

[data-theme="dark"] object.test-result {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' width='40' height='40'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='rgba(255, 255, 255, 0.1)' stroke-width='4'/%3E%3Cpath fill='none' stroke='%233b82f6' stroke-width='4' d='M25 5 A20 20 0 0 1 45 25'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
}

.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-color: hsl(200, 20%, 80%);
    }

    100% {
        background-color: hsl(200, 20%, 95%);
    }
}

.skeleton-text {
    width: 100%;
    height: 0.7rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

.skeleton-text__body {
    width: 75%;
}

.skeleton-footer {
    width: 30%;
}

.show-in-mobile {
    display: none;
}

@media (max-width: 1024px) {
    .show-in-mobile {
        display: block;
    }
}

.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-color: hsl(200, 20%, 80%);
    }

    100% {
        background-color: hsl(200, 20%, 95%);
    }
}

.skeleton-text {
    width: 100%;
    height: 0.7rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

.skeleton-text__body {
    width: 75%;
}

.skeleton-footer {
    width: 30%;
}

/* OTP Input Styles */
.otp-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr;
    /* Always LTR for digit sequences */
    margin-top: 15px;
    margin-bottom: 15px;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #e2e6ea;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
}

.otp-input:hover {
    border-color: #abb1b8;
}


.otp-input:focus {

    border-color: #3674e9;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(54, 116, 233, 0.25);
    outline: none;
}

.otp-input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

#otp-code-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    padding: 0;
    margin: 0;
    border: none;
}