/* ==========================================================================
   JARVIS Admin Control Panel - Modern Professional Stylesheet
   ========================================================================== */

/* Main Page Container & Header Banner */
.form-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: none !important;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
    margin-top: 10px;
    color: #f8fafc;
    box-sizing: border-box;
    width:100%;
    max-width: 100%;
}

.container.form-container{
    width:100%;
    max-width: 100%;
}

.form-container h2 {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    display: inline-block;
    vertical-align: middle;
}

/* Header Pro Callout */
.qc_get_pro {
    text-align: right;
    float: right;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 6px 10px;
    transition: all 0.2s ease-in-out;
    margin-bottom: 10px;
}

.qc_get_pro:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.qc_get_pro h2 {
    margin: 0 !important;
    font-size: 14px !important;
}

.qc_get_pro h2 a {
    text-decoration: none !important;
    color: #fbbf24 !important;
    font-weight: 600;
    transition: color 0.2s ease;
}

.qc_get_pro h2 a:hover {
    color: #fde047 !important;
}

.qc_get_pro p {
    margin: 2px 0 0 0 !important;
    font-size: 11px !important;
    line-height: 1.3;
}

.qc_get_pro p a {
    text-decoration: none !important;
    color: #94a3b8 !important;
}

.qc_get_pro p a:hover {
    color: #cbd5e1 !important;
}

/* Inner Tab Container */
.jarvis-tab-container-inner {
    margin-top: 28px;
    clear: both;
}

/* Common Typography & Labels */
.qc-opt-title-font {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin-bottom: 6px !important;
    line-height: 1.4;
}

.qc-opt-dcs-font {
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

.qc-opt-description {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

/* Settings Form Tables */
.content-wrap table.table,
.content-wrap table.table-bordered {
    border: none !important;
    width: 100%;
    margin-bottom: 0;
    background: transparent;
}

.content-wrap table.table tbody tr td {
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: none;
    border-left: none;
    border-right: none;
    background: transparent;
}

.content-wrap table.table tbody tr:first-child td {
    border-top: none;
    padding-top: 0;
}

/* Input Fields & Controls */
.content-wrap input[type="text"],
.content-wrap input[type="number"],
.content-wrap input[type="email"],
.content-wrap select,
.content-wrap textarea {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    outline: none;
    max-width: 100%;
    box-sizing: border-box;
}

.content-wrap input[type="text"]:focus,
.content-wrap input[type="number"]:focus,
.content-wrap input[type="email"]:focus,
.content-wrap select:focus,
.content-wrap textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.content-wrap input[readonly],
.content-wrap input[disabled],
.content-wrap select[disabled],
.content-wrap textarea[disabled] {
    background-color: #f8fafc !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed;
}

.content-wrap textarea {
    line-height: 1.6;
}

.input-sm {
    width: 90px !important;
}

/* Modern Toggle Switch Style for Checkboxes */
.cxsc-settings-blocks {
    margin-top: 6px;
    margin-bottom: 6px;
}

.cxsc-settings-blocks input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cxsc-settings-blocks input[type="checkbox"] + label {
    position: relative;
    padding-left: 54px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin: 0;
    user-select: none;
}

.cxsc-settings-blocks input[type="checkbox"] + label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 24px;
    background-color: #cbd5e1;
    border-radius: 12px;
    border: none;
    transition: background-color 0.2s ease-in-out;
}

.cxsc-settings-blocks input[type="checkbox"] + label::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
}

.cxsc-settings-blocks input[type="checkbox"]:checked + label::before {
    background-color: #2563eb;
}

.cxsc-settings-blocks input[type="checkbox"]:checked + label::after {
    transform: translate(18px, -50%);
}

.cxsc-settings-blocks input[type="checkbox"]:disabled + label {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Radio Icon Selection Grid */
ul.radio-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

ul.radio-list li {
    width: 100% !important;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 8px;
    background: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

ul.radio-list li:hover {
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

ul.radio-list li img {
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 52px;
    height: 52px;
    display: block;
    margin: 0 auto 10px;
    object-fit: cover;
}

ul.radio-list li input[type=radio] {
    margin-right: 4px;
    vertical-align: middle;
}

/* Badges */
.badge {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
    margin-left: 6px;
}

/* Sentence Builder / Search Phrase Card */
.phrase-example-holder {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 12px 0 24px;
    font-size: 15px;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.phrase-example-holder .phrase-example {
    font-size: 16px;
    color: #0f172a;
    font-weight: 500;
}

.phrase-example-filter {
    color: #2563eb;
    font-weight: 600;
    border-bottom: 2px solid #93c5fd;
}

.phrase-example-button {
    color: #059669;
    font-weight: 600;
    border-bottom: 2px solid #a7f3d0;
}

/* Sentence Builder Field Group Styling */
.jarvis_sentence_builder .field-group {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Action Footer & Buttons */
.content-wrap + hr {
    display: none;
}

.jarvis-tab-container-inner > .row:last-child {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 0px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submit-button,
.btn-primary {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.2s ease-in-out !important;
}

.submit-button:hover,
.btn-primary:hover {
    background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

#jarvis-reset-options-default,
.btn-warning {
    background: #ffffff !important;
    color: #dc2626 !important;
    border: 1px solid #fca5a5 !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
}

#jarvis-reset-options-default:hover,
.btn-warning:hover {
    background: #fef2f2 !important;
    border-color: #f87171 !important;
}

/* Conversion Report Card */
.qcld_jarvis_wrap {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.qcld_jarvis_wrap h2 {
    color: #0f172a !important;
    font-size: 20px !important;
    font-weight: 700 !important;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .form-container {
        padding: 20px;
    }
    .qc_get_pro {
        float: none;
        margin-top: 16px;
        text-align: left;
    }
}
