/* Wizard Progress Bar */
/* --- REMOVED OLD HORIZONTAL WIZARD STYLES --- */

/* =============================================== */
/* START: NEW WIZARD LAYOUT & VERTICAL PROGRESS BAR */
/* =============================================== */



/* =============================================== */
/* END: NEW WIZARD LAYOUT & VERTICAL PROGRESS BAR   */
/* =============================================== */


/* Form Styles */
.ft-confru-form-step h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
        margin-top: 0;
    margin-bottom: 1.5em;
    font-size: 1.2em;
}

.ft-confru-form-step .ft-input-box {
    margin-bottom: 0;
}

.ft-confru-form-wrapper label {
    font-weight: bold;
    display: block;
}
.ft-confru-form-wrapper input[type="text"],
.ft-confru-form-wrapper input[type="email"],
.ft-confru-form-wrapper textarea,
.ft-confru-form-wrapper select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 0;
    box-sizing: border-box;
    height: 42px; /* Set a consistent height */
}
.ft-confru-form-wrapper textarea {
    height: auto;
}
.ft-confru-form-wrapper p {
    margin-bottom: 1.5em;
}

/* --- NEW: Form Row for side-by-side fields --- */
.ft-confru-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    align-items: start;
}
.ft-confru-form-row p {
    margin: 0;
}


/* Character Counter Style */
.char-counter {
    display: block;
    text-align: left; /* for RTL */
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

/* =========================================== */
/* START: Author Repeater with CSS Grid        */
/* =========================================== */
.ft-confru-authors-repeater {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1em;
}

.authors-repeater-header,
.author-row {
    display: grid;
    /* Columns: Name, Affiliation, Email, Corr. Author, Actions */
    grid-template-columns: 2fr 2fr 2.5fr 1fr 0.7fr;
    align-items: stretch; /* CRITICAL: Make all cells in a row equal height */
}

.authors-repeater-header {
    background-color: #f7f7f7;
    font-weight: bold;
    font-size: 0.9em;
    color: #444;
}

.authors-repeater-header .repeater-header-cell {
    padding: 10px 12px;
    align-self: center;
}

.authors-repeater-body .author-row {
    border-top: 1px solid #ddd;
}
.authors-repeater-body .author-row:first-child {
    border-top: none;
}

.repeater-cell {
    padding: 10px 12px;
    border-left: 1px solid #eee; /* Vertical lines for RTL */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Default: content (input + error) aligns to top */
}
.repeater-cell:last-child {
    border-left: none;
}
/* Center content for radio button and delete button cells */
.repeater-cell.repeater-col-corr,
.repeater-cell.repeater-col-actions {
    justify-content: center;
}


.repeater-cell input[type="text"],
.repeater-cell input[type="email"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    height: 38px;
    margin: 0;
}
.repeater-cell input[type="radio"] {
    margin: 0 auto;
    display: block;
}

.repeater-cell .error-message {
    display: none;
    color: #d94f4f;
    font-size: 0.85em;
    min-height: 1.2em; /* Ensure space for message */
    margin-top: 5px;
    line-height: 1.2;
}

.repeater-header-cell .required {
    color: #d94f4f;
}

.repeater-cell.repeater-col-actions {
    text-align: center;
}
.repeater-cell .remove-author-btn {
    background: none;
    border: none;
    color: #a00;
    cursor: pointer;
    padding: 5px;
    opacity: 0.8;
}
.repeater-cell .remove-author-btn:hover {
    opacity: 1;
    color: #d00;
}
.repeater-cell .remove-author-btn .dashicons {
    font-size: 20px;
}

/* Responsive styles for author repeater */
@media (max-width: 850px) {
    .authors-repeater-header {
        display: none; /* Hide header on mobile */
    }
    .author-row {
        grid-template-columns: 1fr; /* Stack all cells */
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 1em;
        padding: 1em;
        position: relative;
        align-items: stretch;
    }
    .authors-repeater-body .author-row {
        border-top: none;
    }
    .repeater-cell {
        padding: 0 0 1em 0;
        border-left: none;
        justify-content: flex-start;
    }
    /* Use pseudo-elements to show labels */
    .repeater-cell::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
        font-size: 0.9em;
    }
    .repeater-cell.repeater-col-actions {
        position: absolute;
        top: 5px;
        left: 5px;
        padding: 0;
    }
    .repeater-cell.repeater-col-actions::before {
        display: none; /* No label for actions cell */
    }
    .repeater-cell.repeater-col-actions .remove-author-btn {
        background-color: #f1f1f1;
        border-radius: 50%;
        width: 32px;
        height: 32px;
    }
    .repeater-cell.repeater-col-corr {
        text-align: right;
        flex-direction: row;
        align-items: center;
    }
    .repeater-cell.repeater-col-corr input {
        display: inline-block;
        margin: 0 0 0 10px;
    }
}
/* =========================================== */
/* END: Author Repeater Styles                 */
/* =========================================== */


.ft-confru-navigation-buttons {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}
.ft-confru-navigation-buttons .button {
    padding: 10px 20px;
    font-size: 1em;
}
.payment-info-box {
    background: #E3F2FD;
    border: 1px solid #2196F3;
    padding: 1em;
    margin: 1.5em 0;
    border-radius: 6px;
}
.payment-info-box h4 {
    margin-top: 0;
    font-size: 20px;
}
#review-container h3 {
    margin-top: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
#review-container ul {
    list-style-type: none;
    padding-right: 0;
}
#review-container ul li {
    padding: 5px;
    line-height: normal;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}
#review-container ul li strong {
    display: block;
    color: #555;
}
#review-container ul li span {
    padding-right: 10px;
    line-height: normal;
}
#review-container ul li .ft-confru-reviewTitle {
    line-height: 27px;
    min-width: 180px;
    display: flex;
    align-items: baseline;
        font-weight: bold;
}


.ft-confru-reviewTitle:before {
    content: "";
    margin-left: 10px;
    font-size: 18px;
    width: 5px;
    height: 5px;
    background: #a1a7c9;
    display: inline-flex
;
}

/* Custom File Upload Styling */
.ft-confru-file-upload-wrapper {
    margin-bottom: 1.5em;
    gap: 5px;
    display: flex;
    flex-direction: column;
}
.ft-confru-file-upload-wrapper > label {
    font-weight: bold;
    margin-bottom: 8px;
}
.ft-confru-file-input-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px dashed #dbdbdb;
    border-radius: 4px;
    padding: 6px 10px;
}
.ft-confru-file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}
.ft-confru-file-label {
    display: inline-block;
    cursor: pointer;
    margin: 0 !important;
    color: #9b9b9b !important;
}
.ft-confru-file-name {
    color: #555;
    background: #f9f9f9;
    padding: 8px 12px;
    border: 1px solid #eee;
    display: none;
    flex-grow: 1;
    height: auto;
    min-height: 37px;
    line-height: 1.5;
    font-size: 14px;
    cursor: pointer;
}
.ft-confru-file-upload-wrapper .description {
    font-size: 0.85em;
    color: #666;
    display: block;
    margin-top: 5px;
}


/* Error styling */
.ft-confru-form-messages .ft-confru-error {
    color: #d94f4f;
    background: #fbeaea;
    border: 1px solid #d94f4f;
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 4px;
}
.error-message {
    color: #d94f4f;
    font-size: 0.9em;
    display: block;
    margin-top: 4px;
    min-height: 1em;
}
input.error, textarea.error, select.error, .select2-container--default.select2-container--open.error, .select2-selection.error {
    border-color: #d94f4f !important;
}

/* --- NEW: Select2 RTL Styles --- */
.select2-container {
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    position: relative;
    vertical-align: middle;
    width: 100% !important; /* Ensure it fills container */
}
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    height: 42px; /* Match other form fields */
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 40px; /* Vertically center text */
    padding-right: 12px !important;
    padding-left: 30px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    position: absolute;
    top: 1px;
    left: 1px; /* Arrow on the left for RTL */
    right: auto;
    width: 20px;
}
.select2-dropdown {
    direction: rtl; /* Ensure dropdown content is RTL */
    text-align: right;
}


/* --- Success/Error Message Styling --- */
.ft-confru-form-messages .ft-confru-message {
    padding: 1em;
    margin-bottom: 1.5em;
    border: 1px solid;
    border-radius: 4px;
    list-style: none; /* If we use ul inside */
}

.ft-confru-form-messages .ft-confru-error,
.ft-confru-form-wrapper .ft-confru-message.ft-confru-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* NEW STYLE FOR SUCCESS */
.ft-confru-form-messages .ft-confru-success,
.ft-confru-form-wrapper .ft-confru-message.ft-confru-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}


/* Styles for "My Articles" table inside the user dashboard */
.ft-confru-articles-table {
    width: 100%;
    border-collapse: collapse;
    margin:10px 0 30px;
    font-size: 14px;
    border: 1px solid #ddd;
}

.ft-confru-articles-table th,
.ft-confru-articles-table td {
    padding: 12px 8px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

.ft-confru-articles-table thead th {
    background-color: #f7f7f7;
    font-weight: normal;
}

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

.ft-confru-articles-table .button,
.ft-confru-articles-table .button-disabled {
text-decoration: none;
    padding: 3px 7px 2px;
    font-size: 12px;
    border-radius: 3px;
    background-color: #78b0d0;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: inline-flex
;
}
.ft-confru-articles-table .button:hover {
    background-color: #4f8db1;
    color: #fff;
}
.ft-confru-articles-table .button-disabled {
    background-color: #a0a5aa;
    cursor: not-allowed;
    opacity: 0.7;
}

.ft-confru-pagination {
    margin-top: 20px;
}

/* Re-using status badge styles from admin, but now on frontend */
.ft-status-badge {
    display: inline-block;
    padding: 2px 15px 0px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: normal;
    color: #fff;
    background-color: #a0a5aa;
}

/* Match the colors from your admin css file */
.status-pending_review, .status-pending_payment_proof, .status-payment_review, .status-pending_submission {background-color: #ffe8aa;color: #af830e;}
.status-payment_confirmed_initial, .status-under_review, .status-revised_pending_review {background-color: #BBDEFB;color: #2988d3;}
.status-accepted {background-color: #C8E6C9;color: #22851c;}
.status-rejected{background-color: #ffaaaa;color: #bf3a3a;}
.status-withdrawn {background-color: #c7c7c7;color: #5e5e5e;}
.status-needs_revision {background-color: #e7a27e;color: #ffffff;}
.status-pending_edit_request {background-color: #d586e3;color: #ffffff;}
.status-edit_approved {background-color: #C5CAE9;color: #3F51B5;}


/* Badge Style for Reviewer Menu in FT OTP Dashboard */
.ft-confru-badge {
    background-color: #d63638;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    padding: 2px 7px;
    margin-right: auto;
    margin-left: 5px;
    line-height: 1;
}

/* Make sure the FT OTP icon is aligned well with the text and badge */
.ft-dashboard-link i {
    vertical-align: middle;
}

/* Action Messages on Details Page */
#action-messages {
    margin-bottom: 1.5em;
    padding: 1em;
    border-radius: 4px;
    display: none; /* Hidden by default */
}
#action-messages p {
    margin: 0;
}
#action-messages.ft-confru-success {
    display: block;
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}
#action-messages.ft-confru-error {
    display: block;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}
.ft-article-action-btn:disabled, .processing {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #b7b7b7;
    color: #646464;
}

.repeater-cell .ft-confru-affiliation-other {
    width: 100%;
}



/* Styling for Admin Notes Box on frontend */
.admin-notes-box {
    background-color: #fef4e7; /* Light orange */
    border-right: 4px solid #f56e28;
    padding: 1.5em;
    border-radius: 4px;
    margin-top: 1.5em;
}

.admin-notes-box .section-title {
    border-bottom-color: #f56e28;
}


ul.ft-confru-pagination-list {
    list-style: none;
    display: flex
;
    gap: 10px;
    justify-content: center;
}

.page-numbers {
    background: #ededed;
    color: #7a7a7a;
    text-align: center;
    border-radius: 3px;
    padding: 3px 13px 3px;
    line-height: normal;
    font-size: 15px;
}
span.page-numbers.current {
    background: #78b0d0;
    color: #fff;
}


.ft-confru-article-view {
    padding: 15px;
    margin: 15px;
}
/*
 * FT Confru - Frontend Styles
 * Version: 2.0 (Design Refresh)
 */

/* =============================================
   General & Helper Classes
   ============================================= */
.ft-confru-message {
    padding: 1em 1.5em;
    margin-bottom: 0.5em;
    border: 1px solid;
    border-radius: 6px;
    border-right-width: 5px;
    z-index: 10;
    bottom: 20px;
    left: 20px;
}
.wp-singular .ft-confru-message {
    padding: 1em 1.5em;
}
.ft-confru-message.ft-confru-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #4CAF50;
}
.ft-confru-message.ft-confru-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f44336;
}
.ft-confru-message.ft-confru-back-link-wrapper {
    margin-top: 2em;
    text-align: center;
}

/* =============================================
   Article Details Page Layout
   ============================================= */
.ft-confru-details-page-container {padding: 1em;display: grid;grid-template-columns: 2.5fr 1fr;gap: 1.1em;}
@media (max-width: 960px) {
    .ft-confru-details-page-container {
        grid-template-columns: 1fr;
    }
}

/* --- Main Content Card --- */
.ft-confru-main-card {
    background: #fff;
    padding: 2em;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.05); */
}
.ft-confru-article-title {
    font-size: 1.5em;
    color: #00568c; /* Blue from theme */
    margin-top: 0;
    margin-bottom: 1em;
    font-weight: 700;
}

/* --- Meta Info Grid --- */
.ft-confru-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5em;
    padding-bottom: 1.5em;
    margin-bottom: 1.5em;
    border-bottom: 1px solid #e7e7e7;
}
.ft-confru-meta-grid .meta-label {
    display: block;
    font-size: 0.9em;
    color: #667;
    margin-bottom: 5px;
}
.ft-confru-meta-grid .meta-value {
    font-size: 1em;
    font-weight: 500;
    color: #333;
}

/* --- Content Sections (Abstract, Authors, etc.) --- */
.ft-confru-content-section {
    margin-bottom: 2.5em;
}
.ft-confru-content-section .section-title {
    font-size: 1em;
    color: #00568c;
    margin-bottom: 0.5em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #e0f2ff;
    font-weight: 900;
}
.ft-confru-content-section .section-body {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

/* --- Custom Lists (Authors, Files) --- */
.ft-confru-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ft-confru-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f5f5f5;
}
.ft-confru-list li:last-child {
    border-bottom: none;
}
.ft-confru-list .dashicons {
    color: #0073aa;
}
.ft-confru-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}
.ft-confru-list a:hover {
    color: #00568c;
}
.author-affiliation {
    font-size: 0.9em;
    color: #777;
}
.corresponding-author-tag {
    font-size: 0.85em;
    color: #0073aa;
    font-weight: bold;
}

/* --- Feedback & Notes Boxes --- */
.ft-confru-feedback-box {
    background: #f8f9fa;
    border-right: 4px solid #0073aa;
    padding: 1.5em;
    border-radius: 6px;
    font-size: 15px;
}
.ft-confru-feedback-box.admin-notes {
    background: #fff8e1;
    border-color: #f59e0b;
}
.ft-confru-feedback-box blockquote {
    margin: 0 0 1em 0;
    font-size: 15px;
}
.ft-confru-feedback-box blockquote:last-child {
    margin-bottom: 0;
}

/* =============================================
   Actions Card Styles
   ============================================= */
.ft-confru-actions-card {
    background: #f8f9fa;
    padding: 2em;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    align-self: start; /* Stick to top */
    position: sticky;
    top: 3em;
}
.ft-confru-actions-card .actions-title {
    font-size: 1.25em;
    color: #333;
    margin-top: 0;
    margin-bottom: 1em;
    text-align: center;
}
.ft-confru-actions-card .description {
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5em;
}

/* --- Action Buttons --- */
.action-buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1em;
}

/* --- Revision Form inside Actions Card --- */
.ft-confru-revision-form-wrapper {
    margin-top: 1em;
}
.ft-confru-revision-form-wrapper hr {
    margin: 2em 0;
    border-style: dashed;
}
.ft-confru-revision-form p {
    margin-bottom: 1.2em;
}
.ft-confru-revision-form label {
    font-weight: 600;
    font-size: 14px;
    line-height: normal;
    margin-bottom: 5px;
    color: #444;
}
.ft-confru-revision-form input[type="text"],
.ft-confru-revision-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}
.ft-confru-revision-form input[type="file"] {
    width: 100%;
    margin-top: 5px;
}
.ft-confru-revision-form .button-primary {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    background-color: #00568c;
    border-color: #004a7a;
}


/* === NEW: Status Filter Styles === */
.ft-confru-status-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em 0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1em;
}

.ft-confru-status-filters li a {
    display: block;
    padding: 2px 12px;
    text-decoration: none;
    background-color: #f0f0f0;
    color: #555;
    border-radius: 20px; /* Pill shape */
    font-size: 0.8em;
    transition: background-color 0.2s, color 0.2s;
}

.ft-confru-status-filters li a:hover {
    background-color: #e0e0e0;
    color: #333;
}

.ft-confru-status-filters li.current a {
    background-color: #0073aa;
    color: #fff;
    font-weight: normal;
}



/* === NEW: Stats Grid for Dashboard Widgets === */
.ft-confru-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5em;
    margin-top: 0.5em;

}

.ft-confru-stat-box {
    background-color: #fbfbfb;
    border: 1px solid #e5e5e5;
    border-right: 4px solid #898989;
    padding: 1em;
    border-radius: 5px;
    text-align: right;
    text-decoration: none;
    color: #333;
}

.ft-icon-label {
    padding: 10px 12px 5px;
}
.ft-confru-stat-box:hover {background: #fff;}

.ft-confru-stat-box .stat-number {
    display: block;
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1;
    color: #222;
}

.ft-confru-stat-box .stat-label {
    display: block;
    font-size: 0.8em;
    color: #555;
}

/* Color variations */
.ft-confru-stat-box.green {border-right-color: #74dd8f;}
.ft-confru-stat-box.red {border-right-color: #f59192;}
.ft-confru-stat-box.blue {border-right-color: #7ebfd3;}
.ft-confru-stat-box.orange {border-right-color: #e7b366;}


.orange .ft-icon-section {
    background: #fbd59d;
    color: #cf8c3c;
}

.blue .ft-icon-section {
    background: #a4dde7;
    color: #31a3c7;
}

.green .ft-icon-section {
    background: #b0f1c1;
    color: #2faf52;
}

.red .ft-icon-section {
    background: #efbcbd;
    color: #c75f5f;
}       
.ft-confru-stats-grid hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid #ddd;
}


/* ... All existing styles ... */

/* === NEW: Conference Cards Grid for Dashboard Widgets === */

.ft-dashboard-section h4 {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 0;
    color: #000000;
    /* margin-top: 4em; */
}
/* === REVISED: Conference Cards Grid for Dashboard === */
.ft-confru-dashboard-divider {
    border: 0;
    border-top: 3px solid #ddd;
    margin: 2em 0;
}

.ft-confru-conferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(325px, 1fr));
    gap: 1.5em;
    margin: 1em 0 2em;
}

.ft-confru-conference-card {
    background: #fbfbfb;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    border-radius: 5px;
}


.ft-confru-conference-card .conference-card-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.ft-confru-conference-card .conference-category {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 0.5em;
}
.ft-confru-conference-card .conference-category a {
    color: #666;
    text-decoration: none;
}
.ft-confru-conference-card .conference-title {
    font-size: 1em;
    font-weight: 400;
    margin: 0;
}
.ft-confru-conference-card .conference-title a {
    text-decoration: none;
    color: #005a87;
}

.ft-confru-conference-card .conference-card-body {
    padding: 15px;
    flex-grow: 1;
}

.ft-confru-conference-card .conference-main-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    border-radius: 4px;
    margin-bottom: 1em;
}
.ft-confru-conference-card .conference-main-date i {
    color: #0073aa;
}

.ft-confru-conference-card .conference-key-dates {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
}
.ft-confru-conference-card .conference-key-dates li {
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
}
.ft-confru-conference-card .date-title { color: #555; }
.ft-confru-conference-card .date-value { color: #333; font-weight: 500; }

.ft-confru-conference-card .conference-card-footer {
    padding: 10px 15px;
    background-color: #fcfcfc;
    border-top: 1px solid #f0f0f0;
    text-align: left; 
        border-radius: 5px;
}
.ft-confru-conference-card .conference-link {
    text-decoration: none;
    color: #7c7c7c;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
}
.ft-confru-conference-card .conference-link:hover { color: #005883; }





.ft-confru-stat-box {
    display: flex
;
    align-items: center;
    padding: 0;
}
.ft-icon-section {
        background: #adadad;
        color: #6f6f6f;
        padding: 20px 16px;
        font-size: 25px;
        height: 100%;
        display: flex;
        align-items: center;
}



/* -------------------------------------------------------------------------- */
/*                     NEW: Action Confirmation Modal                         */
/* -------------------------------------------------------------------------- */

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

.ft-confru-action-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-confru-action-modal-overlay.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease;
}

.ft-confru-action-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    max-width: 430px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    animation: ft-confru-fade-scale-in 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

#ft-confru-modal-icon-wrapper {
    margin: 0 auto 20px;
    /* width: 62px; */
    /* height: 62px; */
    /* border-radius: 50%; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* border-width: 4px; */
    /* border-style: solid; */
    font-size: 45px;
}
#ft-confru-modal-icon-wrapper .dashicons {
    font-size: 36px;
    line-height: 1;
}

.ft-confru-action-modal-content h4 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

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

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

.ft-confru-action-modal-actions .button {
    width: auto;
    flex-grow: 1;
    padding: 12px;
    text-align: center;
    font-size: 1em;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.ft-confru-button-confirm {
    background-color: #0073aa; /* Blue for confirmation */
    color: #fff;
}
.ft-confru-button-confirm:hover {
    background-color: #005a87;
}
.ft-confru-button-confirm.delete {
    background-color: #dc3545; /* Red for destructive action */
}
.ft-confru-button-confirm.delete:hover {
    background-color: #c82333;
}

.ft-confru-button-cancel {
    background-color: #6c757d; /* Gray for cancel */
    color: #fff;
}
.ft-confru-button-cancel:hover {
    background-color: #5a6268;
}

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




.ft-confru-list a {
    font-weight: 400;
}
.ft-confru-list li {
    padding: 6px 0;
    font-size: 15px;
    font-weight: 400;
    display: flex;
    line-height: normal;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f5f5f5;
} 



div#review-container h4 {
    margin: 10px 0;
}
div#review-container ul {
    margin: 0 !important;
}


/* Styles for Single Conference Page (Revision) */
.ft-confru-single-container .entry-header {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
    text-align: center;
}
.ft-confru-single-container .entry-title {
    color: #00466f;
    font-weight: 700;
}
.ft-confru-single-container .post-thumbnail {
    margin-bottom: 2em;
}
.ft-confru-single-container .conference-banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.conference-payment-details-box {
    background: #eef7ff;
    border: 1px solid #d1e7fd;
    padding: 1.5em 2em;
    border-radius: 8px;
    margin: 2em 0;
}
.conference-payment-details-box h3 {
    margin-top: 0;
    color: #004085;
}
.payment-details-content p {
    margin-bottom: 0.5em;
    line-height: 1.7;
}










/* ====== Single Conference Page Styles ====== */
.ft-confru-single-container {
    padding: 0; /* Remove default padding */
}

.ft-confru-single-conference {
    background-color: #fff;
    /* border: 1px solid #ddd; */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2em;
}

/* The new header grid layout */
.conference-header-grid {
    display: grid;
    grid-template-columns: 1fr 2.6fr; /* 2/3 for details, 1/3 for poster */
    gap: 2em;
    padding: 2em;
    background-color: #EEEEEE;
    align-items: center;
    border-radius: 5px;
}

.conference-details .entry-title {
    margin: 0 0 0.5em;
    font-size: 1.4em;
    font-weight: 700;
    color: #334;
}

.conference-details .entry-summary {
    font-size: 1em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5em;
    text-align: justify;
}

.conference-meta-info .meta-item {
    font-size: 1em;
    color: #444;
    margin-bottom: 0.75em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.conference-meta-info .meta-item .dashicons {
    color: var(--clr-primary);
}

.conference-poster .conference-poster-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border: 1px solid #cfcfcf;
}




.conference-key-dates-box,
.conference-payment-details-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 1.5em 2em;
    border-radius: 8px;
    margin: 2em 0;
}
.conference-key-dates-box h3,
.conference-payment-details-box h3 {
    margin-top: 0;
    color: #004085;
}

.key-dates-timeline {
    list-style-type: none;
    padding: 0;
    position: relative;
    margin-top: 1em;
}
.key-dates-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 7px;
    height: 100%;
    width: 4px;
    background: #e9ecef;
    border-radius: 2px;
}
.key-dates-timeline li {
    padding: 15px 30px;
    position: relative;
}
.key-dates-timeline li::before {
    content: '';
    position: absolute;
    top: 21px;
    right: 0;
    height: 18px;
    width: 18px;
    background: white;
    border: 3px solid #0073aa;
    border-radius: 50%;
    z-index: 1;
}
.key-dates-timeline .date-value {
    display: block;
    font-weight: 700;
    color: #005a87;
    font-size: 1.1em;
    margin-bottom: 5px;
}
.key-dates-timeline .date-title { color: #555; }
.ft-confru-separator {
    border: 0;
    height: 1px;
    border: 1px solid #e5e5e5;
    margin: 15px 0 !important;
}
.payment-info-box .ft-confru-separator {
    border: 0;
    height: 1px;
    border: 1px solid #BBDEFB;
    margin: 15px 0 !important;
}
/* ====== Archive Conference Page Styles ====== */
.ft-confru-conferences-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2em;
}
.ft-confru-conference-card-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.ft-confru-conference-card-item:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.ft-confru-conference-card-item .conference-thumbnail a { display: block; }
.ft-confru-conference-card-item .conference-thumbnail img { width: 100%; height: auto; border-radius: 5px 5px 0 0; }
.ft-confru-conference-card-item .conference-content { padding: 1.5em; display: flex; flex-direction: column; flex-grow: 1; }
.ft-confru-conference-card-item .entry-title { margin: 0 0 1em; font-size: 1.3em; }
.ft-confru-conference-card-item .entry-title a { text-decoration: none; color: #333; }
.ft-confru-conference-card-item .entry-title a:hover { color: #005a87; }
.ft-confru-conference-card-item .entry-meta { margin-bottom: 1em; font-size: 0.9em; color: #555; }
.ft-confru-conference-card-item .entry-meta .meta-item { margin-bottom: 0.5em; display: flex; align-items: center; gap: 8px; }
.ft-confru-conference-card-item .entry-meta .dashicons { color: #0073aa; }
.ft-confru-conference-card-item .entry-summary { margin-bottom: 1.5em; flex-grow: 1; }
.ft-confru-button { display: inline-block; background: #0073aa; color: #fff; padding: 10px 18px; text-decoration: none; border-radius: 4px; transition: background-color 0.2s ease; text-align: center; }
.ft-confru-button:hover { background: #005a87; color: #fff; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .conference-header-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
    .conference-poster {
        order: -1; /* Move poster to the top on mobile */
    }
    .conference-details .entry-title {
        font-size: 1.6em;
        text-align: center;
    }
}.conference-details {
    order: 2;
}.ft-confru-single-conference .entry-content p {
    text-align: justify;
    line-height: 32px;
}

/* =============================================
   Lightbox for Conference Poster
   ============================================= */
body.ft-confru-modal-open {
    overflow: hidden;
}

.ft-confru-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.ft-confru-lightbox-overlay.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.ft-confru-lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.ft-confru-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.ft-confru-lightbox-close {
    position: absolute;
    top: -15px;
    left: -15px; /* RTL position */
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ====== Keywords on Single Conference Page ====== */
.conference-keywords-box {
    margin: 2em 0;
}
.conference-keywords-box h3 {
    margin-top: 0;
    color: #004085;
}
.conference-keywords-box ul.post-tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.conference-keywords-box ul.post-tags li {
    padding: 0;
    margin: 0;
    border: none;
}
.conference-keywords-box ul.post-tags a {
    display: inline-block;
    background-color: #f0f3f6;
    color: #3c434a;
    padding: 5px 15px;
    text-decoration: none;
    border-radius: 20px; /* Pill shape */
    font-size: 0.9em;
    transition: background-color 0.2s, color 0.2s;
}
.conference-keywords-box ul.post-tags a:hover {
    background-color: #0073aa;
    color: #fff;
}


#review-container li {
    display: flex;
    gap: 10px;
    align-items: center;
}

textarea#author_feedback {
    width: 100%;
}
textarea#confidential_comments {
    width: 100%;
}




/* =============================================
   Frontend Notice Bar Styles
   ============================================= */
.ft-confru-notice {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90%;
    padding: 15px 40px 15px 20px;
    background-color: #2778c4;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 99999;
    font-size: 15px;
    display: flex;
    align-items: center;
}
body.admin-bar .ft-confru-notice {
    top: 82px; /* Adjust for WP Admin Bar */
}
.ft-confru-notice p {
    margin: 0;
    padding: 0;
}
.ft-confru-notice.is-type-success {
    background-color: #4CAF50; /* Green */
}
.ft-confru-notice.is-type-error {
    background-color: #f44336; /* Red */
}
.ft-confru-notice.is-type-warning {
    background-color: #ff9800; /* Orange */
}
.ft-confru-notice .close-btn {
    position: absolute;
    top: 50%;
    left: 10px; /* RTL position */
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    padding: 5px;
}
.ft-confru-notice .close-btn:hover {
    opacity: 1;
}
ul.post-tags {
    margin: 0;
    padding: 0;
}
ul.post-tags li {
    display: inline-block;
    padding-left: 10px;
}
.ft-confru-back-link-wrapper a {
    display: flex
;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    gap: 10px;
    line-height: normal;
}
.ft-confru-form-row label {
    margin-bottom: 5px;
}

.ft-toast.success {
    background-color: #28a745;
}
.ft-toast.error {
    background-color: #dc3545;
}
.ft-toast.warning {
    background-color: #ffc107;
    color: #333;
}
.ft-toast.info {
    background-color: #17a2b8;
}

/* Scoped styles for this specific page template */
.ft-confru-review-page-wrapper {
    border: 1px solid #e0e0e0;
    padding: 2em;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 2em;
}
.review-page-title {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}
.review-page-title em {
    font-style: normal;
    font-weight: 400;
    color: #005a87;
}
.article-details-summary {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 1.5em;
    margin: 2em 0;
    border-radius: 4px;
}
.article-details-summary ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em 0;
}
.article-details-summary li {
    margin-bottom: 0.8em;
}
.article-details-summary .abstract-box {
	text-align: justify;
    line-height: 1.8;
}
.form-separator {
    border: 0;
    border-top: 2px dashed #e0e0e0;
    margin: 2em 0;
}
.review-form-table {
    width: 100%;
}

.review-form-table th {
    width: 20%;
    text-align: right;
    margin-bottom: 5px;
    font-size: 15px;
}
.review-form-table .description {
    font-size: 0.9em;
    color: #666;
}
.article-details-summary h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

select#reviewer_decision {
    font-size: 15px;
    padding: 8px;
    margin-bottom: 10px;
}

/* =============================================
   Responsive Table for "My Articles"
   ============================================= */



/* Error styling */
.ft-confru-form-messages .ft-confru-error {
    color: #d94f4f;
    background: #fbeaea;
    border: 1px solid #d94f4f;
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 4px;
}
.error-message {
    color: #d94f4f;
    font-size: 0.85em;
    display: block;
    margin-top: 4px;
    min-height: 1em;
}
input.error, textarea.error, select.error, 
.select2-container--default.select2-container--open.error, 
.select2-selection.error {
    border-color: #d94f4f !important;
}

/* Specific style for select2 error state */
.select2-container .select2-selection.error {
    border: 1px solid #d94f4f !important;
}

/* New: Icon buttons in tables */
.ft-confru-icon-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #0073aa; /* WordPress blue */
    cursor: pointer;
    line-height: 1; /* Adjust if needed */
    display: inline-block;
    vertical-align: middle;
    transition: color 0.2s;
}
.ft-confru-icon-button:hover {
    color: #005075;
}
.ft-confru-icon-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}
/* Specific colors for status icons */
.ft-confru-icon-button.dashicons-saved { color: #4ab866; } /* Green for paid */
.ft-confru-icon-button.dashicons-update { color: #ffb900; } /* Orange for processing */
.ft-confru-icon-button.dashicons-no-alt { color: #d63638; } /* Red for not paid/rejected */



/* ADD THESE STYLES TO THE END OF ft-confru-frontend.css */
/* AND REMOVE/REPLACE THE OLD .ft-confru-wizard .ft-confru-progress-bar styles */

/* =============================================== */
/* START: NEW WIZARD LAYOUT & VERTICAL PROGRESS BAR */
/* =============================================== */

.ft-confru-wizard-container {
    display: grid;
    grid-template-columns: 1fr; /* Mobile-first: single column */
    gap: 2em;
    background-color: #f9f9f9;
    padding: 1.5em;
}

.ft-confru-wizard-sidebar .ft-confru-progress-bar {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Horizontal on mobile */
    justify-content: space-between;
    margin-bottom: 2em;
}

.ft-confru-wizard-sidebar .ft-confru-progress-bar .step {
    position: relative;
    text-align: center;
    flex-grow: 1;
}

/* Horizontal line for mobile */
.ft-confru-wizard-sidebar .ft-confru-progress-bar .step:not(:first-child)::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    top: 15px;
    right: 50%;
    z-index: 1;
}
.ft-confru-wizard-sidebar .ft-confru-progress-bar .step.completed::before {
    background-color: #0073aa;
}


.ft-confru-wizard-sidebar .step-marker {
    width: 35px;
    height: 35px;
    line-height: 38px;
    display: block;
    text-align: center;
    margin: 0 auto 5px;
    border-radius: 5px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    color: #999;
    z-index: 2;
    position: relative;
    font-weight: bold;
    font-size: 16px;
    top: 4px;
}

.ft-confru-wizard-sidebar .step-details {
    display: block;
}

.ft-confru-wizard-sidebar .step-details .step-title {
    display: none; /* Hide on mobile for cleaner look */
}
.ft-confru-wizard-sidebar .step-details .step-main-title {
    font-size: 0.9em;
    color: #777;
    margin: 0;
    font-weight: normal;
}

/* NEW: Styles for step description */
.ft-confru-wizard-sidebar .step-details .step-description {
    display: none; /* Hide by default */
    font-size: 0.85em;
    color: #666;
    margin-top: 8px;
        margin-bottom: 0;
    line-height: 1.6;
    font-weight: normal;
}

/* Active / Completed States */
.ft-confru-wizard-sidebar .step.active .step-marker,
.ft-confru-wizard-sidebar .step.completed .step-marker {
    background-color: #8BC34A;
    color: white;
    border-color: #75bd22;
}
.ft-confru-wizard-sidebar .step.active .step-main-title,
.ft-confru-wizard-sidebar .step.completed .step-main-title {
    color: #333;
    font-weight: bold;
}

/* Show description for the active step */
.ft-confru-wizard-sidebar .step.active .step-description {
    display: block;
}


.ft-confru-wizard-content .ft-confru-form-wrapper {
    border: none;
    padding: 0;
    background: transparent;
}


/* REMOVED: Step Description Box */
#ft-confru-step-descriptions {
    display: none;
}

.ft-confru-wizard-content .ft-sub-textarea {
    display: flex
;
    flex-direction: row-reverse;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-top: 3px;
}
.ft-confru-wizard-content .description{
font-size: 0.85em;
    color: #666;
    margin: 3px 0 15px;
}
/* NEW: Login/Register prompt in Step 1 */
.login-register-prompt {
    text-align: center;
    padding: 2em 0;
}
.login-register-buttons {
    margin-top: 1.5em;
    display: flex;
    justify-content: center;
    gap: 1em;
}


/* Desktop Styles (min-width: 960px) */
@media (min-width: 960px) {
    .ft-confru-wizard-container {
        grid-template-columns: 280px 1fr; /* Sidebar | Main Content */
    }

    .ft-confru-wizard-sidebar .ft-confru-progress-bar {
        display: block; /* Vertical list */
        padding-right: 0;
        margin-bottom: 0;
        position: -webkit-sticky;
        position: sticky;
        top: 50px;
    }

    .ft-confru-wizard-sidebar .ft-confru-progress-bar .step {
        display: flex;
        align-items: flex-start; /* Align to top */
        gap: 15px;
        text-align: right;
        padding: 15px 0;
    }
    
    /* Hide horizontal line */
    .ft-confru-wizard-sidebar .ft-confru-progress-bar .step:not(:first-child)::before {
        display: none;
    }

    /* Vertical line */
    .ft-confru-wizard-sidebar .ft-confru-progress-bar .step:not(:last-child)::after {
        content: '';
        position: absolute;
        width: 2px;
        height: 100%;
        background-color: #ddd;
        top: 30px;
        right: 15px; /* Position over the border */
        z-index: 1;
    }
    .ft-confru-wizard-sidebar .ft-confru-progress-bar .step.completed::after {
        background-color: #8BC34A;
    }


    .ft-confru-wizard-sidebar .step-marker {
        margin: 0;
        flex-shrink: 0;
    }

    .ft-confru-wizard-sidebar .step-details .step-title {
        display: block;
        font-size: 0.8em;
        color: #999;
        font-weight: normal;
    }
    
    .ft-confru-wizard-sidebar .step.active .step-details .step-title,
    .ft-confru-wizard-sidebar .step.completed .step-details .step-title {
        color: #555;
    }

    .ft-confru-wizard-sidebar .step-details .step-main-title {
        font-size: 1em;
    }

    .ft-confru-wizard-content .ft-confru-form-wrapper {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 6px;
        padding: 2em;
    }
}


/* =============================================== */
/* END: NEW WIZARD LAYOUT & VERTICAL PROGRESS BAR   */
/* =============================================== */


/* ADD THESE STYLES TO THE END OF ft-confru-frontend.css */

/* =============================================== */
/* START: Floating Label Styles                    */
/* =============================================== */

.ft-input-box {
    position: relative;
    margin-bottom: 2em; /* Increased margin for better spacing */
    width: 100%;
}

.ft-input-box .ft-input-label {
    position: absolute;
    top: 23px;
    right: 10px;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: normal;
    color: #888; /* Placeholder color */
    pointer-events: none;
    transition: top 0.25s ease, font-size 0.25s ease, color 0.25s ease, background-color 0.25s ease;
    z-index: 1;
    background-color: transparent;
    padding: 0 5px;
    line-height: 1;
    min-width: auto;
}

.ft-input-box .ft-input-label .required {
    color: #d63638; /* Error color */
    margin-right: 2px;
    font-weight: bold;
}

/* Adjustments for inputs, textareas, and selects */
.ft-input-box .ft-input, 
.ft-input-box .ft-textarea, 
.ft-input-box .ft-select,
.ft-input-box .select2-container .select2-selection {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.25s ease;
}
.ft-input-box .ft-textarea {
    min-height: 120px;
    padding-top: 10px; /* Initial padding */
}

/* Active/Focus State */
.ft-input-box.active .ft-input-label,
.ft-input-box.focus .ft-input-label {
    top: 0;
    font-size: 0.85rem;
    color: #0073aa; /* Secondary/Active color */
    background-color: #fff; /* White background to cover the border */
}

.ft-input-box.focus .ft-input,
.ft-input-box.focus .ft-textarea,
.ft-input-box.focus .ft-select,
.ft-input-box.focus .select2-container .select2-selection {
    border-color: #0073aa;
    outline: none;
}

/* Textarea padding adjustment on focus/active */
.ft-input-box.active .ft-textarea,
.ft-input-box.focus .ft-textarea {
    padding-top: 18px;
}

/* LTR input specific styles */
.ft-input-box .ft-input-ltr {
    direction: ltr;
    text-align: left;
}

.ft-input-box .ft-input-ltr ~ .ft-input-label {
    right: auto;
    left: 15px;
}

/* Select2 integration */
.ft-input-box .select2-container {
    width: 100% !important;
}
.ft-input-box .select2-container .select2-selection--single {
    height: 46px; /* Match input height */
}
.ft-input-box .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
}
.ft-input-box .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}
.ft-input-box .select2-container--default .select2-selection--multiple {
    min-height: 46px;
    padding: 2px 5px;
}

/* Remove default label from form */
.ft-confru-form-wrapper > .ft-input-box > p > label {
    display: none;
}
.ft-confru-agreement {
    font-size: 15px;
}
.ft-confru-corrAuthor {
    color: #3F51B5;
    font-size: 14px;
    margin-right: 5px;
}
.ft-confru-progress-title {
    font-weight: 900;
    font-size: 20px;
    margin-top: 20px;
    border-bottom: 2px solid #ddd;
    margin-bottom: 10px;
    padding-bottom: 15px;
}

.review-form-title {
    padding: 10px 15px;
    margin: 0;
    font-size: 18px;
    background: #ededed;
    border: 1px solid #e9ecef;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    color: #727272;
}
.keywords textarea.select2-search__field
 {
    min-height: auto;
}
.keywords .select2-container.select2-container--open .select2-dropdown--below
 {
    top: 0px;
}
/* =============================================== */
/* END: Floating Label Styles                      */
/* =============================================== */
@media screen and (max-width: 960px) {
    .ft-confru-wizard-sidebar .step.active .step-description{
        display: none;
    } 
    .ft-confru-wizard-sidebar .ft-confru-progress-bar .step:not(:first-child)::before {
    top: 20px;
    right: -70px;
    }
}
@media screen and (max-width: 768px) {
   #review-container ul li {
    flex-direction: column;
}
#review-container ul li span {
    padding-right: 0;
}

#review-container ul li .ft-confru-reviewTitle {
    line-height: 0;
    font-weight: bold;
    font-size: 14px;
    color: #818181;
}
#review-container ul li {
    margin-bottom: 20px;
}



    .ft-confru-articles-table-wrapper {
        overflow-x: hidden; /* Prevent horizontal scroll on the wrapper itself */
    }
    
    .ft-confru-articles-table {
        border: none;
        width: 100%;
    }

    .ft-confru-articles-table thead {
        display: none;
    }

    .ft-confru-articles-table tr {
        display: block;
        margin-bottom: 1.5em;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        padding: 0;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    
    .ft-confru-articles-table tbody tr:nth-child(even) {
        background-color: #fff; /* Override alternating color for card view */
    }

    .ft-confru-articles-table td {
        display: flex
;
        justify-content: flex-start;
        align-items: center;
        padding: 7px;
        text-align: right;
        border-bottom: 1px solid #f0f0f0;
        margin: 5px 0;
    }

    .ft-confru-articles-table td:last-child {
        border-bottom: none;
    }

    .ft-confru-articles-table td::before {
        content: attr(data-label);
        font-weight: 500;
        color: #555;
        text-align: right; /* Align label to the right */
        flex-shrink: 0;
        margin-left: 10px;
    }

    /* First cell (title) is treated as the card header */
    .ft-confru-articles-table td[data-label="عنوان مقاله"] {
        font-size: 1.1em;
        background-color: #f8f9fa;
        border-radius: 5px 5px 0 0;
        justify-content: center; /* Center the title */
        font-weight: 600;
    }

    .ft-confru-articles-table td[data-label="عنوان مقاله"]::before {
        display: none; /* Hide the "عنوان مقاله" label itself */
    }

.conference-main-date i {
    display: none;
}
	
		.ft-dashboard-content h3 {
    font-size: 17px;
    font-weight: 700;
	}
	.review-page-title {
    font-size: 1.1em;
}
	.ft-confru-review-page-wrapper {
    padding: 1em;
	}
	.article-details-summary {
    padding: 1em;
		margin: 1em 0;}
	.article-details-summary li {
    margin-bottom: 0;
    font-size: 14px;
}
	.article-details-summary .abstract-box {
    font-size: 15px;
}
	
	select#reviewer_decision {
    font-size: 14px;
    width: 100%;
}
	.review-form-table tr {
    display: flex;
    flex-direction: column;
}
	table.review-form-table .button {
    width: 100%;
}
	.review-form-table th {
    width: 100%;
    font-size: 14px;
}
	
	
	

}




.select2-container .select2-search--inline .select2-search__field {
    margin-right: 5px;
    height: 33px!important;
	 }
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 10px 5px 8px !important;
    padding: 0;
    padding-left: 20px;
    vertical-align: middle;
}