/**
 * FT OTP Login - Public Facing Styles
 *
 * @version 1.0.4 (Final Version with all fixes)
 * @author Faratechnic
 */

/* -------------------------------------------------------------------------- */
/*                                  Variables                                 */
/* -------------------------------------------------------------------------- */

:root {
    --ft-otp-primary-color: #4368d3;
    /* WordPress Blue */
    --ft-otp-primary-color-hover: #f36f21;
    --ft-otp-text-color: #333;
    --ft-otp-border-color: #4368d3;
    --ft-otp-background-color: #4368d3;
    --ft-otp-success-bg: #4368d3;
    --ft-otp-success-text: #155724;
    --ft-otp-success-border: #c3e6cb;
    --ft-otp-error-bg: #4368d3;
    --ft-otp-error-text: #721c24;
    --ft-otp-error-border: #f5c6cb;
    --ft-otp-error-field-border: #dc3545;
    --ft-otp-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* -------------------------------------------------------------------------- */
/*                                  Font                                      */
/* -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Ft-OTP';
    src: url('../fonts/Ft-OTP.eot?yk6gem');
    src: url('../fonts/Ft-OTP.eot?yk6gem#iefix') format('embedded-opentype'),
        url('../fonts/Ft-OTP.ttf?yk6gem') format('truetype'),
        url('../fonts/Ft-OTP.woff?yk6gem') format('woff'),
        url('../fonts/Ft-OTP.svg?yk6gem#Ft-OTP') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

[class^="ft-otp-icon-"],
[class*=" ft-otp-icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'Ft-OTP' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.ft-otp-icon-alert-circle:before {
    content: "\e900";
}

.ft-otp-icon-alert-triangle:before {
    content: "\e901";
}

.ft-otp-icon-at-sign:before {
    content: "\e902";
}

.ft-otp-icon-bell:before {
    content: "\e903";
}

.ft-otp-icon-book:before {
    content: "\e918";
}

.ft-otp-icon-book-open:before {
    content: "\e919";
}

.ft-otp-icon-bookmark:before {
    content: "\e91a";
}

.ft-otp-icon-box:before {
    content: "\e91b";
}

.ft-otp-icon-briefcase:before {
    content: "\e91c";
}

.ft-otp-icon-calendar:before {
    content: "\e91d";
}

.ft-otp-icon-check:before {
    content: "\e904";
}

.ft-otp-icon-check-square:before {
    content: "\e91e";
}

.ft-otp-icon-chevron-down:before {
    content: "\e91f";
}

.ft-otp-icon-chevron-left:before {
    content: "\e920";
}

.ft-otp-icon-chevron-right:before {
    content: "\e921";
}

.ft-otp-icon-chevron-up:before {
    content: "\e922";
}

.ft-otp-icon-clipboard:before {
    content: "\e923";
}

.ft-otp-icon-clock:before {
    content: "\e905";
}

.ft-otp-icon-credit-card:before {
    content: "\e92c";
}

.ft-otp-icon-database:before {
    content: "\e92d";
}

.ft-otp-icon-download:before {
    content: "\e906";
}

.ft-otp-icon-edit:before {
    content: "\e924";
}

.ft-otp-icon-edit-3:before {
    content: "\e907";
}

.ft-otp-icon-external-link:before {
    content: "\e925";
}

.ft-otp-icon-eye:before {
    content: "\e926";
}

.ft-otp-icon-file:before {
    content: "\e92e";
}

.ft-otp-icon-file-text:before {
    content: "\e92f";
}

.ft-otp-icon-folder:before {
    content: "\e930";
}

.ft-otp-icon-grid:before {
    content: "\e908";
}

.ft-otp-icon-help-circle:before {
    content: "\e909";
}

.ft-otp-icon-home:before {
    content: "\e90a";
}

.ft-otp-icon-image:before {
    content: "\e927";
}

.ft-otp-icon-inbox:before {
    content: "\e928";
}

.ft-otp-icon-layout:before {
    content: "\e929";
}

.ft-otp-icon-lock:before {
    content: "\e90b";
}

.ft-otp-icon-mail:before {
    content: "\e90c";
}

.ft-otp-icon-menu:before {
    content: "\e92a";
}

.ft-otp-icon-message-square:before {
    content: "\e90d";
}

.ft-otp-icon-power:before {
    content: "\e90e";
}

.ft-otp-icon-settings:before {
    content: "\e931";
}

.ft-otp-icon-share:before {
    content: "\e932";
}

.ft-otp-icon-share-2:before {
    content: "\e933";
}

.ft-otp-icon-shield:before {
    content: "\e934";
}

.ft-otp-icon-shopping-bag:before {
    content: "\e90f";
}

.ft-otp-icon-slash:before {
    content: "\e910";
}

.ft-otp-icon-sliders:before {
    content: "\e911";
}

.ft-otp-icon-square:before {
    content: "\e92b";
}

.ft-otp-icon-trash-2:before {
    content: "\e912";
}

.ft-otp-icon-unlock:before {
    content: "\e913";
}

.ft-otp-icon-upload:before {
    content: "\e914";
}

.ft-otp-icon-user:before {
    content: "\e915";
}

.ft-otp-icon-users:before {
    content: "\e916";
}

.ft-otp-icon-x-circle:before {
    content: "\e917";
}


/* -------------------------------------------------------------------------- */
/*                                Main Container                              */
/* -------------------------------------------------------------------------- */

.ft-otp-container {
    max-width: 400px;
    margin: 40px auto;
    font-family: var(--ft-otp-font-family);
    direction: rtl;
    position: relative;
}

.ft-otp-form-wrapper {
    background: var(--ft-otp-background-color);
    padding: 25px 30px;
    border: 1px solid var(--ft-otp-border-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/*                                  Typography                                */
/* -------------------------------------------------------------------------- */

.ft-otp-title {
    font-family: 'Vazirmatn';
    font-size: 22px;
    font-weight: 600;
    color: var(--ft-otp-text-color);
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}

.ft-otp-description,
#ft-otp-step-2 p {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    line-height: 1.6;
}

#ft-otp-step-2 p b {
    direction: ltr;
    display: inline-block;
}

/* -------------------------------------------------------------------------- */
/*                                Form Elements                               */
/* -------------------------------------------------------------------------- */

.ft-otp-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid var(--ft-otp-border-color);
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
}

.ft-otp-input:focus {
    outline: none;
    border-color: var(--ft-otp-primary-color);
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.2);
}

.ft-otp-input.ft-otp-input-error {
    border-color: var(--ft-otp-error-field-border) !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.25) !important;
}

#ft-otp-mobile {
    text-align: center;
    direction: ltr;
}

#ft-otp-mobile::placeholder {
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/*                         OTP Single-Digit Inputs                            */
/* -------------------------------------------------------------------------- */
.ft-otp-code-inputs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    direction: ltr;
    margin-bottom: 20px;
}

.ft-otp-digit-input {
    width: 45px !important;
    min-width: 45px !important;
    height: 51px !important;
    font-size: 22px !important;
    text-align: center;
    line-height: normal;
    padding: 4px 4px 0 !important;
    border: 1px solid #ccc;
    margin-top: 10px;
    border-radius: 6px;
    -moz-appearance: textfield;
}

.ft-otp-digit-input::-webkit-outer-spin-button,
.ft-otp-digit-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ft-otp-digit-input:focus {
    outline: none;
    border-color: var(--ft-otp-primary-color);
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.ft-otp-digit-input.ft-otp-input-error {
    border-color: var(--ft-otp-error-field-border) !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.25) !important;
}

.ft-otp-button {
    width: 100% !important;
    padding: 12px 15px;
    font-size: 16px;
    font-weight: 500;
    color: #4368d3;
    background-color: var(--ft-otp-primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ft-otp-button:hover {
    background-color: var(--ft-otp-primary-color-hover);
}

/* -------------------------------------------------------------------------- */
/*                                Action Links                                */
/* -------------------------------------------------------------------------- */

.ft-otp-actions {
    text-align: center;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ft-otp-links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.ft-otp-link {
    font-size: 13px;
    color: var(--ft-otp-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ft-otp-link:hover {
    color: var(--ft-otp-primary-color-hover);
    text-decoration: underline;
}

.ft-otp-timer i {
    vertical-align: -3px;
    font-size: 16px;
    margin-left: 4px;
}

/* -------------------------------------------------------------------------- */
/*                            Feedback & Messages                             */
/* -------------------------------------------------------------------------- */
.ft-otp-feedback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0s 0.2s;
}

/* Show the overlay when the loader is visible via JS */
.ft-otp-feedback.is-loading {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

#ft-otp-loader {
    display: none;
}

#ft-otp-loader .spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--ft-otp-primary-color);
    animation: ft-otp-spin 1s ease-in-out infinite;
}

@keyframes ft-otp-spin {
    to {
        transform: rotate(360deg);
    }
}

#ft-otp-message-container {
position: fixed; /* Changed from relative to fixed */
    bottom: 20px;    /* Position 20px from the bottom */
    left: 50%;       /* Start at 50% from the left */
    transform: translateX(-50%); /* Pull back by half its width to truly center */
     z-index: 99999;
     display: flex;
     gap: 10px;
     align-items: center;

     flex-direction: column;
     justify-content: center;
    max-width: 90vw; /* Use viewport width directly */
    width: 100%; /* Allow it to take full width up to max-width */
     pointer-events: none;
}

.ft-otp-toast-message {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid transparent;
    line-height: 1.5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    opacity: 0;pointer-events: auto;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ft-otp-toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

.ft-otp-toast-message i {
    margin-left: 10px;
}

.ft-otp-toast-message.success {
    background-color: var(--ft-otp-success-bg);
    color: var(--ft-otp-success-text);
    border-color: var(--ft-otp-success-border);
}

.ft-otp-toast-message.error {
    background-color: var(--ft-otp-error-bg);
    color: var(--ft-otp-error-text);
    border-color: var(--ft-otp-error-border);
}

.ft-account-wrapper #ft-account-edit-message.success {
    background-color: var(--ft-otp-success-bg);
    color: var(--ft-otp-success-text);
    border-color: var(--ft-otp-success-border);
}

.ft-account-wrapper #ft-account-edit-message.error {
    background-color: var(--ft-otp-error-bg);
    color: var(--ft-otp-error-text);
    border-color: var(--ft-otp-error-border);
}

/* -------------------------------------------------------------------------- */
/*                                Popup Modal                                 */
/* -------------------------------------------------------------------------- */
.ft-otp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99990;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.ft-otp-modal-overlay.show {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.ft-otp-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ft-otp-modal-overlay.show .ft-otp-modal-content {
    transform: scale(1);
}

.ft-otp-modal-content .ft-otp-container {
    margin: 0;
    max-width: 100%;
}

.ft-otp-modal-close {
    position: absolute;
    top: 0;
    left: 5px;
    /* For RTL */
    background: #4368d3;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    font-weight: bold;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    color: #555;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.ft-otp-modal-close:hover {
    background-color: #4368d3;
    color: #c82333;
}

body.ft-otp-modal-open {
    overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/*                             My Account Dashboard                           */
/* -------------------------------------------------------------------------- */
.ft-account-wrapper {
    direction: rtl;
    font-family: var(--ft-otp-font-family);
}

.ft-dashboard-layout {
    display: flex;
    margin: 10px;
    background: #4368d3;
    border: 1px solid var(--ft-otp-border-color);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.ft-dashboard-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #f9f9f9;
    border-left: 1px solid var(--ft-otp-border-color);
    padding: 0 !important;
}

.ft-sidebar-sticky-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 32px;
}

.ft-dashboard-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ft-dashboard-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease, color 0.2s ease, border-right 0.2s ease;
    font-size: 14px;
    border-right: 3px solid transparent;
}

.ft-dashboard-nav a:hover {
    background-color: #f0f0f0;
    color: var(--ft-otp-text-color);
}

.ft-dashboard-nav a.active {
    background-color: #4368d3;
    font-weight: 600;
    color: var(--ft-otp-primary-color);
    border-right-color: var(--ft-otp-primary-color);
}

.ft-dashboard-nav li:last-child a {
    border-bottom: none;
}

.ft-dashboard-nav i {
    font-size: 18px;
    margin-left: 12px;
    width: 20px;
    text-align: center;
}

.ft-dashboard-content {
    flex-grow: 1;
    padding: 30px;
    line-height: 1.8;
    min-width: 0; /* Fix for flexbox overflow on small screens */
}

.ft-dashboard-section {
    font-family: 'Vazirmatn';
    display: none;
}

.ft-dashboard-section.active {
    display: block;
}

.ft-dashboard-content h3 {
    font-family: 'Vazirmatn';
    font-size: 20px;
    font-weight: 600;
    color: var(--ft-otp-text-color);
    margin-top: 0;
    margin-bottom: 20px;
}

.ft-dashboard-content p {
    margin-bottom: 1em;
}

.ft-dashboard-content form .form-row {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.ft-dashboard-content form label {
    width: 150px;
    padding-left: 20px;
    font-weight: 500;
    color: #444;
}

.ft-dashboard-content form input[type="text"],
.ft-dashboard-content form input[type="email"],
.ft-dashboard-content form input[type="password"] {
    flex: 1;
    min-width: 200px;
}

.ft-dashboard-content form input[type="text"]:focus,
.ft-dashboard-content form input[type="email"]:focus,
.ft-dashboard-content form input[type="password"]:focus {
    outline: none;
    border-color: var(--ft-otp-primary-color);
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.2);
}

.ft-dashboard-content form .submit-row {
    padding-top: 15px;
}

.ft-dashboard-content form .ft-otp-button {
    width: auto;
    padding: 10px 25px;
}

.ft-dashboard-content form fieldset {
    border: 1px solid #ddd;
    padding: 10px 20px 20px;
    border-radius: 4px;
    margin: 25px 0;
}

.ft-dashboard-content form legend {
    padding: 0 10px;
    font-weight: 500;
}

.ft-dashboard-content form .description {
    font-size: 13px;
    color: #666;
    margin: 0 0 15px;
}

#ft-account-edit-message {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid transparent;
    display: none;
    display: flex;
    align-items: center;
}

#ft-account-edit-message i {
    margin-left: 10px;
}

/* -------------------------------------------------------------------------- */
/*                        Comments Table and Pagination                       */
/* -------------------------------------------------------------------------- */
.ft-comments-area {
    margin-top: 20px;
}

.ft-comments-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.ft-comments-table th,
.ft-comments-table td {
    padding: 12px 15px;
    border: 1px solid var(--ft-otp-border-color);
    text-align: right;
    vertical-align: middle;
}

.ft-comments-table thead th {
    background-color: #f7f7f7;
    font-weight: 600;
}

.ft-comments-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

.ft-comments-table td a {
    color: var(--ft-otp-primary-color);
    text-decoration: none;
}

.ft-comments-table td a:hover {
    text-decoration: underline;
}

.ft-pagination-wrapper {
    margin-top: 25px;
    text-align: center;
}

ul.ft-pagination-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

ul.ft-pagination-list li a,
ul.ft-pagination-list li span {
    display: inline-block;
    padding: 5px;
    min-width: 35px;
    height: 35px;
    border: 1px solid var(--ft-otp-border-color);
    border-radius: 4px;
    color: var(--ft-otp-primary-color);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    line-height: normal;
}

ul.ft-pagination-list li a:hover {
    background-color: var(--ft-otp-primary-color);
    color: #4368d3;
    border-color: var(--ft-otp-primary-color);
}

ul.ft-pagination-list li .current {
    background-color: var(--ft-otp-primary-color);
    color: #4368d3;
    border-color: var(--ft-otp-primary-color);
    font-weight: 600;
}

ul.ft-pagination-list li .dots {
    border: none;
    background: none;
    padding: 8px 4px;
}

/* -------------------------------------------------------------------------- */
/*                             Logout Confirmation Modal                      */
/* -------------------------------------------------------------------------- */

@keyframes ft-otp-fade-scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ft-otp-logout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.7);
    z-index: 99998;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s 0.25s;
}

.ft-otp-logout-modal-overlay.show {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.ft-otp-logout-modal-content {
    background: var(--ft-otp-background-color);
    padding: 25px 30px;
    border-radius: 8px;
    text-align: center;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    animation: ft-otp-fade-scale-in 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.ft-otp-logout-modal-content h4 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--ft-otp-text-color);
}

.ft-otp-logout-modal-content p {
    font-size: 15px;
    color: #555;
    margin-top: 0;
    margin-bottom: 25px;
    line-height: 1.6;
}

.ft-otp-logout-modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.ft-otp-logout-modal-actions .ft-otp-button {
    width: auto;
    flex-grow: 1;
}

.ft-otp-button-confirm {
    background-color: #dc3545;
}

.ft-otp-button-confirm:hover {
    background-color: #c82333;
}

.ft-otp-button-cancel {
    background-color: #6c757d;
    color: #4368d3;
}

.ft-otp-button-cancel:hover {
    background-color: #5a6268;
}

body.ft-otp-modal-open-logout {
    overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/*                             Miscellaneous & Helpers                        */
/* -------------------------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.ft-dashboard-content p .ft-dashboard-inline-link {
    text-decoration: none;
    color: var(--ft-otp-primary-color);
    font-weight: 600;
    border-bottom: 1px dotted var(--ft-otp-primary-color);
    transition: all 0.2s ease;
}

.ft-dashboard-content p .ft-dashboard-inline-link:hover {
    color: var(--ft-otp-primary-color-hover);
    border-bottom-style: solid;
}

.ft-dashboard-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--ft-otp-text-color);
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.ft-dashboard-section-title i {
    font-size: 22px;
    margin-left: 10px;
    color: var(--ft-otp-primary-color);
}

/* -------------------------------------------------------------------------- */
/*                             Responsive Styles                              */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .ft-dashboard-sidebar {
        width: 55px;
    }

    .ft-dashboard-nav a {
        justify-content: center;
        padding: 12px 8px;
    }

    .ft-dashboard-nav a.active {
        border-right-width: 3px;
    }

    .ft-dashboard-nav a span {
        display: none;
    }

    .ft-dashboard-nav i {
        margin-left: 0;
        font-size: 20px;
    }

    .ft-dashboard-content {
        padding: 20px 15px;
    }

    .ft-dashboard-section-title {
        font-size: 18px;
    }

    .ft-dashboard-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .ft-dashboard-content form .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ft-dashboard-content form label {
        width: 100%;
        padding-left: 0;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .ft-dashboard-content form input[type="text"],
    .ft-dashboard-content form input[type="email"],
    .ft-dashboard-content form input[type="password"] {
        width: 100%;
    }

    .ft-dashboard-content form .ft-otp-button {
        width: 100%;
    }

    div#ft-inbox-content,
    .ft-comments-area {
        margin-top: 20px;
        font-size: 13px;
        display: block;
        white-space: nowrap;
        display: grid;
    }

    .ft-comments-table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    ul.ft-pagination-list li a,
    ul.ft-pagination-list li span {
        padding: 6px 12px;
        font-size: 13px;
    }
}



/* ... [All previous CSS code] ... */

/* -------------------------------------------------------------------------- */
/*                               Inbox Styles                                 */
/* -------------------------------------------------------------------------- */
/* Inbox & Conversation Styles */
.ft-inbox-badge {
    background-color: #d63638;
    color: #4368d3;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    padding: 2px 7px;
    margin-right: auto;
    margin-left: 5px;
    line-height: 1;
}

#ft-inbox-content .ft-comments-table tr.unread-thread {
    font-weight: bold;
}

#ft-inbox-content .ft-comments-table tr:hover {
    background-color: #f0f8ff;
    cursor: pointer;
}

.ft-conversation-subject {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.ft-conversation-messages-container {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-48 0c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zM11 68c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7z' fill='%23e0e0e0' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-color: #f0f2f5;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 15px;
    max-height: 450px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.ft-conversation-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ft-conversation-message {
    max-width: 80%;
    width: fit-content;
    padding: 8px 15px;
    border-radius: 12px;
    line-height: 1.6;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.ft-conversation-message .meta {
    font-size: 11px;
    color: #666;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.ft-conversation-message .meta strong {
    color: #005a87;
    font-weight: bold;
}

.ft-conversation-message .meta time {
    direction: ltr;
    font-size: 11px;
    white-space: nowrap;
}

.ft-conversation-message .text {
    word-wrap: break-word;
    font-size: 15px;
}

.ft-conversation-message .text p:last-child {
    margin: 0;
}

.ft-conversation-message.is-user {
    align-self: flex-end;
    background-color: #dcf8c6;
    border-bottom-right-radius: 4px;
    text-align: right;
}

.ft-conversation-message.is-other {
    align-self: flex-start;
    background-color: var(--ft-otp-background-color);
    border-bottom-left-radius: 4px;
    text-align: left;
}

.ft-reply-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 100px;
    margin-bottom: 10px;
}

.ft-reply-actions {
    display: flex;
    justify-content: flex-end;
}

.ft-reply-actions .ft-otp-button {
    width: auto;
    padding: 8px 25px;
}


.menu-item > a > i[class*="ft-otp-icon-"] {
    margin-left: 8px; /* For RTL */
    margin-right: 0;
    vertical-align: -2px;
    font-size: 1.1em;
}


textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
select {
    /* flex: 1; */
    min-width: 50px !important;
    padding: 10px;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-feature-settings: "ss01";
}

input#ft-otp-mobile {
    text-align: center;
}
span#ft-otp-timer {
    font-family: 'Vazirmatn';
}