.wcmv-admin-wrap {
    background: #f4f6fb;
    padding: 22px;
}

.wcmv-admin-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.wcmv-admin-sidebar {
    background: #f5f7fc;
    border-right: 1px solid #dfe4ef;
    min-height: 640px;
    padding: 16px 0 20px;
}

.wcmv-admin-sidebar h1 {
    margin: 0 18px 16px 18px;
    font-size: 28px;
    line-height: 1.2;
    color: #1e293b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcmv-admin-sidebar h1 .wcmv-admin-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    display: block;
    background: transparent;
    border: 0;
    padding: 0;
    flex: 0 0 auto;
}

.wcmv-admin-sidebar h1 span {
    display: block;
}

.wcmv-admin-sidebar-note {
    display: none;
}

.wcmv-admin-sidebar .wcmv-admin-tabs.nav-tab-wrapper {
    display: flex;
    flex-direction: column;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab {
    position: relative;
    float: none;
    border: 0 !important;
    border-radius: 0;
    margin: 0;
    padding: 14px 18px 14px 56px;
    background: transparent !important;
    color: #627298;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    transition: all 160ms ease;
}

.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab::before {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: dashicons;
    font-size: 20px;
    line-height: 1;
    color: currentColor;
}

.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab[href*="tab=general"]::before { content: "\f102"; }
.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab[href*="tab=dashboard"]::before { content: "\f226"; }
.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab[href*="tab=form"]::before { content: "\f175"; }
.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab[href*="tab=bidding"]::before { content: "\f174"; }
.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab[href*="tab=vendors"]::before { content: "\f307"; }
.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab[href*="tab=management"]::before { content: "\f111"; }
.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab[href*="tab=sample_data"]::before { content: "\f483"; }
.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab[href*="tab=role_manager"]::before { content: "\f110"; }
.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab[href*="tab=integration"]::before { content: "\f176"; }
.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab[href*="tab=appearance"]::before { content: "\f309"; }
.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab[href*="tab=api"]::before { content: "\f108"; }
.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab[href*="tab=pro_features"]::before { content: "\f111"; }

.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab:hover {
    color: #215fcf;
    background: #eef4ff !important;
}

.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab.nav-tab-active,
.wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab.nav-tab-active:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #4b9cff 0%, #2f6dda 100%) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12), 0 4px 10px rgba(47, 109, 218, 0.26);
}

.wcmv-admin-main {
    min-width: 0;
}

.wcmv-admin-main .wcmv-settings-content {
    background: transparent;
    padding: 0;
}

.wcmv-admin-main .wcmv-settings-content > .updated,
.wcmv-admin-main .wcmv-settings-content > .notice {
    border-radius: 12px;
    margin: 0 0 16px;
    overflow: hidden;
}

/* Main card look like screenshot */
.wcmv-admin-main .wcmv-settings-content > h2,
.wcmv-admin-main .wcmv-settings-content > h3 {
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0 0 12px;
    color: #16213a;
    font-size: 22px;
    font-weight: 700;
}

.wcmv-admin-main .wcmv-settings-content > p {
    margin: 0;
    background: transparent;
    border: 0;
    padding: 0 0 14px;
    color: #5f6b7a;
    font-size: 14px;
}

.wcmv-admin-main .wcmv-settings-content > form,
.wcmv-admin-main .wcmv-settings-content > table,
.wcmv-admin-main .wcmv-settings-content > .widefat {
    margin: 0 0 20px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.wcmv-admin-main .wcmv-settings-content > form:first-child {
    border-radius: 0;
    padding-top: 0;
}

.wcmv-admin-main .wcmv-settings-content > hr {
    display: none;
}

.wcmv-presets-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wcmv-presets-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 12px;
    margin: 8px 0 16px;
}

.wcmv-preset-card {
    position: relative;
    display: block;
    border: 2px solid #d7deee;
    background: #ffffff;
    padding: 8px;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.wcmv-preset-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wcmv-preset-card.is-active {
    border-color: #2f6dda;
    box-shadow: 0 0 0 2px rgba(47, 109, 218, 0.18);
}

.wcmv-preset-thumb-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid #dde3f0;
    background: #f8fafc;
}

.wcmv-preset-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wcmv-preset-label {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.wcmv-admin-main .wcmv-settings-content .form-table {
    margin-top: 0;
}

.wcmv-admin-main .wcmv-settings-content .form-table th {
    width: 240px;
    color: #16213a;
    font-size: 15px;
    font-weight: 700;
    padding-top: 12px;
    padding-bottom: 12px;
}

.wcmv-admin-main .wcmv-settings-content .form-table td {
    color: #334155;
}

.wcmv-admin-main .wcmv-settings-content input[type="text"],
.wcmv-admin-main .wcmv-settings-content input[type="number"],
.wcmv-admin-main .wcmv-settings-content input[type="password"],
.wcmv-admin-main .wcmv-settings-content input[type="email"],
.wcmv-admin-main .wcmv-settings-content select,
.wcmv-admin-main .wcmv-settings-content textarea {
    min-height: 42px;
    border: 1px solid #c9d4e6;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 15px;
    color: #0f172a;
    box-shadow: none;
}

.wcmv-admin-main .wcmv-settings-content input:focus,
.wcmv-admin-main .wcmv-settings-content select:focus,
.wcmv-admin-main .wcmv-settings-content textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.wcmv-admin-main .wcmv-settings-content .description {
    color: #52607a;
    font-size: 13px;
}

/* Toggle style for primary boolean rows (not checkbox lists) */
.wcmv-admin-main .wcmv-settings-content table.form-table > tbody > tr > td > label > input[type="checkbox"]:not([name$="[]"]) {
    appearance: none;
    width: 60px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #9bb0d3;
    background: #9fb2d6;
    position: relative;
    margin-right: 10px;
    vertical-align: middle;
    transition: 140ms ease;
}

.wcmv-admin-main .wcmv-settings-content table.form-table > tbody > tr > td > label > input[type="checkbox"]:not([name$="[]"])::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.24);
    transition: 140ms ease;
}

.wcmv-admin-main .wcmv-settings-content table.form-table > tbody > tr > td > label > input[type="checkbox"]:not([name$="[]"]):checked {
    background: #2f80ed;
    border-color: #2567c2;
}

.wcmv-admin-main .wcmv-settings-content table.form-table > tbody > tr > td > label > input[type="checkbox"]:not([name$="[]"]):checked::before {
    left: 30px;
}

.wcmv-admin-main .wcmv-settings-content .button-primary {
    border: 0;
    border-radius: 10px;
    min-height: 46px;
    padding: 8px 20px;
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(135deg, #4b9cff 0%, #2f6dda 100%);
    box-shadow: 0 8px 16px rgba(47, 109, 218, 0.22);
}

.wcmv-admin-main .wcmv-settings-content .button-primary:hover {
    background: linear-gradient(135deg, #3c8cf2 0%, #255cbf 100%);
}

/* Sub tabs inside content (management/disputes etc.) */
.wcmv-admin-main .wcmv-settings-content .nav-tab-wrapper {
    border-bottom: 1px solid #e3e8f2;
    margin: 10px 0 14px;
}

.wcmv-admin-main .wcmv-settings-content .nav-tab-wrapper .nav-tab {
    border: 1px solid #d7dfed !important;
    border-bottom: 0 !important;
    border-radius: 10px 10px 0 0;
    background: #f5f8ff !important;
    color: #4d5d78;
    font-weight: 600;
    padding: 8px 14px;
    margin-right: 6px;
}

.wcmv-admin-main .wcmv-settings-content .nav-tab-wrapper .nav-tab.nav-tab-active {
    background: #ffffff !important;
    color: #1e3a8a;
}

.wcmv-admin-main .wcmv-settings-content .wcmv-text-right {
    text-align: right;
}

.wcmv-admin-main .wcmv-settings-content .wcmv-mt-12 {
    margin-top: 12px;
}

.wcmv-admin-main .wcmv-settings-content .wcmv-w-80 {
    width: 80px;
}

.wcmv-admin-main .wcmv-settings-content .wcmv-mr-8 {
    margin-right: 8px;
}

.wcmv-admin-main .wcmv-settings-content .wcmv-sample-warnings-list {
    margin-left: 18px;
    list-style: disc;
}

.wcmv-admin-main .wcmv-settings-content .wcmv-hidden {
    display: none !important;
}

.wcmv-admin-main .wcmv-settings-content .wcmv-profeatures-accordion {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.wcmv-admin-main .wcmv-settings-content .wcmv-profeatures-panel {
    border: 1px solid #d7dfed;
    background: #fff;
}

.wcmv-admin-main .wcmv-settings-content .wcmv-profeatures-panel > summary {
    cursor: pointer;
    list-style: none;
    margin: 0;
    padding: 12px 14px;
    font-weight: 700;
    color: #1f2f4a;
}

.wcmv-admin-main .wcmv-settings-content .wcmv-profeatures-panel[open] > summary {
    border-bottom: 1px solid #edf1f8;
    background: #f8fbff;
}

.wcmv-admin-main .wcmv-settings-content .wcmv-profeatures-panel-body {
    padding: 12px 14px;
}

.wcmv-admin-main .wcmv-settings-content .wcmv-profeatures-panel h2 {
    margin-top: 0;
}

.wcmv-admin-main .wcmv-settings-content .wcmv-profeatures-divider {
    margin: 16px 0;
    border: 0;
    border-top: 1px solid #d7dfed;
}

.wcmv-admin-dashboard {
    display: grid;
    gap: 16px;
}

.wcmv-admin-dashboard-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.wcmv-admin-dashboard-head h2 {
    margin: 0;
}

.wcmv-admin-dashboard-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wcmv-admin-dashboard-filters select {
    min-width: 120px;
}

.wcmv-admin-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
}

.wcmv-admin-kpi-card {
    border: 1px solid #d9e2f0;
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    text-decoration: none;
    color: inherit;
    display: grid;
    gap: 4px;
}

.wcmv-admin-kpi-card:hover {
    border-color: #8bb0eb;
    box-shadow: 0 6px 14px rgba(38, 85, 167, 0.1);
}

.wcmv-admin-kpi-label {
    color: #4a5b7a;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wcmv-admin-kpi-value {
    font-size: 28px;
    line-height: 1.15;
    color: #16213a;
}

.wcmv-admin-kpi-meta {
    color: #5d6d86;
    font-size: 12px;
}

.wcmv-admin-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.wcmv-admin-card {
    border: 1px solid #d9e2f0;
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
}

.wcmv-admin-card > h3 {
    margin: 0 0 10px;
    color: #1b2b47;
}

.wcmv-admin-card-wide {
    grid-column: 1 / 2;
}

.wcmv-admin-status-list,
.wcmv-admin-alert-list {
    margin: 0;
}

.wcmv-admin-status-list li,
.wcmv-admin-alert-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf1f8;
    padding: 8px 0;
}

.wcmv-admin-status-list li:last-child,
.wcmv-admin-alert-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.wcmv-admin-quick-actions {
    display: grid;
    gap: 8px;
}

.wcmv-admin-quick-actions .button {
    justify-content: center;
}

.wcmv-admin-activity-table .wcmv-admin-inline-metric {
    display: inline-block;
    min-width: 26px;
    font-weight: 600;
}

.wcmv-admin-mini-bar {
    display: inline-block;
    vertical-align: middle;
    height: 6px;
    border-radius: 999px;
    margin-left: 10px;
    max-width: 180px;
}

.wcmv-admin-mini-bar-created {
    background: linear-gradient(90deg, #2f6dda 0%, #4b9cff 100%);
}

.wcmv-admin-mini-bar-bids {
    background: linear-gradient(90deg, #0f766e 0%, #2dd4bf 100%);
}

@media (max-width: 1100px) {
    .wcmv-admin-shell {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wcmv-admin-sidebar {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid #dfe4ef;
        padding: 10px 0 14px;
    }

    .wcmv-admin-sidebar h1 {
        margin-left: 18px;
    }

    .wcmv-admin-sidebar .wcmv-admin-tabs.nav-tab-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab {
        padding: 10px 12px 10px 34px;
    }

    .wcmv-admin-sidebar .wcmv-admin-tabs .nav-tab::before {
        left: 10px;
        font-size: 16px;
    }

    .wcmv-presets-grid {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }

    .wcmv-admin-kpis {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .wcmv-admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .wcmv-admin-card-wide {
        grid-column: auto;
    }
}

@media (max-width: 782px) {
    .wcmv-presets-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .wcmv-admin-wrap {
        padding: 10px;
    }

    .wcmv-admin-dashboard-head {
        flex-direction: column;
    }

    .wcmv-admin-dashboard-filters {
        width: 100%;
    }

    .wcmv-admin-dashboard-filters select {
        width: 100%;
    }

    .wcmv-admin-kpis {
        grid-template-columns: 1fr;
    }
}
