/* WorkZen Connector - Modern Admin Styles */

:root {
    --wzc-primary: #0c7373;
    --wzc-secondary: #10b981;
    --wzc-success: #10b981;
    --wzc-danger: #e74c3c;
    --wzc-warning: #f39c12;
    --wzc-dark: #0a5252;
    --wzc-light: #ecf0f1;
    --wzc-border: #dfe6e9;
    --wzc-shadow: rgba(0, 0, 0, 0.08);
    --wzc-shadow-hover: rgba(0, 0, 0, 0.15);
    --wzc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wzc-admin-wrapper {
    max-width: 1400px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header Section */
.wzc-header {
    background: linear-gradient(135deg, var(--wzc-primary) 0%, var(--wzc-dark) 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px var(--wzc-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.wzc-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
}

.wzc-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 16px;
    font-weight: 400;
}

.wzc-header-logo {
    height: 110px;
    width: auto;
    flex-shrink: 0;
}

/* Navigation Tabs */
.wzc-tabs {
    display: flex;
    gap: 8px;
    background: white;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px var(--wzc-shadow);
    border: 1px solid var(--wzc-border);
}

.wzc-tab {
    flex: 1;
    padding: 14px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--wzc-primary);
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: var(--wzc-transition);
    cursor: pointer;
}

.wzc-tab:hover {
    background: var(--wzc-light);
    color: var(--wzc-dark);
}

.wzc-tab.active {
    background: linear-gradient(135deg, var(--wzc-primary) 0%, var(--wzc-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(12, 115, 115, 0.3);
}

/* Stats Cards */
.wzc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wzc-stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--wzc-shadow);
    transition: var(--wzc-transition);
    border: 1px solid var(--wzc-border);
    cursor: pointer;
    user-select: none;
}

.wzc-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--wzc-shadow-hover);
    border-color: var(--wzc-secondary);
}

.wzc-stat-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--wzc-shadow);
}

.wzc-stat-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.wzc-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--wzc-primary);
    line-height: 1;
}

.wzc-stat-card.success .wzc-stat-value {
    color: var(--wzc-success);
}

.wzc-stat-card.danger .wzc-stat-value {
    color: var(--wzc-danger);
}

.wzc-stat-card.warning .wzc-stat-value {
    color: var(--wzc-warning);
}

/* Integration Cards Grid */
.wzc-integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wzc-integration-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px var(--wzc-shadow);
    transition: var(--wzc-transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wzc-integration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--wzc-border);
    transition: var(--wzc-transition);
}

.wzc-integration-card.enabled::before {
    background: var(--wzc-success);
}

.wzc-integration-card.disabled::before {
    background: var(--wzc-danger);
}

.wzc-integration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--wzc-shadow-hover);
    border-color: var(--wzc-border);
}

.wzc-integration-content {
    flex: 1;
    margin-bottom: 16px;
}

.wzc-integration-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.wzc-integration-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--wzc-primary);
    margin: 0;
    line-height: 1.4;
}

/* Installation Status Badges */
.wzc-installed-badge,
.wzc-not-installed-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wzc-installed-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--wzc-success);
}

.wzc-not-installed-badge {
    background: rgba(241, 127, 42, 0.15);
    color: #f17f2a;
}

/* Style for not-installed integrations */
.wzc-integration-card.wzc-plugin-not-installed .wzc-integration-description {
    color: #a0a0a0;
}

.wzc-integration-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Card view specific - toggle in header */
.wzc-integrations-container:not(.table-view) .wzc-toggle-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.wzc-integrations-container:not(.table-view) .wzc-status-badge {
    align-self: flex-start;
}

/* Toggle Switch */
.wzc-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wzc-toggle {
    position: relative;
    width: 56px;
    height: 28px;
    flex-shrink: 0;
}

.wzc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wzc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--wzc-danger);
    transition: var(--wzc-transition);
    border-radius: 28px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wzc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--wzc-transition);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wzc-toggle input:checked + .wzc-toggle-slider {
    background-color: var(--wzc-success);
}

.wzc-toggle input:checked + .wzc-toggle-slider:before {
    transform: translateX(28px);
}

/* Status Badge */
.wzc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wzc-status-badge.enabled {
    background: rgba(16, 185, 129, 0.1);
    color: var(--wzc-success);
}

.wzc-status-badge.disabled {
    background: rgba(231, 76, 60, 0.1);
    color: var(--wzc-danger);
}

.wzc-status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Info Box */
.wzc-info-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px var(--wzc-shadow);
    border-left: 4px solid var(--wzc-secondary);
    margin-bottom: 20px;
}

.wzc-info-box h2 {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--wzc-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wzc-info-box p {
    margin: 0 0 12px 0;
    line-height: 1.6;
    color: #7f8c8d;
}

.wzc-info-box p:last-child {
    margin-bottom: 0;
}

/* Table Styles */
.wzc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.wzc-table thead {
    background: #f8fafc;
}

.wzc-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.wzc-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.wzc-table tbody tr:hover {
    background: #f8fafc;
}

.wzc-table tbody td {
    padding: 14px 16px;
    color: #334155;
    font-size: 14px;
    vertical-align: top;
}

/* Badge Styles */
.wzc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wzc-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--wzc-success);
}

.wzc-badge.danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--wzc-danger);
}

.wzc-badge.warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--wzc-warning);
}

/* Loading State */
.wzc-loading {
    pointer-events: none;
    opacity: 0.6;
}

.wzc-loading .wzc-toggle-slider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wzc-spin 0.6s linear infinite;
}

@keyframes wzc-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Search and Filter */
.wzc-controls {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px var(--wzc-shadow);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.wzc-search {
    flex: 1;
    min-width: 250px;
}

.wzc-search input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--wzc-border);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--wzc-transition);
}

.wzc-search input:focus {
    outline: none;
    border-color: var(--wzc-secondary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.wzc-filter-buttons {
    display: flex;
    gap: 8px;
}

.wzc-filter-btn {
    padding: 10px 16px;
    border: 2px solid var(--wzc-border);
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wzc-transition);
}

.wzc-filter-btn:hover {
    border-color: var(--wzc-secondary);
    color: var(--wzc-secondary);
}

.wzc-filter-btn.active {
    background: var(--wzc-secondary);
    color: white;
    border-color: var(--wzc-secondary);
}

/* View Toggle */
.wzc-view-toggle {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 8px;
    padding: 4px;
    border: 2px solid var(--wzc-border);
}

.wzc-view-toggle-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wzc-transition);
    color: var(--wzc-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wzc-view-toggle-btn:hover {
    background: var(--wzc-light);
}

.wzc-view-toggle-btn.active {
    background: var(--wzc-secondary);
    color: white;
}

.wzc-view-toggle-btn svg {
    width: 16px;
    height: 16px;
}

/* Table View Styles */
.wzc-integrations-container.table-view .wzc-integrations-grid {
    display: block;
}

.wzc-integrations-container.table-view .wzc-integration-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 12px;
    padding: 20px 24px;
    flex-direction: row;
}

.wzc-integrations-container.table-view .wzc-integration-card::before {
    display: none;
}

.wzc-integrations-container.table-view .wzc-toggle-wrapper {
    margin-bottom: 0;
    justify-content: flex-start;
}

.wzc-integrations-container.table-view .wzc-integration-content {
    margin-bottom: 0;
}

.wzc-integrations-container.table-view .wzc-integration-title {
    font-size: 15px;
    margin-bottom: 4px;
}

.wzc-integrations-container.table-view .wzc-integration-description {
    margin: 0;
}

.wzc-integrations-container.table-view .wzc-status-badge {
    align-self: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wzc-header {
        padding: 30px 20px;
        flex-direction: column;
        text-align: center;
    }

    .wzc-header h1 {
        font-size: 24px;
    }

    .wzc-header-logo {
        height: 50px;
    }

    .wzc-integrations-grid {
        grid-template-columns: 1fr;
    }

    .wzc-stats {
        grid-template-columns: 1fr;
    }

    .wzc-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .wzc-search {
        width: 100%;
    }

    .wzc-filter-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .wzc-integrations-container.table-view .wzc-integration-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wzc-integrations-container.table-view .wzc-toggle-wrapper,
    .wzc-integrations-container.table-view .wzc-status-badge {
        justify-self: start;
    }
}

/* Mode Selector Card */
.wzc-mode-selector-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px var(--wzc-shadow);
    border: 2px solid var(--wzc-secondary);
    margin-bottom: 30px;
}

.wzc-mode-selector-card h2 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--wzc-primary);
}

.wzc-mode-selector-card > p {
    margin: 0 0 20px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.wzc-mode-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.wzc-mode-option {
    position: relative;
    cursor: pointer;
    border: 2px solid var(--wzc-border);
    border-radius: 12px;
    padding: 20px;
    transition: var(--wzc-transition);
    background: white;
    display: block;
}

.wzc-mode-option:hover {
    border-color: var(--wzc-secondary);
    box-shadow: 0 4px 12px var(--wzc-shadow);
    transform: translateY(-2px);
}

.wzc-mode-option.active {
    border-color: var(--wzc-secondary);
    background: linear-gradient(135deg, rgba(12, 115, 115, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.wzc-mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wzc-mode-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wzc-mode-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wzc-mode-icon {
    font-size: 32px;
    line-height: 1;
}

.wzc-mode-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--wzc-primary);
}

.wzc-mode-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--wzc-success);
    margin-top: 4px;
}

.wzc-mode-badge.wzc-advanced {
    background: rgba(243, 156, 18, 0.15);
    color: var(--wzc-warning);
}

.wzc-mode-content > p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
}

/* Automatic Mode Styles */
.wzc-automatic-mode-info {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(12, 115, 115, 0.05) 100%);
    border-left-color: var(--wzc-success);
}

.wzc-integrations-container.wzc-automatic-mode .wzc-integration-card {
    border-left: 4px solid var(--wzc-success);
}

.wzc-integrations-container.wzc-automatic-mode .wzc-integration-card.wzc-readonly {
    cursor: default;
}

.wzc-integrations-container.wzc-automatic-mode .wzc-integration-card.wzc-readonly::before {
    background: var(--wzc-success);
}

.wzc-integrations-container.wzc-automatic-mode .wzc-status-badge {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wzc-integrations-container.wzc-automatic-mode .wzc-status-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Animations */
@keyframes wzc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wzc-integration-card {
    animation: wzc-fadeIn 0.4s ease-out;
    animation-fill-mode: both;
}

.wzc-integration-card:nth-child(1) { animation-delay: 0.05s; }
.wzc-integration-card:nth-child(2) { animation-delay: 0.1s; }
.wzc-integration-card:nth-child(3) { animation-delay: 0.15s; }
.wzc-integration-card:nth-child(4) { animation-delay: 0.2s; }
.wzc-integration-card:nth-child(5) { animation-delay: 0.25s; }
.wzc-integration-card:nth-child(6) { animation-delay: 0.3s; }

/* Details/Summary Accordion Styles */
.wzc-details {
    margin-top: 8px;
}

.wzc-details summary {
    list-style: none;
    user-select: none;
}

.wzc-details summary::-webkit-details-marker {
    display: none;
}

.wzc-details[open] summary::before {
    content: '▼ ';
}

.wzc-details:not([open]) summary::before {
    content: '▶ ';
}

.wzc-details summary::before {
    display: inline-block;
    margin-right: 4px;
}

/* Legacy compatibility for queue page */
.wzconnector-wrap {
    max-width: 1200px;
    width: 100%;
    margin: 20px 20px 20px 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wz-nav {
    background: linear-gradient(135deg, #0c7373 0%, #0a5252 100%);
    padding: 0;
    margin: 0;
    display: flex;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wz-nav a {
    color: rgba(255, 255, 255, 0.8);
    padding: 18px 28px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.wz-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.wz-nav a.current {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-bottom-color: #10b981;
    font-weight: 600;
}

.wzconnector-wrap > * {
    padding: 0 32px 32px 32px;
}

.wz-nav + * {
    padding-top: 32px;
}

.wzconnector-wrap h1 {
    color: #0c7373;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.wzconnector-wrap .form-table {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

.wzconnector-wrap .form-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    padding: 16px 20px;
    width: 220px;
}

.wzconnector-wrap .form-table td {
    padding: 16px 20px;
}

.wzconnector-wrap .form-table input[type="text"] {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

.wzconnector-wrap .form-table input[type="text"]:focus {
    border-color: #0c7373;
    box-shadow: 0 0 0 3px rgba(12, 115, 115, 0.1);
    outline: none;
}

.wzconnector-wrap .button-primary {
    background: linear-gradient(135deg, #0c7373 0%, #0a5252 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    text-shadow: none;
    box-shadow: 0 2px 4px rgba(12, 115, 115, 0.2);
    transition: all 0.3s ease;
}

.wzconnector-wrap .button-primary:hover {
    background: linear-gradient(135deg, #0a5252 0%, #083d3d 100%);
    box-shadow: 0 4px 12px rgba(12, 115, 115, 0.3);
    transform: translateY(-1px);
}

.wzconnector-wrap .widefat {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

.wzconnector-wrap .widefat thead tr {
    background: #f8fafc;
}

.wzconnector-wrap .widefat thead th {
    color: #334155;
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 2px solid #e2e8f0;
}

.wzconnector-wrap .widefat tbody tr {
    transition: background 0.2s ease;
}

.wzconnector-wrap .widefat tbody tr:hover {
    background: #f8fafc;
}

.wzconnector-wrap .widefat tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.wzconnector-wrap .widefat tbody pre {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    max-width: 100%;
    overflow-x: auto;
    margin: 0;
    border: 1px solid #e2e8f0;
}

/* Icon Picker */
.wzc-icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-width: 800px;
}

.wzc-icon-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wzc-icon-option:hover {
    border-color: #0c7373;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 115, 115, 0.1);
}

.wzc-icon-option.selected {
    border-color: #0c7373;
    background: #ecf9f9;
    box-shadow: 0 0 0 3px rgba(12, 115, 115, 0.1);
}

.wzc-icon-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.wzc-icon-preview {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: color 0.2s ease;
}

.wzc-icon-option:hover .wzc-icon-preview,
.wzc-icon-option.selected .wzc-icon-preview {
    color: #0c7373;
}

.wzc-icon-preview svg {
    width: 100%;
    height: 100%;
}

.wzc-icon-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    text-align: center;
    line-height: 1.3;
}

.wzc-icon-option:hover .wzc-icon-label,
.wzc-icon-option.selected .wzc-icon-label {
    color: #0c7373;
}

/* Spin animation for sync button */
.dashicons-update.spin {
    animation: wzc-spin 1s linear infinite;
}

@keyframes wzc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Unsaved changes indicator on save button */
.wzc-admin-wrapper input[type="submit"].wzc-unsaved,
.wzc-admin-wrapper button[type="submit"].wzc-unsaved {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: #d97706 !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.3) !important;
}

.wzc-admin-wrapper input[type="submit"].wzc-unsaved:hover,
.wzc-admin-wrapper button[type="submit"].wzc-unsaved:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
}

/* Unsaved changes notification bar */
.wzc-unsaved-bar {
    position: fixed;
    top: 32px; /* Below WordPress admin bar */
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 99999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none; /* Don't block clicks when hidden */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.wzc-unsaved-bar.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto; /* Allow clicks when visible */
}

.wzc-unsaved-bar .wzc-unsaved-message {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wzc-unsaved-bar .wzc-unsaved-message::before {
    content: "⚠";
    font-size: 16px;
}

.wzc-unsaved-bar .wzc-save-now-btn {
    background: #fff;
    color: #d97706;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wzc-unsaved-bar .wzc-save-now-btn:hover {
    background: #fef3c7;
    transform: translateY(-1px);
}

.wzc-unsaved-bar .wzc-save-now-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Adjust for no admin bar (logged out preview) */
.no-adminbar .wzc-unsaved-bar {
    top: 0;
}

@media screen and (max-width: 782px) {
    .wzc-unsaved-bar {
        top: 46px; /* Mobile admin bar height */
        padding: 10px 15px;
        gap: 12px;
    }

    .wzc-unsaved-bar .wzc-unsaved-message {
        font-size: 13px;
    }
}

/* Pulse animation for unsaved bar attention */
@keyframes wzc-pulse {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: translateY(2px);
        box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
    }
}
