/**
 * Styles for Author Research Withdrawal Plugin - OJS 3.5
 */

.withdraw_action_btn {
    background-color: #dc2626 !important;
    border: 1px solid #b91c1c !important;
    color: #fff !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.withdraw_action_btn:hover,
.withdraw_action_btn:focus {
    background-color: #b91c1c !important;
    border-color: #991b1b !important;
    color: #fff !important;
}

.withdraw_alert_banner {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.45;
}

.withdraw_alert_warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.withdraw_alert_banner .fa {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.withdraw_policy_box {
    background: #f8f9fa;
    border-left: 4px solid #006798;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 0 4px 4px 0;
}

.withdraw_policy_box h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.withdraw_policy_text {
    font-size: 13px;
    color: #475569;
}

.withdraw_submission_summary {
    background: #edf2f7;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13px;
}

.withdraw_label {
    font-weight: 600;
    color: #4a5568;
    margin-right: 6px;
}

.withdraw_val {
    font-weight: 500;
    color: #1a202c;
}

.withdraw_form_group {
    margin-bottom: 16px;
}

.withdraw_field_label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #2d3748;
}

.withdraw_field_label .req {
    color: #e53e3e;
    margin-left: 3px;
}

.pkp_author_withdraw_modal select.pkp_select,
.pkp_author_withdraw_modal textarea.pkp_textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    color: #1e293b;
}

.pkp_author_withdraw_modal select.pkp_select:focus,
.pkp_author_withdraw_modal textarea.pkp_textarea:focus {
    border-color: #3182ce;
    outline: none;
    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2);
}

.withdraw_confirm_group {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    padding: 12px 14px;
    border-radius: 4px;
}

.withdraw_checkbox_label {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    color: #9b2c2c;
    cursor: pointer;
    font-weight: 500;
}

.withdraw_checkbox_label input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
}

.withdraw_modal_footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.withdraw_btn_confirm {
    background-color: #dc2626 !important;
    border-color: #b91c1c !important;
    color: #fff !important;
}

.withdraw_btn_confirm:hover {
    background-color: #b91c1c !important;
}

.withdraw_withdrawn_status_banner {
    background: #fed7d7;
    border-left: 4px solid #e53e3e;
    color: #9b2c2c;
    padding: 12px 16px;
    margin: 12px 0 20px 0;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
}

/* Modal overlay & container */
.withdraw_native_modal_overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(2px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
}

.withdraw_native_modal_dialog {
    background: #ffffff !important;
    width: 92% !important;
    max-width: 650px !important;
    border-radius: 8px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4) !important;
    padding: 26px 30px !important;
    position: relative !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
}

.withdraw_modal_close {
    position: absolute !important;
    top: 14px !important;
    right: 18px !important;
    background: none !important;
    border: none !important;
    font-size: 28px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    color: #64748b !important;
}

.withdraw_modal_close:hover {
    color: #0f172a !important;
}

/* Ensure PKP AjaxModalWrapper also floats above all side-drawers and Vue masks */
.pkp_modal.pkpModalWrapper,
.ui-dialog.pkp_controllers_modal_ajaxModalHandler {
    z-index: 2147483647 !important;
    pointer-events: auto !important;
}

.ui-widget-overlay {
    z-index: 2147483640 !important;
}
