/* LazyChat Admin Styles */
.heading {
    color: #7446f3 !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    padding-left: 10px !important;
}

.is-hidden {
    display: none !important;
}

/* Login Page Styles - Matching Settings Page Design */
#lazychat_login_form,
#lazychat_shop_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 50%;
    margin: 0 auto;
}

.lazychat-form-field {
    width: 100%;
    margin-bottom: 14px;
}

.lazychat-form-field:last-child {
    margin-bottom: 0;
}

.lazychat-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.lazychat-form-input {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    min-height: 44px;
    height: 44px;
}

.lazychat-form-input:focus {
    outline: none;
    border-color: #7446f3;
    box-shadow: 0 0 0 3px rgba(116, 70, 243, 0.1);
}

.lazychat-form-input::placeholder {
    color: #999;
}

.lazychat-form-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

.lazychat-form-actions .spinner {
    float: none;
    margin: 0;
    visibility: hidden;
}

.lazychat-form-actions .spinner.is-active {
    visibility: visible;
}

.lazychat-login-message {
    margin-top: 16px;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 6px;
    line-height: 1.5;
    width: 100%;
    text-align: center;
}

.lazychat-login-message.notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.lazychat-login-message.notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.lazychat-shop-selection.is-hidden {
    display: none !important;
}

.lazychat-shop-list {
    margin: 20px 0;
    display: grid;
    gap: 12px;
    width: 100%;
}

.lazychat-shop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.lazychat-shop-item:hover {
    border-color: #7446f3;
    box-shadow: 0 4px 12px rgba(116, 70, 243, 0.08);
}

.lazychat-shop-item input {
    margin: 0;
}

.lazychat-shop-name {
    font-weight: 600;
    color: #1d2327;
}

.lazychat-shop-badge {
    margin-left: auto;
    padding: 4px 8px;
    background: #e8f4fd;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.lazychat-shop-message {
    margin-top: 16px;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 6px;
    line-height: 1.5;
    width: 100%;
    text-align: center;
}

.lazychat-shop-message.notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.lazychat-shop-message.notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.lazychat-shop-spinner {
    visibility: hidden;
}

.lazychat-shop-spinner.is-active {
    visibility: visible;
}

/* Toggle Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #7446f3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Settings Layout */
.flex {
    display: grid;
    grid-template-columns: 150px auto;
    gap: 20px;
    flex: 1;
    align-items: center;
    padding-left: 20px;
    margin-top: 10px;
    background: #ffffff;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: 10px;
    transition: all .5s ease-in-out;
    cursor: pointer;
    padding-right: 12px;
}

.setting {
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    position: relative;
}

.submit_button input {
    background: #7446f3 !important;
    border-color: #7446f3 !important;
}

.test_buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.test_buttons .button {
    background: #f0f0f1;
    border-color: #c3c4c7;
    color: #2c3338;
}

.test_buttons .button:hover {
    background: #7446f3;
    border-color: #7446f3;
    color: #fff;
}

/* Test Results */
.test-results {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
    line-height: 1.6;
}

.test-results strong {
    font-weight: 600;
}

.test-results.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.test-results.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.test-results.loading {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.test_buttons .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* LazyChat Branding Card */
.card-container {
    width: 350px;
    height: 250px;
    perspective: 1000px;
    position: absolute;
    top: 8px;
}

.card_info {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: linear-gradient(135deg, #7446f3, #7446f3);
    color: white;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
    width: 50px !important;
}

.logo img {
    width: 100%;
}

.logo_warp {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo_text {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.tagline {
    font-size: 12px;
    font-style: italic;
    opacity: 0.8;
}

.contact-info {
    margin-top: 0px !important;
    position: relative;
    top: -25px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    display: inline-block;
    text-align: center;
}

.address {
    font-size: 14px;
    color: #fff;
    line-height: 23px;
    margin-top: 20px;
}

/* Log Viewer Styles */
.log-viewer-container {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    overflow: hidden;
}

.log-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f0f0f1;
    border-bottom: 1px solid #c3c4c7;
}

.log-viewer-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

.log-viewer-header .button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
}

.log-viewer-header .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.log-viewer-content {
    height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    line-height: 1.5;
}

.log-viewer-footer {
    padding: 8px 15px;
    background: #f0f0f1;
    border-top: 1px solid #c3c4c7;
    text-align: center;
}

.log-viewer-footer small {
    color: #646970;
}

.log-loading, .log-empty, .log-error {
    padding: 20px;
    text-align: center;
    color: #d4d4d4;
}

.log-stats {
    padding: 8px 10px;
    background: #2d2d2d;
    color: #858585;
    font-size: 11px;
    border-bottom: 1px solid #3e3e3e;
    margin-bottom: 10px;
}

/* Log Group Styles */
.log-group {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #3e3e3e;
    background: #1e1e1e;
}

.log-group-error {
    border-left: 4px solid #f48771;
}

.log-group-success {
    border-left: 4px solid #89d185;
}

.log-group-info {
    border-left: 4px solid #75beff;
}

.log-group-header {
    padding: 10px 12px;
    background: #252526;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #3e3e3e;
}

.log-status-icon {
    font-size: 16px;
}

.log-timestamp {
    color: #858585;
    font-size: 11px;
    white-space: nowrap;
    min-width: 140px;
    font-weight: 600;
}

.log-id {
    background: #7446f3;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.log-group-error .log-id {
    background: #f48771;
}

.log-group-success .log-id {
    background: #89d185;
}

.log-group-info .log-id {
    background: #75beff;
}

.log-event {
    flex: 1;
    color: #e0e0e0;
    font-weight: 600;
    font-size: 13px;
}

.log-group-steps {
    padding: 8px 12px 8px 40px;
    background: #1a1a1a;
}

.log-step {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b0b0b0;
    font-size: 12px;
}

.log-step-icon {
    color: #858585;
    font-weight: bold;
}

.log-step-message {
    flex: 1;
}

.log-step:has(.log-step-icon:contains('✓')) .log-step-icon {
    color: #89d185;
}

.log-step:has(.log-step-icon:contains('✗')) .log-step-icon {
    color: #f48771;
}

/* Scrollbar styling for log viewer */
.log-viewer-content::-webkit-scrollbar {
    width: 8px;
}

.log-viewer-content::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.log-viewer-content::-webkit-scrollbar-thumb {
    background: #424242;
    border-radius: 4px;
}

.log-viewer-content::-webkit-scrollbar-thumb:hover {
    background: #4e4e4e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-container {
        position: relative;
        width: 100%;
        height: auto;
        margin-top: 20px;
    }
    
    .flex {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-left: 10px;
    }
    
    .test_buttons {
        flex-direction: column;
    }
    
    .log-viewer-container {
        margin-top: 20px;
    }
    
    .log-viewer-content {
        height: 300px;
    }
}

/* LazyChat Modal Styles */
.lazychat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lazychat-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.lazychat-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    z-index: 100001;
}

.lazychat-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lazychat-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.lazychat-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    font-size: 20px;
    line-height: 1;
}

.lazychat-modal-close:hover {
    color: #000;
}

.lazychat-modal-body {
    padding: 20px;
}

.lazychat-modal-body p {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
}

.lazychat-logout-options {
    margin-top: 15px;
}

.lazychat-logout-options .button {
    transition: all 0.2s ease;
}

.lazychat-logout-options .button:hover {
    background: #f5f5f5;
    border-color: #999;
}

.lazychat-logout-options #lazychat_disconnect_delete:hover {
    background: #fff5f5;
    border-color: #dc3545;
}

.lazychat-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
}

/* Bearer Token Visibility Toggle */
#lazychat_toggle_token_visibility {
    color: #666;
    transition: color 0.2s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#lazychat_toggle_token_visibility:hover {
    color: #7446f3;
    background: transparent !important;
}

#lazychat_toggle_token_visibility:focus {
    box-shadow: none;
    outline: none;
}

#lazychat_token_eye_icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

/* Product Sync Section */
.lazychat-sync-section {
    transition: all 0.3s ease;
}

.lazychat-sync-status {
    min-height: 50px;
}

/* Shimmer Effect */
.lazychat-shimmer {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.lazychat-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: lazychat-shimmer 1.5s infinite;
}

@keyframes lazychat-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.lazychat-shimmer-container {
    padding: 10px 0;
}

.lazychat-shimmer-line {
    height: 12px;
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 8px;
    animation: lazychat-shimmer-line 1.5s infinite;
}

.lazychat-shimmer-line:last-child {
    width: 60%;
    margin-bottom: 0;
}

@keyframes lazychat-shimmer-line {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Sync Progress Styles */
.lazychat-sync-progress {
    padding: 15px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.lazychat-progress-header {
    margin-bottom: 15px;
}

.lazychat-progress-bar-container {
    position: relative;
    width: 100%;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.lazychat-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7446f3, #8b5cf6);
    border-radius: 15px;
    transition: width 0.3s ease;
    position: relative;
}

.lazychat-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: lazychat-progress-shine 2s infinite;
}

@keyframes lazychat-progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.lazychat-progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 12px;
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.lazychat-progress-stats {
    padding: 10px 0;
}

.lazychat-progress-message {
    max-height: 150px;
    overflow-y: auto;
}

/* Main Container */
.lazychat-main-container {
    width: 100%;
    max-width: 100%;
}

/* Navigation Toggle Buttons */
.lazychat-view-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 4px;
    background: #f0f0f1;
    border-radius: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.lazychat-view-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #646970;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-width: 100px;
    justify-content: center;
}

.lazychat-view-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

.lazychat-view-button-label {
    font-size: 14px;
    line-height: 1;
}

.lazychat-view-button:hover {
    background: rgba(116, 70, 243, 0.08);
    color: #7446f3;
}

.lazychat-view-button.is-active {
    background: #7446f3;
    color: #fff;
    box-shadow: 0 2px 4px rgba(116, 70, 243, 0.2);
}

.lazychat-view-button.is-active:hover {
    background: #6339d1;
    box-shadow: 0 2px 6px rgba(116, 70, 243, 0.3);
}

.lazychat-view-button.is-active .dashicons {
    color: #fff;
}

/* Settings Page Improvements */
.lazychat-settings-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lazychat-info-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #7446f3 0%, #8b5cf6 100%);
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(116, 70, 243, 0.15);
}

.lazychat-info-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lazychat-info-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #fff;
}

.lazychat-info-content {
    flex: 1;
}

/* Login page info card specific styles */
.lazychat-info-card .lazychat-info-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lazychat-info-card .lazychat-info-content .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #fff;
    flex-shrink: 0;
    margin-top: 2px;
}

.lazychat-info-card .lazychat-info-content strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.lazychat-info-card .lazychat-info-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.5;
}

.lazychat-info-label {
    margin: 0 0 2px 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.lazychat-info-value {
    margin: 0;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
}

.lazychat-settings-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
}

.lazychat-settings-card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.lazychat-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.lazychat-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lazychat-card-title .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #7446f3;
}

.lazychat-card-body {
    padding: 16px 18px;
}

.lazychat-form-field {
    margin-bottom: 14px;
}

.lazychat-form-field:last-child {
    margin-bottom: 0;
}

.lazychat-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.lazychat-input-wrapper {
    position: relative;
    width: 100%;
}

.lazychat-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
    min-height: 44px;
    height: 44px;
    line-height: 1;
    box-sizing: border-box;
}

.lazychat-input:focus {
    outline: none;
    border-color: #7446f3;
    box-shadow: 0 0 0 3px rgba(116, 70, 243, 0.1);
}

.lazychat-toggle-visibility {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lazychat-toggle-visibility:hover {
    color: #7446f3;
}

.lazychat-toggle-visibility .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.lazychat-toggle-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lazychat-toggle-field:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.lazychat-toggle-field:first-child {
    padding-top: 0;
}

.lazychat-toggle-info {
    flex: 1;
    margin-right: 16px;
}

.lazychat-toggle-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    cursor: pointer;
}

.lazychat-toggle-description {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.lazychat-status-card {
    border: 2px solid #dee2e6;
}

.lazychat-status-card.is-active {
    border-color: #28a745;
    background: linear-gradient(to bottom, #fff 0%, #f8fff9 100%);
}

.lazychat-status-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.lazychat-status-info {
    flex: 1;
}

.lazychat-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.lazychat-status-badge.status-active {
    background: #d4edda;
    color: #155724;
}

.lazychat-status-badge.status-inactive {
    background: #f8f9fa;
    color: #6c757d;
}

.lazychat-status-description {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.lazychat-status-switch {
    transform: scale(1.2);
}

.lazychat-card-description {
    margin: 0 0 14px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Product Sync Card Specific Styles */
.lazychat-sync-card {
    background: linear-gradient(to bottom, #fff 0%, #fafbff 100%);
    border: 1px solid #e8e9ff;
}

.lazychat-sync-card .lazychat-card-header {
    background: linear-gradient(to right, #7446f3 0%, #8b5cf6 100%);
    border-bottom: none;
}

.lazychat-sync-card .lazychat-card-title {
    color: #fff;
}

.lazychat-sync-card .lazychat-card-title .dashicons {
    color: #fff;
}

.lazychat-sync-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lazychat-sync-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lazychat-sync-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: #7446f3;
    border: 2px solid #7446f3;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    align-self: flex-start;
    min-height: 44px;
    height: 44px;
    line-height: 1;
    box-sizing: border-box;
}

.lazychat-sync-button:hover {
    background: rgba(116, 70, 243, 0.1);
    border-color: #6339d1;
    color: #6339d1;
    box-shadow: 0 2px 8px rgba(116, 70, 243, 0.2);
    transform: translateY(-1px);
}

.lazychat-sync-button:active {
    transform: translateY(0);
    background: rgba(116, 70, 243, 0.15);
    box-shadow: 0 1px 4px rgba(116, 70, 243, 0.2);
}

.lazychat-sync-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.lazychat-sync-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #7446f3;
    animation: none;
}

.lazychat-sync-button:hover .dashicons {
    animation: lazychat-rotate 1s linear infinite;
    color: #6339d1;
}

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

/* Prevent rotation for REST API buttons */
#lazychat_test_rest_api:hover .dashicons,
#lazychat_fix_rest_api:hover .dashicons {
    animation: none;
}

/* Collapsible section styles */
.lazychat-collapsible-header {
    cursor: pointer;
    user-select: none;
}

.lazychat-collapse-icon {
    transition: transform 0.3s ease;
}

.lazychat-collapse-icon.lazychat-collapsed {
    transform: rotate(-180deg);
}

.lazychat-sync-status {
    min-height: 40px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-left: 3px solid #7446f3;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
}

.lazychat-sync-status:empty {
    display: none;
}

.lazychat-actions-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 18px;
    margin-top: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.lazychat-actions-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Force all buttons in actions group to same height */
.lazychat-actions-group > * {
    min-height: 44px !important;
    height: 44px !important;
    box-sizing: border-box !important;
}

.lazychat-action-btn,
input.lazychat-action-btn,
button.lazychat-action-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(116, 70, 243, 0.25);
    min-height: 44px !important;
    height: 44px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
}

.lazychat-action-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 1;
}

/* Primary Button (Save Changes) - Solid primary color */
.lazychat-action-btn.button-primary,
.lazychat-action-btn.button-primary:hover,
.lazychat-action-btn.button-primary:focus,
input.lazychat-action-btn.button-primary,
input.lazychat-action-btn.button-primary:hover,
input.lazychat-action-btn.button-primary:focus {
    background: #7446f3 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(116, 70, 243, 0.25) !important;
    min-height: 44px !important;
    height: 44px !important;
    line-height: 1 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
}

.lazychat-action-btn.button-primary:hover,
input.lazychat-action-btn.button-primary:hover {
    background: #6339d1 !important;
    box-shadow: 0 4px 12px rgba(116, 70, 243, 0.35) !important;
    transform: translateY(-1px);
}

.lazychat-action-btn.button-primary:active,
input.lazychat-action-btn.button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(116, 70, 243, 0.3) !important;
}

.lazychat-action-btn.button-primary .dashicons,
input.lazychat-action-btn.button-primary .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    color: #fff !important;
}

/* Ensure input submit buttons match button height exactly - Multiple selectors for WordPress compatibility */
input[type="submit"].lazychat-action-btn,
input[type="submit"].lazychat-action-btn.button-primary,
input[type="submit"].lazychat-action-btn.button-primary.large,
input.button-primary.lazychat-action-btn,
input.button-primary.lazychat-action-btn.large,
input.button.button-primary.lazychat-action-btn,
input.button.button-primary.lazychat-action-btn.large,
.lazychat-actions-group input[type="submit"],
.lazychat-actions-group input[type="submit"].button-primary,
.lazychat-actions-group input[type="submit"].button-primary.large {
    min-height: 44px !important;
    height: 44px !important;
    padding: 12px 24px !important;
    line-height: 1 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
    background: #7446f3 !important;
    border-color: #7446f3 !important;
    color: #fff !important;
    text-shadow: none !important;
    box-shadow: 0 2px 8px rgba(116, 70, 243, 0.25) !important;
}

/* Hover state for input submit buttons */
input[type="submit"].lazychat-action-btn:hover,
input[type="submit"].lazychat-action-btn.button-primary:hover,
input[type="submit"].lazychat-action-btn.button-primary.large:hover,
input.button-primary.lazychat-action-btn:hover,
input.button-primary.lazychat-action-btn.large:hover,
input.button.button-primary.lazychat-action-btn:hover,
input.button.button-primary.lazychat-action-btn.large:hover,
.lazychat-actions-group input[type="submit"]:hover,
.lazychat-actions-group input[type="submit"].button-primary:hover,
.lazychat-actions-group input[type="submit"].button-primary.large:hover {
    background: #6339d1 !important;
    border-color: #6339d1 !important;
    box-shadow: 0 4px 12px rgba(116, 70, 243, 0.35) !important;
    transform: translateY(-1px);
}

/* Secondary Buttons (Logout) - Outline button style */
.lazychat-action-btn.button-secondary,
.lazychat-action-btn.button-secondary:hover,
.lazychat-action-btn.button-secondary:focus,
button.lazychat-action-btn.button-secondary,
button.lazychat-action-btn.button-secondary.large {
    background: transparent !important;
    color: #7446f3 !important;
    border: 2px solid #7446f3 !important;
    box-shadow: none !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 12px 24px !important;
    line-height: 1 !important;
    border-radius: 8px !important;
    -webkit-border-radius: 8px !important;
    -moz-border-radius: 8px !important;
}

.lazychat-action-btn.button-secondary:hover {
    background: rgba(116, 70, 243, 0.1) !important;
    border-color: #6339d1 !important;
    color: #6339d1 !important;
    box-shadow: 0 2px 8px rgba(116, 70, 243, 0.2) !important;
    transform: translateY(-1px);
}

.lazychat-action-btn.button-secondary:active {
    transform: translateY(0);
    background: rgba(116, 70, 243, 0.15) !important;
    box-shadow: 0 1px 4px rgba(116, 70, 243, 0.2) !important;
}

.lazychat-action-btn.button-secondary .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    color: #7446f3 !important;
}

.lazychat-action-btn.button-secondary:hover .dashicons {
    color: #6339d1 !important;
}

@media (max-width: 782px) {
    .lazychat-settings-wrapper {
        padding: 0 10px;
    }
    
    .lazychat-actions-group {
        flex-direction: column;
    }
    
    .lazychat-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .lazychat-status-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lazychat-status-switch {
        align-self: flex-end;
    }
}

/* Version Display */
.lazychat-version-display {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(116, 70, 243, 0.1);
    border: 1px solid rgba(116, 70, 243, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #7446f3;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.lazychat-version-display:hover {
    background: rgba(116, 70, 243, 0.15);
    box-shadow: 0 4px 12px rgba(116, 70, 243, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .lazychat-version-display {
        bottom: 10px;
        right: 10px;
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* REST API Diagnostic Styles */
.lazychat-diagnostic-card {
    margin-bottom: 20px;
}

.lazychat-diagnostic-content {
    display: flex;
    flex-direction: column;
}

.lazychat-diagnostic-info {
    flex: 1;
}

.lazychat-diagnostic-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.lazychat-diagnostic-buttons .button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    min-height: 36px;
}

.lazychat-diagnostic-buttons .button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.lazychat-rest-api-status {
    margin-top: 15px;
}

.lazychat-rest-api-status .notice {
    padding: 15px;
    margin: 0;
    border-left: 4px solid;
}

.lazychat-rest-api-status .notice-info {
    border-left-color: #00a0d2;
    background-color: #f7fcfe;
}

.lazychat-rest-api-status .notice-success {
    border-left-color: #46b450;
    background-color: #ecf7ed;
}

.lazychat-rest-api-status .notice-warning {
    border-left-color: #ffb900;
    background-color: #fff8e5;
}

.lazychat-rest-api-status .notice-error {
    border-left-color: #dc3232;
    background-color: #fef7f7;
}

.lazychat-rest-api-status h4 {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 600;
}

.lazychat-rest-api-status p {
    margin: 5px 0;
    line-height: 1.6;
}

.lazychat-rest-api-status ul {
    margin: 10px 0;
    padding-left: 20px;
}

.lazychat-rest-api-status ul li {
    margin: 5px 0;
}

/* Spinning animation for dashicons */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dashicons.spin {
    animation: spin 1s linear infinite;
}

@media (max-width: 768px) {
    .lazychat-diagnostic-buttons {
        flex-direction: column;
    }
    
    .lazychat-diagnostic-buttons .button {
        width: 100%;
        justify-content: center;
    }
}
