/*Radio Button styles*/
.radio-toBtn input[type="radio"] { visibility:hidden;position:absolute; }
.radio-toBtn input[type="radio"]:checked + label {
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    background-color: #007bff;
    *background-color: #007bff;
    background-image: -moz-linear-gradient(top, #007bff, #4F98C2);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#007bff), to(#4F98C2));
    background-image: -webkit-linear-gradient(top, #007bff, #4F98C2);
    background-image: -o-linear-gradient(top, #007bff, #4F98C2);
    background-image: linear-gradient(to bottom, #007bff, #4F98C2);
    background-repeat: repeat-x;
    border-color: #4F98C2 #4F98C2 #377834;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.radio-toBtn label {
    display:inline-block;
    line-height:0px;
    height:13px;
    color: #333333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    background-color: #f5f5f5;
    background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
    background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
    border-color: #e6e6e6 #e6e6e6 #bfbfbf;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    *background-color: #e6e6e6;
    padding:10px;
    font-size:12px;
    cursor:pointer;
    text-align:center;
    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    border-radius: 1px;
    filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
    border: 1px solid #cccccc;
    *border: 0;
    border-bottom-color: #b3b3b3;
}

.radio-toBtn label:hover {
    color: #333333;
    background-color: #e6e6e6;
    *background-color: #d9d9d9;
    -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.1);
    -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.1);
}

.radio-toBtn input[type="radio"]:disabled  +label  { background:#eaeaea;color:#ccc;cursor:auto; }

.select2-selection {
    height: 38px !important;
    border-color: #ced4da !important;
}

.overlay {
    border-radius: .25rem;
    -ms-flex-align: center;
    align-items: center;
    background: rgba(255,255,255,.7);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 50;
}

form > .overlay {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.modal-dialog .overlay {
    background: rgba(255,255,255,.7);
}

.bilingual-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    background: #fff;
}
.bilingual-card .card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.5rem 1rem 0 1rem;
}
.bilingual-card .nav-tabs {
    border-bottom: none;
    gap: 4px;
}
.bilingual-card .nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    transition: all 0.2s ease-in-out;
}
.bilingual-card .nav-tabs .nav-link:hover {
    color: #003A51;
    background-color: #f1f5f9;
    border-color: #e2e8f0 #e2e8f0 transparent;
}
.bilingual-card .nav-tabs .nav-link.active {
    color: #007bff;
    background-color: #ffffff;
    border-color: #cbd5e1 #cbd5e1 #ffffff;
    border-bottom: 2px solid #007bff;
}
.translate-btn-wrapper {
    padding: 4px 0 8px 0;
}
.btn-translate-praq,
.btn-translate-announce-result {
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 5px 16px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-translate-praq:hover,
.btn-translate-announce-result:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.25);
}
.ck .ck-editor__main > .ck-editor__editable.ck-read-only {
    background: #f8fafc;
}
.ck-editor__editable {
    min-height: 380px;
    max-height: 600px;
}
.ck-editor__editable_inline {
    min-height: 250px;
}

/* Placeholder hint box (email template tabs) */
.placeholder-hint {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    color: #555;
    margin-bottom: 12px;
}
.placeholder-hint code {
    background: #ffe082;
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 11px;
}

/* Publish Announcement bar */
.publish-bar {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 14px 20px;
    margin-top: 16px;
}

/* Announcement stat cards */
.announce-stat-card {
    height: 100px;
    padding: 12px 24px 12px 12px;
    border-radius: .25rem;
    cursor: pointer;
}
.announce-stat-card--blue   { background: linear-gradient(135deg, #5B8DEF, #3159C9); }
.announce-stat-card--green  { background: linear-gradient(135deg, #5FD18A, #16A765); }
.announce-stat-card--red    { background: linear-gradient(135deg, #FF8585, #D93636); }
.announce-stat-card .stat-label {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 6px;
    color: #fff;
}
.announce-stat-card .stat-value {
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    color: #fff;
}

/* Mobile-friendly responsiveness */
@media (max-width: 576px) {
    .bilingual-header-wrap {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .bilingual-card .nav-tabs {
        width: 100%;
        display: flex;
    }
    .bilingual-card .nav-tabs .nav-item {
        flex: 1 1 auto;
        text-align: center;
    }
    .bilingual-card .nav-tabs .nav-link {
        padding: 8px 10px;
        font-size: 0.85rem;
        width: 100%;
    }
    .translate-btn-wrapper {
        width: 100%;
        margin-top: 8px;
        display: flex;
        justify-content: flex-end;
    }
    .btn-translate-praq,
    .btn-translate-announce-result {
        width: 100%;
        justify-content: center;
        padding: 8px 16px;
    }
}

/* ============================================================ */
/* Praqualification Announcement Page                           */
/* ============================================================ */
.ck-editor__editable_inline { min-height: 250px; }

.bilingual-card .nav-tabs .nav-link { font-weight: 500; padding: 8px 16px; }
.bilingual-card .nav-tabs .nav-link.active {
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    color: #007bff;
}

.placeholder-hint {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    color: #555;
    margin-bottom: 12px;
}
.placeholder-hint code {
    background: #ffe082;
    border-radius: 3px;
    padding: 1px 4px;
    font-size: 11px;
}


/* HR inside CKEditor editing area */
.ck-editor__editable hr,
.ck-content hr {
    background: #888;
    border: 0;
    height: 3px;
    margin: 14px 0;
    display: block;
}
