.revnextwoo_logo_bg {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 64px;
    font-weight: 900;
    opacity: 0.15;
    user-select: none;
    pointer-events: none;
    font-family: "Helvetica", "Arial", sans-serif;

}

.logo-img {
    position: absolute;
    bottom: 120px;
    right: 20px;
    width: 120px;
    opacity: 0.15;
    user-select: none;
    pointer-events: none;
}


.slide-left {
    transition: transform 0.5s ease-in-out;
    transform: translateX(-100%);
    opacity: 0;
}

.input_group {
    display: flex;
    align-content: center;
    align-items: center;
    margin-bottom: 25px;
    margin-right: 14px;
}

#toplevel_page_review-settings ul li:last-child {
    display: none;
}

/* DEBUG WATERMARK */


/* ReviewNextWoo Admin Tabs Styling */
.reviewnextwoo-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin-bottom: 0;
}

.reviewnextwoo-dashboard-title {
    text-align: left;
    margin: 0 0 18px 0;
    font-size: 2.1rem;
    font-weight: 700;
    color: #1a2433;
    letter-spacing: -1px;
    padding-left: 8px;
    line-height: 1.2;
}

.reviewnextwoo-tabs {
    display: flex;
    flex-wrap: nowrap;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 2px 8px rgba(60, 80, 180, 0.06);
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    background: #f8faff;
    scrollbar-width: thin;
    scrollbar-color: #bed2fd #f8faff;
}

.reviewnextwoo-tabs::-webkit-scrollbar {
    height: 4px;
}

.reviewnextwoo-tabs::-webkit-scrollbar-thumb {
    background: #bed2fd;
    border-radius: 4px;
}

.reviewnextwoo-tabs::-webkit-scrollbar-track {
    background: #f8faff;
    border-radius: 4px;
}

.reviewnextwoo-tab {
    background: linear-gradient(90deg, #f8faff 60%, #eaf6ff 100%);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 35px;
    font-size: 1.2rem;
    font-weight: 510;
    color: #3b4d63;
    /* border-radius: 12px 12px 0 0; */
    transition: color 0.25s, border-bottom 0.25s, background 0.25s, box-shadow 0.25s;
    position: relative;
    letter-spacing: 0.01em;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(60, 80, 180, 0.08);
    /* flex: 0 0 auto; */
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.2;
}

.reviewnextwoo-tab.active,
.reviewnextwoo-tab:focus {
    background: #bed2fd;
    color: #1a237e;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(60, 80, 180, 0.10);

}

.reviewnextwoo-tab:hover {
    box-shadow: inset 5px 5px 10px #aaaaaa;
}

.reviewnextwoo-tab-content {
    display: none;
    background: linear-gradient(120deg, #f8faff 60%, #e0f7fa 100%);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 6px 32px rgba(60, 80, 180, 0.08);
    min-height: 180px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.45s cubic-bezier(.4, 0, .2, 1), transform 0.45s cubic-bezier(.4, 0, .2, 1);
    position: relative;
}

/* Active tab */
.reviewnextwoo-tab-content.active {
    display: block !important;
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
    border: none;
    background: linear-gradient(120deg, #f8faff 60%, #e0f7fa 100%);
    animation: reviewnextwoo-fade-slide-in 0.4s ease-out;
}

/* Smooth fade + horizontal slide */
@keyframes reviewnextwoo-fade-slide-in {
    from {
        opacity: 0;
        transform: translateX(30px);
        /* slight right slide */
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide left transition */
.sliding-left {
    animation: reviewnextwoo-slide-left 0.35s ease-out;
}

/* Slide right transition */
.sliding-right {
    animation: reviewnextwoo-slide-right 0.35s ease-out;
}

/* Left slide */
@keyframes reviewnextwoo-slide-left {
    from {
        opacity: 0;
        transform: translateX(40px);
        /* slide from right */
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Right slide */
@keyframes reviewnextwoo-slide-right {
    from {
        opacity: 0;
        transform: translateX(-40px);
        /* slide from left */
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Dashboard Tab Typography (except analytics tab) */
.reviewnextwoo-tab-content:not([data-tab='analytics']) label,
.reviewnextwoo-tab-content:not([data-tab='analytics']) .reviewnextwoo-section-title,
.reviewnextwoo-tab-content:not([data-tab='analytics']) th,
.reviewnextwoo-tab-content:not([data-tab='analytics']) legend {
    font-size: 16px !important;
    font-weight: 500;
}

.reviewnextwoo-tab-content:not([data-tab='analytics']) td,
.reviewnextwoo-tab-content:not([data-tab='analytics']) .reference,
.reviewnextwoo-tab-content:not([data-tab='analytics']) .small,
.reviewnextwoo-tab-content:not([data-tab='analytics']) .desc,
.reviewnextwoo-tab-content:not([data-tab='analytics']) .description,
.reviewnextwoo-tab-content:not([data-tab='analytics']) p.ref,
.reviewnextwoo-tab-content:not([data-tab='analytics']) p.small {
    font-size: 14px !important;
    font-weight: 350;
    color: #444;
}

/* Triggers Tab Controls Styling */
.revnextwoo-list-controls {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
}

.revnextwoo-list-controls li {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transition: background 0.2s, opacity 0.2s;
}

.revnextwoo-fieldset {
    border: 3px solid #bed2fd;
    border-radius: 0px 0px 8px 8px;
    padding: 3px 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.revnextwoo-legend {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2433;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.feature-title {
    font-weight: 700;
    font-size: 1.18rem;
    color: #222;
    letter-spacing: -0.5px;
}

.feature-desc {
    font-size: 1.06rem;
    color: #444;
    margin-left: 8px;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.faded {
    opacity: 0.6;
    pointer-events: none;
}

.revnextwoo-upload-box {
    border: 1px dashed #bbb;
    border-radius: 6px;
    min-height: 48px;
    padding: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.revnextwoo-list-controls input[type="number"],
.revnextwoo-list-controls input[type="text"],
.revnextwoo-list-controls input[type="file"],
.revnextwoo-list-controls select,
.revnextwoo-list-controls button,
.revnextwoo-list-controls .button {
    padding: 8px 14px;
    border-radius: 5px;
    border: 1px solid #c2c8d0;
    min-width: 52px;
    color: #1a2433;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.revnextwoo-list-controls button,
.revnextwoo-list-controls .button {
    background: #0a69c7;
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.revnextwoo-list-controls button:hover,
.revnextwoo-list-controls .button:hover {
    background: #094b8b;
}

.drag-drop-desc {
    color: #888;
    font-size: 13px;
    margin-left: 8px;
}

/* Styling Settings Section */
.style-settings .form-table {
    margin-top: 0;
    max-width: 800px;
}

.style-settings fieldset {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px 25px;
    margin-bottom: 30px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
}

.style-settings legend {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    margin-left: 15px;
    position: relative;
    top: -10px;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Style for the field groups */
.style-settings h3 {
    font-size: 16px;
    color: #1d2327;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* Color picker fields */
.color-picker-field {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.color-picker-field .wp-picker-container {
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.color-picker-field .wp-picker-input-wrap {
    display: inline-block;
    margin-right: 10px;
}

.color-picker-field .wp-color-result {
    margin: 0;
    height: 30px;
    border-radius: 3px;
    border: 1px solid #8c8f94;
    box-shadow: 0 1px 0 #fff, 0 0 2px 1px rgba(0, 0, 0, 0.08);
}

.color-picker-field .wp-color-result-text {
    line-height: 28px;
}

/* Form table improvements */
.style-settings .form-table th {
    width: 250px;
    padding: 15px 10px 15px 0;
    vertical-align: middle;
}

.style-settings .form-table td {
    padding: 15px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f1;
}

.style-settings .form-table tr:last-child td {
    border-bottom: none;
}

/* Description text */
.style-settings .description {
    color: #646970;
    font-style: italic;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    line-height: 1.4;
}

/* Submit button */
.style-settings .submit {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .style-settings .form-table th {
        width: 100%;
        display: block;
        padding: 10px 0 5px;
    }

    .style-settings .form-table td {
        display: block;
        padding: 5px 0 15px;
    }

    .style-settings fieldset {
        padding: 15px;
    }
}

.style-settings .form-table th {
    width: 250px;
    padding: 20px 10px 20px 0;
    vertical-align: middle;
}

.style-settings .form-table td {
    padding: 15px 10px;
    vertical-align: middle;
}

/* Color Picker Styling */
.color-picker-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker-field .wp-color-picker {
    width: 100px !important;
    height: 35px;
    padding: 3px 5px;
    border-radius: 4px;
    border: 1px solid #8c8f94;
}

.color-picker-field .wp-picker-container {
    position: relative;
}

.color-picker-field .wp-picker-holder {
    position: absolute;
    z-index: 100;
}

/* Form Table Adjustments */
.form-table th {
    font-weight: 500;
}

.form-table .description {
    display: block;
    margin-top: 5px;
    font-style: italic;
    color: #646970;
    font-size: 13px;
}

/* Submit Button */
.revnextwoo-save-btn-row {
    text-align: right;
    margin: 30px 0 32px;
}

/* Highlight questions with no replies */
.no-reply-highlight,
.no-reply-highlight td {
    background: #fbe3cc !important;
}

/* Remove styling that breaks row layout */
.no-reply-highlight {
    color: inherit;
    border-radius: 0;
    padding: 0;
    display: table-row;
}

/* Make S/N (serial number) column narrow */
.wp-list-table th.column-sn,
.wp-list-table td.column-sn {
    width: 40px;
    min-width: 40px;
    max-width: 60px;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}

/* Hide action links by default, show on row hover */
.wp-list-table .question-actions {
    opacity: 0;
    transition: opacity 0.2s;
}

.wp-list-table tr:hover .question-actions {
    opacity: 1;
}

/* ==========================================================================
   Advanced Settings Page (CAS Settings)
   ========================================================================== */

/* Main Settings Wrapper */
.revnextwoo-settings-wrap {
    max-width: 1200px;
    margin: 20px 20px 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Settings Header */
.revnextwoo-settings-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    padding: 28px 32px;
    margin-bottom: 0;
}

.revnextwoo-settings-header-content {
    max-width: 800px;
}

.revnextwoo-settings-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
}

.revnextwoo-settings-title .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px;
    box-sizing: content-box;
}

.revnextwoo-settings-desc {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Settings Form */
.revnextwoo-settings-form {
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    padding: 28px;
    border: 1px solid #e1e5eb;
    border-top: none;
}

/* Settings Grid Layout - Horizontal Flex */
.revnextwoo-settings-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}

.revnextwoo-settings-grid>.revnextwoo-settings-card:not(.revnextwoo-settings-card-full) {
    flex: 1 1 calc(50% - 12px);
    min-width: 380px;
}

/* Settings Cards */
.revnextwoo-settings-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf1;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.revnextwoo-settings-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.revnextwoo-settings-card-full {
    flex: 1 1 100%;
    min-width: 100%;
}

/* Card Header */
.revnextwoo-card-header {
    background: linear-gradient(to right, #f8f9fa, #fff);
    padding: 18px 24px;
    border-bottom: 1px solid #e8ecf1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.revnextwoo-card-header .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    padding: 8px;
    box-sizing: content-box;
}

.revnextwoo-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    letter-spacing: -0.2px;
}

/* Card Body */
.revnextwoo-card-body {
    padding: 24px;
}

/* Form Rows */
.revnextwoo-form-row {
    margin-bottom: 24px;
}

.revnextwoo-form-row:last-child {
    margin-bottom: 0;
}

/* Labels */
.revnextwoo-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 8px;
}

/* Field Wrapper */
.revnextwoo-field-wrap {
    position: relative;
}

/* Input Styling */
.revnextwoo-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.4;
    color: #1d2327;
    background: #fff;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.revnextwoo-input:hover {
    border-color: #98a2b3;
}

.revnextwoo-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.revnextwoo-input-number {
    font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", monospace;
    font-size: 16px;
    font-weight: 500;
}

/* Input Groups */
.revnextwoo-input-group {
    display: flex;
    align-items: stretch;
}

.revnextwoo-input-prefix,
.revnextwoo-input-suffix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #667085;
    background: #f9fafb;
    border: 1.5px solid #d0d5dd;
}

.revnextwoo-input-prefix {
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.revnextwoo-input-suffix {
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: #f59e0b;
    font-size: 18px;
}

.revnextwoo-input-group .revnextwoo-input {
    flex: 1;
}

.revnextwoo-input-group .revnextwoo-input-currency {
    border-radius: 0 8px 8px 0;
}

.revnextwoo-input-group .revnextwoo-input-rating {
    border-radius: 8px 0 0 8px;
}

/* Badge Input Styling */
.revnextwoo-badge-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.revnextwoo-badge-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.revnextwoo-badge-input-wrap .revnextwoo-input {
    flex: 1;
    max-width: 180px;
}

/* Badge Colors */
.revnextwoo-badge-gold .revnextwoo-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.revnextwoo-badge-silver .revnextwoo-input:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.15);
}

.revnextwoo-badge-bronze .revnextwoo-input:focus {
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* Date Input */
.revnextwoo-input-date {
    max-width: 220px;
    cursor: pointer;
}

.revnextwoo-input-date::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.revnextwoo-input-date::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Field Descriptions */
.revnextwoo-field-desc {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #667085;
    line-height: 1.4;
}

/* Settings Footer */
.revnextwoo-settings-footer {
    padding-top: 24px;
    border-top: 1px solid #e8ecf1;
    text-align: right;
}

/* Submit Button */
.revnextwoo-submit-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
    text-shadow: none !important;
}

.revnextwoo-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%) !important;
}

.revnextwoo-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.35);
}

.revnextwoo-submit-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3), 0 4px 12px rgba(102, 126, 234, 0.35) !important;
}

/* Responsive Design for Settings Page */
@media screen and (max-width: 1024px) {
    .revnextwoo-settings-grid {
        flex-direction: column;
    }

    .revnextwoo-settings-grid>.revnextwoo-settings-card:not(.revnextwoo-settings-card-full) {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

@media screen and (max-width: 782px) {
    .revnextwoo-settings-wrap {
        margin: 10px 10px 10px 0;
    }

    .revnextwoo-settings-header {
        padding: 20px 20px;
        border-radius: 10px 10px 0 0;
    }

    .revnextwoo-settings-title {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .revnextwoo-settings-desc {
        font-size: 14px;
    }

    .revnextwoo-settings-form {
        padding: 20px;
        border-radius: 0 0 10px 10px;
    }

    .revnextwoo-settings-grid {
        gap: 16px;
    }

    .revnextwoo-card-header {
        padding: 14px 18px;
    }

    .revnextwoo-card-body {
        padding: 18px;
    }

    .revnextwoo-badge-input-wrap .revnextwoo-input {
        max-width: 100%;
    }

    .revnextwoo-settings-footer {
        text-align: center;
    }

    .revnextwoo-submit-btn {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .revnextwoo-settings-header {
        padding: 16px;
    }

    .revnextwoo-settings-form {
        padding: 16px;
    }

    .revnextwoo-card-header,
    .revnextwoo-card-body {
        padding: 14px;
    }

    .revnextwoo-input {
        padding: 10px 14px;
        font-size: 14px;
    }

    .revnextwoo-label {
        font-size: 13px;
    }

    .revnextwoo-badge-icon {
        font-size: 24px;
    }
}