:root{
    --primary-color:#dab351;
}

/* Fonts */
@font-face {
    font-family: 'Dana-Regular';
    src: url('../fonts/Dana-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
@font-face {
    font-family: 'Dana-Hairline';
    src: url('../fonts/Dana-Hairline.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
@font-face {
    font-family: 'Dana-Thin';
    src: url('../fonts/Dana-Thin.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
@font-face {
    font-family: 'Dana-UltraLight';
    src: url('../fonts/Dana-UltraLight.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
@font-face {
    font-family: 'Dana-Light';
    src: url('../fonts/Dana-Light.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
@font-face {
    font-family: 'Dana-DemiBold';
    src: url('../fonts/Dana-DemiBold.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
@font-face {
    font-family: 'Dana-Bold';
    src: url('../fonts/Dana-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
@font-face {
    font-family: 'Dana-ExtraBold';
    src: url('../fonts/Dana-ExtraBold.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
@font-face {
    font-family: 'Dana-Black';
    src: url('../fonts/Dana-Black.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
/* Fonts */

/* Login Page */
*{
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    font-family: 'Dana-Regular',sans-serif;
    list-style: none;
    box-sizing: border-box;
}
a{
    text-decoration: none;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}
html{
    font-size: 14px;
}
body{
    direction: rtl;
}
.jahan-login-form{
    width: 300px;
    margin: 4rem auto 0 auto;
    display: flex;
    flex-direction: column;
}
.jahan-login-form input{
    width: 100%;
    box-sizing: border-box;
}
.jahan-form .jahan-send-otp-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jahan-form #otpTimer {
    display: none;
    font-size: 1.15rem;
    margin-top: 20px;
}
.jahan-login-form input[type="text"],.jahan-login-form input[type="password"],input[type="text"],input[type="number"]{
    background: #f1f1f1;
    padding: 1rem;
    margin-bottom:.5rem;
    border-radius: 10px;
}
.jahan-login-form .jahan-submit-btn,.jahan-form .jahan-submit-btn {
    background: var(--primary-color);
    box-sizing: border-box;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 20px;
    cursor: pointer;
}
.jahan-login-form .jahan-submit-btn:hover,.jahan-form .jahan-submit-btn:hover{
    background: #c09e49;
}
.jahan-login-form .jahan-submit-btn.loading,.jahan-form .jahan-submit-btn.loading{
    background: #999;
    color: #222;
}
.jahan-submit-btn {
    position: relative;
    overflow: hidden;
}

.jahan-submit-btn .spinner {
    display: none;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

.jahan-submit-btn.loading {
    color: transparent;
    pointer-events: none;
}

.jahan-submit-btn.loading .spinner {
    display: block;
}
.jahan-submit-btn.loading .btn-text {
    display: none;
}
.jahan-submit-btn .btn-text {
    font-family: 'Dana-DemiBold',sans-serif;
    font-size: 1.1rem;
}

.jahan-login-form .jahan-logo{
    width: 150px;
    margin: 0 auto .5rem auto;
}
.jahan-logo {
    display: block;
    margin: 0 auto 20px;
    width: 100px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.jahan-star-box {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.jahan-star-box svg {
    transform: scale(0);
    opacity: 0;
    animation: star-pop 1s ease-out forwards;
}

.jahan-star-box svg:nth-child(1) {
    animation-delay: 1.2s;
}
.jahan-star-box svg:nth-child(2) {
    animation-delay: 1.4s;
}
.jahan-star-box svg:nth-child(3) {
    animation-delay: 1.6s;
}
.jahan-star-box svg:nth-child(4) {
    animation-delay: 1.8s;
}
.jahan-star-box svg:nth-child(5) {
    animation-delay: 2.0s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes star-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
/* Login Page */

/* Panel */
.jahan-panel-content-section{
    width: 300px;
    margin: 0 auto;
}
.jahan-panel-nav{
    width: 300px;
    margin: 0 auto;
    background: var(--primary-color);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}
.jahan-panel-nav a{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #222;
}
.jahan-panel-nav a svg{
    width: 30px;
    height: 30px;
}
.jahan-panel-nav a span{
    font-family: 'Dana-Bold',sans-serif;
}
form.jahan-form{
    margin-top: 2rem;
}
form.jahan-form input{
    width: 100%;
}
.jahan-redirect-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 1rem;
    color: #222;
    margin-top: 1rem;
}
.jahan-redirect-btn:hover{
    background: #eee;
}
.jahan-redirect-btn svg{
    width: 20px;
    height: 20px;
}
/* custom table */
.jahan-custom-table {
    width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
}
.jahan-table{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.jahan-custom-table th, .jahan-custom-table td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: center;
    white-space: nowrap;
}

.jahan-custom-table th {
    background-color: #f5f5f5;
}

.jahan-custom-table tbody tr:hover {
    background-color: #e0e0e0;
    cursor: pointer;
}
.jahan-history-btn{
    display: flex;
    align-items: center;
    gap: .5rem;
    border-radius: 5px;
    border: 1px solid #222;
    width: fit-content;
    padding: .5rem;
}
.jahan-history-btn span{
    font-family: 'Dana-Bold',sans-serif;
    color: #222;
}
.jahan-history-btn svg {
    width: 25px;
    height: 25px;
}
.jahan-history-btn.disable{
    opacity: .3;
}
.jahan-paginate-box{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 105%;
    margin-top: 1rem;
}

.jahan-otp-container {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    flex-direction: row-reverse;
    margin-top: 1rem;
    height: 0;
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    transition: all 0.3s ease;
}

.jahan-otp-container.active {
    height: auto;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.jahan-otp-input {
    width: 0;
    height: 0;
    border-radius: 6px;
    text-align: center;
    font-size: 1.3rem;
    font-family: 'Dana-DemiBold',sans-serif;
    transform: scale(0);
    opacity: 0;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.jahan-otp-input.show {
    transform: scale(1);
    opacity: 1;
    height: 45px;
}

.jahan-otp-input.error {
    border: 2px solid red;
    animation: shake 0.3s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-5px);
    }
    100% {
        transform: translateX(0);
    }
}
.jahan-otp-inputs {
    display: flex;
    gap: 1rem;
}
/* Panel */
@media (max-width: 768px) {
    .jahan-panel-content-section {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        flex-direction: column;
        width: 90%;
    }
    .jahan-redirect-btn{
        width: 100%;
        justify-content: center;
    }
    .jahan-table{
        width: 100%;
    }
    .jahan-custom-table,
    .jahan-custom-table thead,
    .jahan-custom-table tbody,
    .jahan-custom-table th,
    .jahan-custom-table td,
    .jahan-custom-table tr {
        display: block;
        width: 100%;
    }

    .jahan-custom-table thead {
        display: none;
    }

    .jahan-custom-table tr {
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 10px;
        background: #fff;
    }

    .jahan-custom-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .jahan-custom-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
    }
    .jahan-login-form{
        display: flex;
        justify-content: center;
        min-height: 100vh;
    }
    .jahan-login-form .jahan-submit-btn, .jahan-form .jahan-submit-btn{
        width: 100%;
    }
    .jahan-form #otpTimer{
        width: 150px;
        text-align: center;
        justify-content: center;
    }
}
