/**
 * =============================================================================
 * WordPress core integration
 * =============================================================================
 */

.linkcentral-pagestyles {
    background-color: #eef1f4;
}

.linkcentral-pagestyles #titlediv,
.linkcentral-pagestyles .postbox-container {
    max-width:800px;
}

.linkcentral-pagestyles .linkcentral-post-state {
    color: #50575e;
}

.linkcentral-pagestyles .linkcentral-post-id {
    color: #ababab;
}


/* Tables */
.linkcentral-pagestyles .tablenav-pages .button {
    margin: 0 5px;
}

.linkcentral-pagestyles .tablenav-pages .button.disabled {
    opacity: 0.5;
    pointer-events: none;
}


/* WordPress built-in tabs styling */
.linkcentral-pagestyles .nav-tab-active, 
.linkcentral-pagestyles .nav-tab-active:focus, 
.linkcentral-pagestyles .nav-tab-active:focus:active, 
.linkcentral-pagestyles .nav-tab-active:hover{
    background-color:white;
}

.linkcentral-pagestyles .nav-tab-wrapper .nav-tab {
    display: flex;
    align-items: center;
}

.linkcentral-pagestyles .nav-tab-wrapper .nav-tab .dashicons {
    margin-right: 5px;
    font-size: 18px;
    line-height: 1;
}

.linkcentral-pagestyles .nav-tab-wrapper .nav-tab-active .dashicons {
    color: #2271b1;
}

/* Tab content */
.linkcentral-pagestyles .linkcentral-tab-content {
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    padding: 20px 0 10px 0;
}

.linkcentral-pagestyles .linkcentral-tab-content > * {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.linkcentral-pagestyles .linkcentral-tab-content > hr {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    border-bottom: 6px solid #f6f7f7;
    border-top: 0;
    margin-bottom: 40px;
}




/**
 * =============================================================================
 * General styles
 * =============================================================================
 */

/* Page header */
.linkcentral-pagestyles .linkcentral-admin-header {
    background-color: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
    margin-left: -20px;
}

@media screen and (max-width: 600px) {
    .linkcentral-pagestyles.post-php.post-type-linkcentral_link .linkcentral-admin-header,
    .linkcentral-pagestyles.post-new-php.post-type-linkcentral_link .linkcentral-admin-header  {
        padding-top: 61px;
    }

    .linkcentral-pagestyles.post-php.post-type-linkcentral_link #wpbody,
    .linkcentral-pagestyles.post-new-php.post-type-linkcentral_link #wpbody {
        padding-top: 0;
    }
}

.linkcentral-pagestyles .linkcentral-admin-header .linkcentral-admin-header-content {
    display: flex;
    align-items: center;
}

.linkcentral-pagestyles .linkcentral-admin-header .linkcentral-admin-header-logo {
    max-height: 24px;
    width: auto;
    display: block;
    margin-right: 10px;
}

.linkcentral-pagestyles .linkcentral-admin-header .linkcentral-admin-header-text {
    font-size: 16px;
    font-weight: bold;
    color: #23282d;
    flex-grow: 1;
}


/* Tooltips */
 .linkcentral-pagestyles .linkcentral-tooltip {
    position: absolute;
    z-index: 9999;
    padding: 10px;
    background-color: #eef1f4;
    color: #1d2327;
    border: 1px solid #b0bad1;
    border-radius: 4px;
    font-size: 14px;
    max-width: 300px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Add responsive styles for mobile */
@media screen and (max-width: 782px) {
    .linkcentral-pagestyles .linkcentral-tooltip {
        max-width: calc(100vw - 40px);
        width: calc(100vw - 40px);
        font-size: 13px;
        line-height: 1.4;
    }
}

.linkcentral-pagestyles .linkcentral-tooltip::before,
.linkcentral-pagestyles .linkcentral-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 75%; /* Changed from 5px to 75% */
    border: solid transparent;
    height: 0;
    width: 0;
    pointer-events: none;
}

/* Adjust tooltip arrow on mobile */
@media screen and (max-width: 782px) {
    .linkcentral-pagestyles .linkcentral-tooltip::before,
    .linkcentral-pagestyles .linkcentral-tooltip::after {
        left: 50%; /* Center the arrow for mobile */
    }
}

.linkcentral-pagestyles .linkcentral-tooltip::before {
    border-color: rgba(176, 186, 209, 0);
    border-bottom-color: #b0bad1;
    border-width: 7px;
    margin-left: -7px; /* Added to center the arrow */
}

.linkcentral-pagestyles .linkcentral-tooltip::after {
    border-color: rgba(238, 241, 244, 0);
    border-bottom-color: #eef1f4;
    border-width: 6px;
    margin-left: -6px; /* Added to center the arrow */
}

.linkcentral-pagestyles .linkcentral-tooltip .ui-tooltip-content {
    position: relative;
}


/* Truncated URL styling */
.linkcentral-truncated-url {
    cursor: pointer;
}

.linkcentral-truncate-dots {
    color: #999;
    transition: all 0.15s ease;
    padding: 0 2px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.03);
    margin-left: 1px;
}

.linkcentral-truncated-url:hover .linkcentral-truncate-dots {
    color: #666;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Truncated URL tooltip */
.linkcentral-url-tooltip {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    z-index: 1000;
    max-width: 400px;
    word-break: break-all;
    white-space: normal;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: auto;
}

.linkcentral-url-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.linkcentral-url-tooltip::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #333;
}


/* Table styles */
.linkcentral-pagestyles .linkcentral-form-table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse; /* Ensure no spacing between cells */
    border-spacing: 0;
}

.linkcentral-pagestyles .linkcentral-form-table td,
.linkcentral-pagestyles .linkcentral-form-table th {
    padding: 20px;
}

.linkcentral-pagestyles .linkcentral-form-table.linkcentral-form-table-condensed td,
.linkcentral-pagestyles .linkcentral-form-table.linkcentral-form-table-condensed th {
    padding: 10px;
}

.linkcentral-pagestyles .linkcentral-form-table td {
    margin-bottom: 0;
    flex-grow: 1;
}

.linkcentral-pagestyles .linkcentral-form-table th {
    width: 200px;
    vertical-align: middle;
    font-weight: bold;
}

.linkcentral-pagestyles .linkcentral-form-table .linkcentral-info-icon-cell {
    width: 0%;
}

.linkcentral-pagestyles .linkcentral-form-table .linkcentral-info-icon {
    cursor: pointer;
    color: #b0bad1;
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: inline-block;
}

.linkcentral-pagestyles .linkcentral-form-table .linkcentral-info-icon:hover {
    color: #0073aa;
}

@media screen and (max-width: 782px) {
    .linkcentral-pagestyles .linkcentral-form-table {
        width: auto;
        border-collapse: separate; 
        border-spacing: 0 20px;
    }

    .linkcentral-pagestyles .linkcentral-form-table th,
    .linkcentral-pagestyles .linkcentral-form-table td {
        display: inline-block;
        padding: 3px;
    }

    .linkcentral-pagestyles .linkcentral-form-table th {
        width: auto;
    }

    .linkcentral-pagestyles .linkcentral-form-table td:nth-child(3) {
        width: 100%;  /* Ensure the second <td> moves to a new row */
    }
}


/* Toggle Switch */
.linkcentral-pagestyles .linkcentral-toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    margin-right: 10px;
}

.linkcentral-pagestyles .linkcentral-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.linkcentral-pagestyles .linkcentral-toggle-switch .linkcentral-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cccccc;
    transition: .3s;
    border-radius: 34px;
}

.linkcentral-pagestyles .linkcentral-toggle-switch .linkcentral-toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.linkcentral-pagestyles .linkcentral-toggle-switch input:checked + .linkcentral-toggle-slider {
    background-color: #264A64;
}

.linkcentral-pagestyles .linkcentral-toggle-switch input:focus + .linkcentral-toggle-slider {
    box-shadow: 0 0 1px #264A64;
}

.linkcentral-pagestyles .linkcentral-toggle-switch input:checked + .linkcentral-toggle-slider:before {
    transform: translateX(18px);
}

.linkcentral-pagestyles .linkcentral-toggle-switch .linkcentral-toggle-label {
    vertical-align: middle;
}

/* Disabled toggle switch - not checked */
.linkcentral-pagestyles .linkcentral-toggle-switch input:disabled:not(:checked) + .linkcentral-toggle-slider {
    background-color: #cccccca0;
    cursor: not-allowed;
}

/* Disabled toggle switch - checked */
.linkcentral-pagestyles .linkcentral-toggle-switch input:disabled:checked + .linkcentral-toggle-slider {
    background-color: #264A64a0;
    cursor: not-allowed;
}

.linkcentral-pagestyles .linkcentral-toggle-switch input:disabled + .linkcentral-toggle-slider:before {
    background-color: #f4f4f4;
}

/* Premium feature lock icon */
.linkcentral-pagestyles .linkcentral-premium-feature:not(.linkcentral-premium-active) .linkcentral-toggle-switch .linkcentral-toggle-slider:before {
    content: "\f160"; /* Dashicons lock icon */
    font-family: dashicons;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 16px;
    color: #d7ae61;
}



/**
 * =============================================================================
 * Links Overview page
 * =============================================================================
 */
.linkcentral-pagestyles.toplevel_page_linkcentral .linkcentral-overview .search-box {
    margin: 5px 0;
}

.linkcentral-pagestyles.toplevel_page_linkcentral .linkcentral-overview .linkcentral-per-page-selector {
    margin-left: 10px;
}


/**
 * =============================================================================
 * Link Details page
 * =============================================================================
 */

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details #linkcentral-id-badge {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: normal;
    color: #666;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details.postbox .hndle {
    justify-content: flex-start !important;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_tools a.linkcentral-edit-note {
    text-decoration:none;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details input[type="url"],
.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details input[type="text"] {
    width: 100%;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details #linkcentral-link-attributes select {
    min-width: 200px;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-premium-tag {
    margin-left: 10px;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-slug-container {
    display: flex;
    align-items: center;
    max-width: 100%;
}

/* Slug prefix toggle styles */
.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details #linkcentral-url-prefix {
    margin-bottom: 5px;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-slug-toggle {
    position: relative;
    cursor: pointer;
    user-select: none;
    color: #0073aa;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-slug-toggle:hover::after {
    content: '\f177';
    font-family: 'dashicons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 10;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-slug-toggle.linkcentral-slug-disabled {
    color: #999;
    text-decoration: line-through;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-slug-toggle.linkcentral-slug-disabled:hover::after {
    content: '\f530';
}


/* Random slug generator button */
.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-slug-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-slug-input-wrapper input[type="text"] {
    width: 100%;
    padding-right: 35px;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-generate-slug-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-generate-slug-button:hover {
    color: #2271b1;
    background-color: #f0f6fc;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-generate-slug-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-generate-slug-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-generate-slug-button.loading .dashicons-update {
    animation: spin 1s linear infinite;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-slug-container #linkcentral-copy-url {
    margin-left: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Destination URL & UTM button */
.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-destination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-destination-container .button {
    flex-shrink: 0;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-destination-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-destination-container input[type="url"] {
    flex-grow: 1;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-utm-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #666;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-utm-button:hover {
    color: #2271b1;
    background-color: #f0f6fc;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_link_details .linkcentral-utm-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}














/**
 * =============================================================================
 * Dynamic Redirects on Link Details page
 * =============================================================================
 */

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral_dynamic_rules {
    display: none;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-dynamic-redirect-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-dynamic-redirect-modal .linkcentral-dynamic-redirect-modal-content {
    position: absolute;
    left: 5%;
    right: 5%;
    top: 5%;
    max-height: 90vh;
    width: 90%;
    max-width: 800px;
    margin: auto;
    background-color: #f1f1f1;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 100001; /* Ensure content is above the overlay */
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-dynamic-redirect-modal .linkcentral-dynamic-redirect-modal-inner {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-dynamic-redirect-modal .linkcentral-dynamic-redirect-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-dynamic-redirect-modal .linkcentral-dynamic-redirect-modal-close:hover,
.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-dynamic-redirect-modal .linkcentral-dynamic-redirect-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-dynamic-redirect-modal .linkcentral-dynamic-redirects-premium-banner {
    height: auto;
    width: 100%;
    display: block;
    margin-top: 20px;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-dynamic-redirect {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10px;
    height: 30px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-dynamic-redirect .dashicons {
    margin-right: 5px;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-dynamic-redirect .linkcentral-dynamic-redirect-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    margin-left: 5px;
    flex-shrink: 0;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-dynamic-redirect.linkcentral-dynamic-redirect-rules-set {
    background-color: #0073aa;
    border-color: #006291;
    color: #ffffff;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-dynamic-redirect.linkcentral-dynamic-redirect-rules-set .linkcentral-dynamic-redirect-indicator {
    background-color: #ffffff;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-dynamic-redirect.linkcentral-dynamic-redirect-rules-set:hover {
    background-color: #006291;
    border-color: #004f74;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-dynamic-redirect span:last-child {
    margin-right: 0;
}





/**
 * =============================================================================
 * QR Code Modal on Link Details page
 * =============================================================================
 */

 .linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 5px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    position: relative;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-modal-inner {
    padding: 25px;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-modal-close {
    color: #666;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    line-height: 1;
    z-index: 1;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-modal-close:hover,
.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-modal-close:focus {
    color: #000;
    text-decoration: none;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-content {
    text-align: center;
    margin-bottom: 25px;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-canvas-container {
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal #linkcentral-qr-canvas {
    display: block;
    border-radius: 4px;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-info {
    margin-top: 15px;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-info p {
    margin: 5px 0;
    font-size: 14px;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-url {
    word-break: break-all;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: monospace;
    font-size: 13px;
    color: #333;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-actions .button {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s ease;
}

@media (max-width: 600px) {
    .linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: none;
    }
    
    .linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-modal-inner {
        padding: 20px;
    }
    
    .linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-actions {
        flex-direction: column;
    }
    
    .linkcentral-pagestyles.post-type-linkcentral_link #linkcentral-qr-modal .linkcentral-qr-actions .button {
        width: 100%;
        justify-content: center;
    }
}













/**
 * =============================================================================
 * Insights page
 * =============================================================================
 */

.linkcentral-pagestyles .linkcentral-insights {
    max-width: 1680px;
}

.linkcentral-pagestyles .linkcentral-insights #linkcentral-insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.linkcentral-pagestyles .linkcentral-insights #linkcentral-insights-header .linkcentral-header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}


/* Unified search selector styles */
.linkcentral-pagestyles .linkcentral-insights #linkcentral-insights-header .linkcentral-header-controls .linkcentral-shared-link-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    background-color: #fff;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.linkcentral-pagestyles .linkcentral-insights #linkcentral-insights-header .linkcentral-header-controls .linkcentral-shared-link-selector .button.selected {
    background-color: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.linkcentral-pagestyles .linkcentral-insights #linkcentral-insights-header .linkcentral-header-controls .linkcentral-shared-link-selector .linkcentral-or-text {
    color: #666;
    font-size: 14px;
    margin: 0 5px;
}

.linkcentral-pagestyles .linkcentral-insights #linkcentral-insights-header .linkcentral-header-controls .linkcentral-shared-link-selector .linkcentral-premium-feature:not(.linkcentral-premium-active) {
    padding-right: 40px;
}

.linkcentral-pagestyles .linkcentral-insights #linkcentral-insights-header .linkcentral-header-controls .linkcentral-shared-link-selector #linkcentral-shared-unified-search {
    width: 250px;
    padding: 2px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

/* Unified search autocomplete styling */
.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .ui-autocomplete .ui-menu-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
}

.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .ui-autocomplete .ui-menu-item:last-child {
    border-bottom: none;
}

.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .ui-autocomplete .ui-menu-item:hover,
.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .ui-autocomplete .ui-menu-item.ui-state-focus {
    background-color: #f8f9fa;
}

.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .ui-autocomplete .ui-menu-item .linkcentral-search-item-label {
    flex: 1;
    color: #333;
}

.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .ui-autocomplete .ui-menu-item .linkcentral-search-item-type {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    flex-shrink: 0;
}

.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .ui-autocomplete .ui-menu-item .linkcentral-search-item-type.linkcentral-type-link {
    background-color: #e3f2fd;
    color: #1976d2;
}

.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .ui-autocomplete .ui-menu-item .linkcentral-search-item-type.linkcentral-type-category {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

@media screen and (max-width: 768px) {
    .linkcentral-pagestyles .linkcentral-insights #linkcentral-insights-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .linkcentral-pagestyles .linkcentral-insights #linkcentral-insights-header .linkcentral-header-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }
    
    .linkcentral-pagestyles .linkcentral-insights #linkcentral-insights-header .linkcentral-header-controls .linkcentral-shared-link-selector {
        width: 100%;
        justify-content: flex-start;
    }
    
    .linkcentral-pagestyles .linkcentral-insights #linkcentral-insights-header .linkcentral-header-controls .linkcentral-shared-link-selector #linkcentral-shared-unified-search {
        width: 100%;
        max-width: 300px;
    }
}


/* Range picker styles */
.linkcentral-pagestyles .linkcentral-insights #linkcentral-insights-header .linkcentral-header-controls #linkcentral-datepicker {
    width: 250px;
    padding: 2px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.linkcentral-pagestyles .linkcentral-insights #linkcentral-insights-header .linkcentral-header-controls #linkcentral-datepicker:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .air-datepicker .air-datepicker-body--day-name {
    color:#264a64;
}

.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .air-datepicker .air-datepicker-cell.-selected-, 
.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .air-datepicker .air-datepicker-cell.-selected-.-current- {
    background-color: #264a64;
    color: #fff;
}

.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .air-datepicker .air-datepicker-cell.-day-.-current- {
    background-color: #ffcd56;
    color: inherit;
}

.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .air-datepicker .air-datepicker-buttons {
    grid-auto-flow: row;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .air-datepicker .air-datepicker-buttons .air-datepicker-button {
    background-color: #fbfbfb;
    color: inherit;
}

.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .air-datepicker .air-datepicker-buttons .air-datepicker-button:hover {
    background-color: #E6E6E6;
}

.linkcentral-pagestyles.linkcentral_page_linkcentral-insights .air-datepicker .air-datepicker-buttons .air-datepicker-button.disabled {
    opacity: 0.5;
    font-size: 80%;
    cursor: not-allowed;
    pointer-events: none;
}


/* General container styles */
.linkcentral-pagestyles .linkcentral-insights #linkcentral-total-clicks-container,
.linkcentral-pagestyles .linkcentral-insights #linkcentral-top-links-container,
.linkcentral-pagestyles .linkcentral-insights #linkcentral-recent-clicks-container{
    background: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: auto;
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-stats-cards-row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-stats-card {
    flex: 1;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-stats-card-premium {
    background-color: #fffbf4;
}

.linkcentral-stats-card h3 {
    margin-bottom: 0;
}

@media screen and (max-width: 1200px) {
    .linkcentral-pagestyles .linkcentral-insights .linkcentral-stats-cards-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .linkcentral-pagestyles .linkcentral-insights .linkcentral-stats-card {
        flex: none;
    }
}


/* Table styles */
.linkcentral-pagestyles .linkcentral-insights .linkcentral-deleted-link .linkcentral-column-title,
.linkcentral-pagestyles .linkcentral-insights .linkcentral-deleted-link .linkcentral-column-slug,
.linkcentral-pagestyles .linkcentral-insights .linkcentral-deleted-link .linkcentral-column-destination_url,
.linkcentral-pagestyles .linkcentral-insights .linkcentral-deleted-link .linkcentral-column-referring_url {
    opacity: 0.7;
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-trashed-link .linkcentral-column-title,
.linkcentral-pagestyles .linkcentral-insights .linkcentral-trashed-link .linkcentral-column-slug,
.linkcentral-pagestyles .linkcentral-insights .linkcentral-trashed-link .linkcentral-column-destination_url,
.linkcentral-pagestyles .linkcentral-insights .linkcentral-trashed-link .linkcentral-column-referring_url {
    opacity: 0.7;
}

/* Selected link styling */
.linkcentral-pagestyles .linkcentral-insights .linkcentral-selected-link {
    background-color: #d7f3ff !important;
}

/* Category highlight styling */
.linkcentral-pagestyles .linkcentral-insights .linkcentral-category-highlight {
    background-color: #f3e5f5 !important;
}

/* Rank column styling */
.linkcentral-pagestyles .linkcentral-insights .linkcentral-column-rank {
    width: 50px;
    text-align: center;
    font-weight: bold;
    color: #50575e;
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-browser-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    vertical-align: middle;
    margin-right: 5px;
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-browser-icon.linkcentral-browser-chrome {
    background-image: url('../images/browser-logos/chrome-icon.svg');
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-browser-icon.linkcentral-browser-firefox {
    background-image: url('../images/browser-logos/firefox-icon.svg');
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-browser-icon.linkcentral-browser-safari {
    background-image: url('../images/browser-logos/safari-icon.svg');
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-browser-icon.linkcentral-browser-edge {
    background-image: url('../images/browser-logos/edge-icon.svg');
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-browser-icon.linkcentral-browser-internet-explorer {
    background-image: url('../images/browser-logos/ie-icon.svg');
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-browser-icon.linkcentral-browser-other {
    background-image: url('../images/browser-logos/other-icon.svg');
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-os-info {
    font-size: 0.8em;
    color: #666;
    margin-left: 5px;
}

/* Tabs Navigation */
.linkcentral-pagestyles .linkcentral-insights .linkcentral-insights-tabs {
    display: flex;
    margin-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-insights-tab {
    background: none;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-insights-tab:hover {
    color: #2271b1;
    background-color: #f6f7f7;
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-insights-tab.linkcentral-insights-tab-active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    font-weight: 600;
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-insights-tab:focus {
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

@media screen and (max-width: 768px) {
    .linkcentral-pagestyles .linkcentral-insights .linkcentral-insights-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .linkcentral-pagestyles .linkcentral-insights .linkcentral-insights-tab {
        padding: 8px 12px;
        font-size: 13px;
        flex: 1;
        min-width: 0;
        text-align: center;
    }
}

/* ApexCharts pagination styles */
.linkcentral-pagestyles .linkcentral-insights .linkcentral-custom-icon-prev,
.linkcentral-pagestyles .linkcentral-insights .linkcentral-custom-icon-next,
.linkcentral-pagestyles .linkcentral-insights .apexcharts-menu-icon{
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    color: #666;
    transition: all 0.2s ease;
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-custom-icon-prev svg,
.linkcentral-pagestyles .linkcentral-insights .linkcentral-custom-icon-next svg {
    margin-top: 2px;
}

.linkcentral-pagestyles .linkcentral-insights .apexcharts-menu-icon svg {
    margin: -2px 0 0 -2px;
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-custom-icon-prev:hover,
.linkcentral-pagestyles .linkcentral-insights .linkcentral-custom-icon-next:hover,
.linkcentral-pagestyles .linkcentral-insights .apexcharts-menu-icon:hover {
    background-color: #f0f0f0;
    color: #333;
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-custom-icon-prev.disabled,
.linkcentral-pagestyles .linkcentral-insights .linkcentral-custom-icon-next.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Reusable loading overlay for insights components */
.linkcentral-pagestyles .linkcentral-insights .linkcentral-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 31;
}

.linkcentral-pagestyles .linkcentral-insights .linkcentral-loading-overlay .spinner {
    float: none;
    margin: 0;
    visibility: visible;
}


/* Total Clicks - specific styles */
.linkcentral-pagestyles .linkcentral-insights #linkcentral-total-clicks-container h2{
    margin-bottom: 0;
}

.linkcentral-pagestyles .linkcentral-insights #linkcentral-total-clicks-container .apexcharts-menu-icon {
    margin-top: -2px;
}

.linkcentral-pagestyles .linkcentral-insights #linkcentral-total-clicks-container .apexcharts-legend.apexcharts-align-right {
    right: 25px !important;
}


/* Recent Clicks - specific styles */
.linkcentral-pagestyles .linkcentral-insights #linkcentral-recent-clicks-container .linkcentral-column-country {
    vertical-align: middle;
}

.linkcentral-pagestyles .linkcentral-insights #linkcentral-recent-clicks-container .linkcentral-column-country .flag {
    width: 17px;
    height: 12px;
}



/**
 * =============================================================================
 * Settings page
 * =============================================================================
 */

.linkcentral-pagestyles .linkcentral-settings {
    max-width: 960px;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-form-table {
    margin-bottom:2em;
}


/* Configure link */
.linkcentral-pagestyles .linkcentral-settings .linkcentral-configure-link {
    display: inline-flex;
    align-items: center;
    text-decoration:none;
    float:right;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-configure-link:focus{
    outline: none;
    box-shadow: none;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-configure-link .chevron {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(45deg);
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-configure-link.linkcentral-active .chevron {
    transform: rotate(-135deg);
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-configure-row{
    display:none;
    background-color:#F8F9FA;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-configure-row.linkcentral-configure-row-first {
    /* Add a top border to the first .linkcentral-configure-row in a sequence*/
    border-top: 1px solid #e0e8ee;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-configure-row.linkcentral-configure-row-last {
    /* Add a bottom border to the last .linkcentral-configure-row in a sequence */
    border-bottom: 1px solid #e0e8ee;
}

/* Color picker row alignment */
.linkcentral-pagestyles .linkcentral-settings .linkcentral-configure-row .linkcentral-color-picker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-configure-row .linkcentral-color-picker .wp-color-picker {
    flex-shrink: 0;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-configure-row .linkcentral-color-picker .linkcentral-checkbox {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}


/* Checkbox group */
.linkcentral-pagestyles .linkcentral-settings .linkcentral-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* Accordion */
.linkcentral-pagestyles .linkcentral-settings .linkcentral-accordion {
    border: 1px solid #ccc;
    margin-bottom: 10px;
    max-width:600px;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-accordion-header {
    background-color: #f1f1f1;
    padding: 10px;
    cursor: pointer;
    margin: 0;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-accordion-content {
    display: none;
    padding: 10px;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-accordion-header::after {
    content: '\25BC';
    float: right;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-accordion-header.linkcentral-accordion-active::after {
    content: '\25B2';
}


/* Usage methods */
.linkcentral-pagestyles .linkcentral-settings .linkcentral-usage-method {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-usage-method.linkcentral-usage-method-recommended {
    border-left: 4px solid #46b450;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-usage-method.linkcentral-usage-method-manual {
    border-left: 4px solid #ffb900;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-usage-method h4 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-usage-method h4 .dashicons {
    font-size: 20px;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-usage-method.linkcentral-usage-method-recommended h4 .dashicons {
    color: #46b450;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-usage-method.linkcentral-usage-method-manual h4 .dashicons {
    color: #ffb900;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-usage-method .linkcentral-usage-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-usage-method .linkcentral-usage-intro p {
    margin: 0;
    flex: 1;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-usage-method .linkcentral-usage-intro .button {
    flex-shrink: 0;
    white-space: nowrap;
}

@media screen and (max-width: 782px) {
    .linkcentral-pagestyles .linkcentral-settings .linkcentral-usage-method .linkcentral-usage-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .linkcentral-pagestyles .linkcentral-settings .linkcentral-usage-method .linkcentral-usage-intro .button {
        align-self: flex-start;
    }
}


/* Premium upselling container */
.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-container{
    overflow:hidden;
    position:relative;
    max-width:350px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f6f7f7;
    background: rgba(255, 255, 255, 0.25);
}

.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-bg-shapes .linkcentral-premium-upselling-bg-shapes_soft-shape-1,
.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-bg-shapes .linkcentral-premium-upselling-bg-shapes_soft-shape-2 {
    position: absolute;
    width: 300px;
    height: 300px;
}

.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-bg-shapes .linkcentral-premium-upselling-bg-shapes_soft-shape-1 {
    background-color: rgba(209, 172, 38, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    transform: rotate(45deg);
}

.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-bg-shapes .linkcentral-premium-upselling-bg-shapes_soft-shape-2 {
    background-color: rgba(23, 23, 157, 0.1);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
    transform: rotate(45deg);
}

.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-card{
    padding:24px 24px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-card .linkcentral-premium-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-card .linkcentral-premium-header-text{
    flex: 1;
}

.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-card h3{
    font-weight:bold;
    color:#000;
    margin-bottom:0;
}

.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-card p{
    margin-top:8px;
    color:#000;
    font-weight:bold;
}

.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-card ul {
    list-style-type: none;
    padding-left: 0;
}

.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color:#000;
}

.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-card ul li:not(:last-child):before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: rgba(203,153,68,1);
    font-weight:bold;
}

.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-card a.linkcentral-buy-now{
    background: linear-gradient(0deg, #D7AE61 0%, #FFDA8E 100%);
    color:#222222;
    padding:8px 16px;
    border-radius:50px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    display:block;
    box-sizing: border-box;
    text-align:center;
    margin-top:16px;
}

.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-card a.linkcentral-buy-now:hover{
    background: linear-gradient(0deg, #D7AE61 20%, #FFDA8E 100%);
}

.linkcentral-pagestyles .linkcentral-settings #linkcentral-premium-upselling-card .linkcentral-money-back-guarantee{
    text-align: center;
    font-style: italic;
    font-weight: normal;
    margin-bottom: 0;
    font-size: 12px;
}

/* Premium affiliate container */
.linkcentral-pagestyles .linkcentral-settings .linkcentral-affiliate-promotion {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    max-width: 600px;
    border: 1px solid #e2e4e7;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-affiliate-promotion h3 {
    margin-top: 0;
    color: #1e1e1e;
    font-size: 1.2em;
}






/* Roles & capabilities settings */
.linkcentral-pagestyles .linkcentral-settings .linkcentral-capability {
    margin-bottom: 20px;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-capability-header {
    margin-bottom: 10px;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-capability-header h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #23282d;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-capability-header p.description {
    margin: 0;
    color: #666;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-capability-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-capability-role-item {
    padding: 5px 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid transparent;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-capability-role-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-capability-role-name {
    font-weight: 500;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-capability-role-item:has(.linkcentral-toggle-switch input:checked) {
    background-color: #f0f6fc;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-capability-role-item .linkcentral-toggle-switch input:checked ~ .linkcentral-capability-role-name {
    color: #2271b1;
}

/* Protected role styling */
.linkcentral-pagestyles .linkcentral-settings .linkcentral-capability-role-item.linkcentral-capability-role-protected {
    opacity: 0.6;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-capability-role-item.linkcentral-capability-role-protected .linkcentral-capability-role-label {
    cursor: not-allowed;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-capability-role-item.linkcentral-capability-role-protected .linkcentral-toggle-switch {
    opacity: 0.6;
}










/**
 * =============================================================================
 * Import/Export functionality
 * =============================================================================
 */

.linkcentral-pagestyles .linkcentral-settings .linkcentral-export-section {
    margin-bottom: 20px;
}

/* Import Grid and Cards */
.linkcentral-pagestyles .linkcentral-settings .linkcentral-import-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-import-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-import-card.linkcentral-popular-plugins {
    grid-column: span 2;
}

/* Mobile responsiveness for import grid */
@media screen and (max-width: 782px) {
    .linkcentral-pagestyles .linkcentral-settings .linkcentral-import-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .linkcentral-pagestyles .linkcentral-settings .linkcentral-import-card.linkcentral-popular-plugins {
        grid-column: span 1;
    }
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-import-card.linkcentral-popular-plugins .linkcentral-plugin-buttons {
    margin-top: 15px;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-import-card.linkcentral-popular-plugins .linkcentral-plugin-buttons .button {
    margin-right: 8px;
    margin-bottom: 8px;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-import-card h4 {
    margin-top: 0;
    color: #23282d;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-import-card h4 .dashicons {
    margin-right: 8px;
}

.linkcentral-pagestyles .linkcentral-settings .linkcentral-import-card p {
    color: #666;
    margin-bottom: 15px;
}






/**
 * =============================================================================
 * Import page
 * =============================================================================
 */

.linkcentral-pagestyles .linkcentral-import {
    max-width: 960px;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-file-upload-area {
    text-align: center;
    padding: 30px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-file-upload-area #linkcentral-select-file {
    padding: 6px 24px;
    font-size: 16px;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-file-upload-area #linkcentral-select-file .dashicons {
    font-size: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-file-upload-area p {
    margin: 10px 0 0 0;
    color: #666;
    font-size: 14px;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-file-info {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-import-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-stat-item {
    text-align: center;
    flex: 1;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
    line-height: 1;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-progress-fill {
    height: 100%;
    background-color: #0073aa;
    transition: width 0.3s ease;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-progress-status {
    text-align: center;
    font-style: italic;
    color: #666;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-import-actions {
    margin-top: 20px;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-import-actions .button {
    margin-right: 10px;
}

/* Import Confirmation Summary */
.linkcentral-pagestyles .linkcentral-import .linkcentral-import-confirmation-summary {
    background: #f0f8ff;
    border: 1px solid #c3d9ff;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-import-confirmation-summary h4 {
    margin-bottom: 10px;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-import-confirmation-success {
    margin-top: 20px;
    padding: 20px;
    background: #d4edda;
    border: 2px solid #28a745;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-import-confirmation-success h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #155724;
    font-size: 18px;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-import-confirmation-success p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #155724;
    font-weight: bold;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-import-confirmation-success .linkcentral-import-confirmation-success-action-btn {
    font-size: 14px;
    padding: 8px 16px;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-import-confirmation-success .linkcentral-plugin-disabled-success {
    color: #155724;
    font-weight: bold;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-import-confirmation-success .linkcentral-plugin-disabled-error {
    color: #dc3232;
}

/* CSV Format Requirements */
.linkcentral-pagestyles .linkcentral-import .linkcentral-csv-format-requirements {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    padding: 16px;
    margin: 16px 0;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-csv-format-requirements h4 {
    margin: 0 0 12px 0;
    color: #1d2327;
    font-size: 15px;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-csv-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-csv-columns .linkcentral-column-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    background: white;
    border: 1px solid #dcdcde;
    border-radius: 3px;
    font-size: 13px;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-csv-columns .linkcentral-column-number {
    font-weight: bold;
    color: #666;
    margin-right: 6px;
    min-width: 18px;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-csv-columns .linkcentral-column-item strong {
    margin-right: 6px;
    color: #1d2327;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-csv-columns .linkcentral-column-required {
    color: #d63638;
    font-weight: 600;
    margin-left: auto;
}

.linkcentral-pagestyles .linkcentral-import .linkcentral-csv-columns .linkcentral-column-optional {
    color: #646970;
    font-weight: 500;
    margin-left: auto;
}

@media (max-width: 782px) {
    .linkcentral-pagestyles .linkcentral-import .linkcentral-csv-columns {
        grid-template-columns: 1fr;
    }

    .linkcentral-pagestyles .linkcentral-import .linkcentral-csv-columns .linkcentral-column-item {
        padding: 8px 10px;
    }
}

/**
 * =============================================================================
 * Premium highlights
 * =============================================================================
 */

.linkcentral-pagestyles .linkcentral-premium-feature {
    position: relative;
}

.linkcentral-pagestyles .linkcentral-premium-feature:not(.linkcentral-premium-active) .linkcentral-premium-tag.linkcentral-premium-tag-to-input-field{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display : flex;
    align-items : center;
}

.linkcentral-pagestyles .linkcentral-premium-feature:not(.linkcentral-premium-active) label,
.linkcentral-pagestyles .linkcentral-premium-feature:not(.linkcentral-premium-active) p.description,
.linkcentral-pagestyles .linkcentral-premium-feature:not(.linkcentral-premium-active) select,
.linkcentral-pagestyles .linkcentral-premium-feature:not(.linkcentral-premium-active) input {
    color: #999;
    cursor: not-allowed;
}

.linkcentral-pagestyles .linkcentral-premium-feature:not(.linkcentral-premium-active) select {
    background-color: #f7f7f7;
}

.linkcentral-pagestyles .linkcentral-premium-feature .linkcentral-premium-tag {
    background-color: #d7ae61;
    color: #000;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 5px;
    text-decoration: none;
}

.linkcentral-pagestyles .dashicons.linkcentral-dashicons-premium{
    color:#d7ae61;
}

/* Toggle switch */
.linkcentral-pagestyles .linkcentral-premium-feature:not(.linkcentral-premium-active) .linkcentral-toggle-switch {
    pointer-events: none;
}

.linkcentral-pagestyles .linkcentral-premium-feature:not(.linkcentral-premium-active) .linkcentral-toggle-label {
    color: #999;
}
