.chartsy_settings_page .chartsy_settings_page_nav .nav-tab-wrapper {
    border-color: #eee;
    border-left: 1px solid #dee2e6;
    padding-top: 0;
}

.chartsy_settings_page .chartsy_settings_page_nav .nav-tab-wrapper a.nav-tab-active {
    border-bottom: 3px solid #7f54b3;
    box-sizing: border-box;
}

.chartsy_settings_page_nav .nav-tab-wrapper {
    border-bottom: 0 !important;
}

.chartsy-tab-content.tab-active {
    display: block !important;
}

.chartsy-tab-content,
.chartsy-hidden {
    display: none !important;
}

.chartsy-section-heading {
    border-left: 5px solid black;
    font-size: 16px !important;
    background-color: #f3f3f3;
}

.chartsy-section-sub-heading {
    border-left: 2px solid black;
}

.chartsy_settings_page .chartsy_settings_page_nav .nav-tab-wrapper a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0px;
    margin-right: 5px;
    outline: none;
    box-shadow: none;
    border-bottom: 2px;
    border-style: solid;
    border-image: initial;
    padding: 10px 20px;
    background-color: #f3f3f3;
    border-width: 0px;
}

.chartsy_settings_page .chartsy_settings_page_content {
    border-width: 0 1px 1px 1px;
    border-style: solid;
    border-color: #eee;
    background-color: #fff;
    display: inline-block;
    width: 100%;
    margin: 0;
}

.chartsy_settings_page .chartsy_settings_page_content table tr.heading {
    border-bottom: 1px dashed #eeeeee;
}

.chartsy_settings_page .chartsy_settings_page_content table {
    margin: 0;
    padding: 0;
    border-spacing: 0;
    border-collapse: unset;
}

.chartsy_settings_page .chartsy_settings_page_content table tr th,
.chartsy_settings_page .chartsy_settings_page_content table tr td {
    padding: 15px 20px;
    border-bottom: 1px dashed #eee;
}

.chartsy_settings_page .chartsy_settings_page_content table tr.submit p {
    margin: 0;
    padding: 0;
}

/*--------------------------- End Switch Field ---------------------------*/

.chartsy_settings_page .chartsy_settings_page_content table .heading th {
    border-left: 2px solid black;
    font-size: 16px;
    padding: 12px 20px;
}

/*--------------------------- Switch Field Styling ---------------------------*/

.chartsy-switch-field {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 44px;
    height: 24px;
}

.chartsy-switch-field input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.chartsy-switch-field label {
    background-color: #e2e8f0;
    border-radius: 30px;
    display: inline-block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.chartsy-switch-icon {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
    z-index: 2;
}

.chartsy-switch-icon svg {
    width: 12px;
    height: 12px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chartsy-switch-icon .chartsy-icon-on {
    display: none;
}

.chartsy-switch-icon .chartsy-icon-off {
    display: block;
    fill: #64748b;
    stroke-width: 2px;
    stroke: #64748b;
}

.chartsy-switch-field input[type="checkbox"]:checked+label {
    background-color: #7f54b3;
}

.chartsy-switch-field input[type="checkbox"]:checked+label .chartsy-switch-icon {
    left: 22px;
}

.chartsy-switch-field input[type="checkbox"]:checked+label .chartsy-icon-on {
    display: block;
    fill: #7f54b3;
    stroke-width: 2px;
    stroke: #7f54b3;
}

.chartsy-switch-field input[type="checkbox"]:checked+label .chartsy-icon-off {
    display: none;
}

/*--------------------------- End Switch Field Styling ---------------------------*/

/*--------------------------- Number Field Styling ---------------------------*/
.chartsy-flex {
    display: flex;
}

.chartsy-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.chartsy-align-center {
    align-items: center;
}

.chartsy-remove-bubble-point {
    color: #d63638 !important;
    border-color: #d63638 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    padding: 0 8px !important;
    min-height: 30px !important;
}

.chartsy-remove-bubble-point:hover {
    background: #d63638 !important;
    color: #fff !important;
}

.chartsy-add-bubble-point {
    margin-top: 10px !important;
}

.chartsy-bubble-series-group {
    border: 1px solid #ccd0d4;
    margin-bottom: 20px;
    display: table-row-group;
}

.chartsy-bubble-series-header {
    background-color: #f8f9fa;
}

.chartsy-input-group small {
    font-weight: 700;
    text-align: center;
    margin: 0 auto;
}

span.chartsy-unit-text {
    vertical-align: bottom;
    font-weight: 700;
}

/*--------------------------- End Number Field Styling ---------------------------*/

.chartsy-spacing-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.chartsy-border-controls,
.chartsy-border-radius-controls,
.chartsy-box-shadow-controls,
.chartsy-typography-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.chartsy-column-mapping-controls {
    display: flex;
    gap: 20px;
}

.chartsy-column-mapping-controls>div {
    flex: 1;
}

.chartsy-column-mapping-controls label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.chartsy-column-mapping-controls select {
    width: 100%;
}

.chartsy-radius-input-group,
.chartsy-shadow-input-group,
.chartsy-typography-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Fill Style Selector */
.chartsy-fill-style-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chartsy-fill-style-selector input[type="radio"] {
    display: none;
}

.chartsy-style-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

.chartsy-style-option:hover {
    border-color: #7f54b3;
    background: #f5f5f5;
}

.chartsy-style-option.active {
    border-color: #7f54b3;
    background: #7f54b3;
    color: #fff;
}

.chartsy-style-option svg {
    width: 20px;
    height: 20px;
}

/* Global Color Button */
.chartsy-global-color-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chartsy-global-color-btn:hover {
    border-color: #7f54b3;
    background: #f5f5f5;
}

.chartsy-global-color-btn svg {
    width: 16px;
    height: 16px;
    color: #666;
}

/* Position Buttons */
.chartsy-position-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chartsy-btn-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.chartsy-btn-position:hover {
    border-color: #7f54b3;
    background: #f5f5f5;
    color: #7f54b3;
}

.chartsy-btn-position.active {
    border-color: #7f54b3;
    background: #7f54b3;
    color: #fff;
}

.chartsy-btn-position.active:hover {
    background: #6a42a0;
    border-color: #6a42a0;
}

/* Radio Buttons Style (Matches .chartsy-btn-position) */
.chartsy-radio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.chartsy-radio-btn:hover {
    border-color: #7f54b3;
    background: #f5f5f5;
    color: #7f54b3;
}

input[type="radio"]:checked+.chartsy-radio-btn {
    border-color: #7f54b3;
    background: #7f54b3;
    color: #fff;
}

input[type="radio"]:checked+.chartsy-radio-btn:hover {
    background: #6a42a0;
    border-color: #6a42a0;
}

/* Tab Content */
.chartsy-tab-content {
    display: block;
}

/* CSV File Info */
#chartsy-csv-file-info {
    margin-top: 10px;
}

.chartsy-csv-file-success {
    color: #46b450;
}

.chartsy-csv-file-link {
    margin-left: 10px;
}

/* Download Link */
.chartsy-download-link {
    color: #2271b1;
    text-decoration: underline;
}

/* Y-Axis Columns Select */
#chartsy-y-axis-columns {
    min-height: 100px;
}

/* Description Text Styles */
.chartsy-description-italic {
    font-style: italic;
    color: #666;
}

.chartsy-description-muted {
    color: #666;
    margin-top: 8px;
}

.chartsy-description-link {
    color: #2271b1;
    text-decoration: none;
}

/* Text Field with Flex Layout */
.chartsy-text-field-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chartsy-text-field-flex-start {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Readonly Input */
.chartsy-input-readonly {
    background-color: #f5f5f5;
}

/* Button with Flex */
.chartsy-button-flex {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Shortcode Field */
.chartsy-shortcode-field {
    width: 100%;
    padding: 8px;
    font-family: monospace;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* No Axis Message */
.chartsy-no-axis-message {
    padding: 20px;
    text-align: center;
    color: #666;
}

/* Axis Section Headings */
.chartsy-axis-heading {
    margin: 20px 0 10px 0;
}

/* Spacing Input Width */
.chartsy-spacing-input {
    width: 60px;
}

/* Element Settings Section */
.chartsy-element-section-header {
    padding-top: 20px;
    padding-bottom: 10px;
}

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

/* Marker Settings Container */
.chartsy-marker-settings-container {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Marker Label */
.chartsy-marker-label {
    display: block;
    margin-bottom: 5px;
}

/* Update Icon */
.chartsy-update-icon {
    vertical-align: middle;
}

/* Global Color Button Override */
.chartsy-global-color-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 5px;
    cursor: pointer;
    border-radius: 3px;
}

/* Switch Label */
.chartsy-switch-label {
    font-size: 12px;
    font-weight: 500;
}

/* Gradient Settings Container */
.chartsy-gradient-settings-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Preview Chart */
.chartsy-preview-chart {
    margin-top: 20px;
}

/* Toolbar Switch */
.chartsy-toolbar-switch {
    display: inline-block;
}

/* Toolbar Label */
.chartsy-toolbar-label {
    margin-right: 15px;
}

/* Series Group */
.series-group {
    margin-bottom: 15px;
}

.chartsy-text-field-inline {
    display: inline-block;
    margin-right: 10px;
}

.chartsy-text-field-inline-last {
    display: inline-block;
}

.chartsy-series-title-input {
    width: 200px;
}

/* Error and Info Messages */
.chartsy-message-info {
    color: #999;
}

.chartsy-message-warning {
    color: #666;
}

.chartsy-message-error {
    color: red;
}

.chartsy-message-success {
    color: #46b450;
}

.chartsy-csv-file-link-inline {
    margin-left: 10px;
}

.chartsy_settings_page .wp-picker-holder {
    position: absolute;
    z-index: 4;
}

.chartsy-ml-10 {
    margin-left: 10px;
}

.chartsy-ml-20 {
    margin-left: 20px;
}

.chartsy-mr-10 {
    margin-right: 10px;
}

.chartsy-w80 {
    width: 80px;
}

.chartsy-chart-type-selector,
.chartsy-data-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 30px;
}

.chartsy-chart-type-option,
.chartsy-data-type-option {
    cursor: pointer;
    height: 100%;
}

.chartsy-chart-type-option input[type="radio"],
.chartsy-data-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.chartsy-chart-type-box,
.chartsy-data-type-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 2px solid #ddd;
    transition: all 0.3s;
    min-height: 150px;
    max-height: 150px;
    height: 100%;
    background: #fff;
}

.chartsy-chart-type-icon,
.chartsy-data-type-icon {
    padding: 10px 0;
}

.chartsy-chart-type-box img,
.chartsy-data-type-box img {
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
}

.chartsy-chart-type-label,
.chartsy-data-type-label {
    font-size: 12px;
    color: #424242;
    border-top: 1px solid #dddddd70;
    width: 100%;
    text-align: center;
    padding: 4px 0;
}

.chartsy-chart-type-option:hover .chartsy-chart-type-box,
.chartsy-data-type-option:hover .chartsy-data-type-box {
    border-color: #7f54b3;
}

.chartsy-chart-type-option:hover img,
.chartsy-chart-type-option input:checked+.chartsy-chart-type-box img,
.chartsy-data-type-option:hover img,
.chartsy-data-type-option input:checked+.chartsy-data-type-box img {
    opacity: 1;
}

.chartsy-chart-type-option input:checked+.chartsy-chart-type-box,
.chartsy-data-type-option input:checked+.chartsy-data-type-box {
    border-color: #7f54b3;
    background: #f8f5fc;
}

.chartsy_settings_page .chartsy-strong {
    font-weight: bold;
}

.chartsy_settings_page .wp-picker-container .wp-color-result.button {
    margin-top: 0;
}

.chartsy-chat-wrapper {
    display: flex;
    justify-content: center;
}

.chartsy-wrapper {
    width: 700px;
}

/* Loader Styles */
.chartsy-loader-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
    width: 100%;
}

.chartsy-loader {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-bottom-color: #3b82f6;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: chartsy-rotation 1s linear infinite;
}

@keyframes chartsy-rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.chartsy-preview-chart,
.chartsy-chart {
    min-height: 400px;
    position: relative;
}