/**
 * AI Magic Metabox Styles
 */

.ai-magic-toolbar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
}

/* Tabs Navigation */
.ai-magic-tabs-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0 10px;
}

.ai-magic-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-magic-tab-btn:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.02);
}

.ai-magic-tab-btn.active {
    background: #fff;
    color: #333;
}

/* Auto Generator Tab Active State */
.ai-magic-tab-btn[data-tab="one-click"].active {
    color: #000;
    border-bottom-color: #c8ff2a;
    background: linear-gradient(to bottom, #fff 0%, #f0fcc0 100%);
}

/* Advanced Generator Tab Active State */
.ai-magic-tab-btn[data-tab="custom-generator"].active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: linear-gradient(to bottom, #fff 0%, #f0f4ff 100%);
}

.ai-magic-tab-content {
    display: none;
}

.ai-magic-tab-content.active {
    display: block;
    animation: ai-magic-fade-in 0.3s ease-out;
}

/* Main Toolbar */
.ai-magic-main-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: transparent;
}

#ai-magic-tab-custom-generator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ai-magic-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.ai-magic-logo-icon {
    font-size: 20px;
}

/* Input Area */
.ai-magic-input-area {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 4px 12px;
}

.ai-magic-main-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    padding: 8px 0;
    outline: none;
}

.ai-magic-main-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Generate Button */
.ai-magic-generate-btn {
    background: #fff;
    color: #667eea;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.ai-magic-generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ai-magic-generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Quick Actions Bar */
.ai-magic-actions-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.ai-magic-action-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-magic-action-group-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.ai-magic-action-divider {
    width: 1px;
    height: 24px;
    background: #dee2e6;
    margin: 0 8px;
}

/* Action Buttons */
.ai-magic-action-btn {
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
    color: #495057;
}

.ai-magic-action-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.ai-magic-action-btn.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.ai-magic-action-btn .icon {
    font-size: 14px;
}

/* Select Dropdowns */
.ai-magic-select {
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 6px 28px 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 6px center;
    background-repeat: no-repeat;
    background-size: 16px;
    color: #495057;
}

.ai-magic-select:hover {
    border-color: #adb5bd;
}

.ai-magic-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Expandable Options Panel */
.ai-magic-options-panel {
    display: none;
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid #e9ecef;
}

.ai-magic-options-panel.active {
    display: block;
}

.ai-magic-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.ai-magic-option-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-magic-option-label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
}

.ai-magic-option-input {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 13px;
    width: 100%;
}

.ai-magic-option-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Output Preview */
.ai-magic-output {
    display: none;
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.ai-magic-output.active {
    display: block;
}

.ai-magic-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ai-magic-output-title {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.ai-magic-output-actions {
    display: flex;
    gap: 8px;
}

.ai-magic-output-content {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
}

/* Loading State */
.ai-magic-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.ai-magic-loading.active {
    display: flex;
}

.ai-magic-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e9ecef;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: ai-magic-spin 0.8s linear infinite;
}

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

.ai-magic-loading-text {
    font-size: 14px;
    color: #6c757d;
}

/* Status Bar */
.ai-magic-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 11px;
    color: #6c757d;
}

.ai-magic-status-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-magic-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #28a745;
}

.ai-magic-status-dot.inactive {
    background: #dc3545;
}

/* Toggle Button */
.ai-magic-toggle-options {
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
}

.ai-magic-toggle-options:hover {
    color: #495057;
}

#ai-magic-tab-settings .ai-magic-options-panel {
    padding: 20px;
}

/* Responsive */
@media (max-width: 782px) {
    .ai-magic-main-bar {
        flex-wrap: wrap;
    }

    .ai-magic-input-area {
        order: 2;
        width: 100%;
    }

    .ai-magic-actions-bar {
        flex-wrap: wrap;
    }
}

/* Modal */
.ai-magic-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-magic-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: ai-magic-fade-in 0.2s ease-out;
}

@keyframes ai-magic-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-magic-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.ai-magic-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.ai-magic-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
}

.ai-magic-modal-close:hover {
    color: #333;
}

.ai-magic-modal-body {
    padding: 20px;
}

.ai-magic-preview-section {
    margin-bottom: 15px;
}

.ai-magic-preview-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
}

.ai-magic-preview-box {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #eee;
    font-size: 14px;
    color: #333;
    white-space: pre-wrap;
}

.ai-magic-preview-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-magic-preview-list li {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
}

.ai-magic-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
}

.ai-magic-btn-secondary {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    color: #555;
}

.ai-magic-btn-secondary:hover {
    background: #f1f1f1;
}

/* One-Click Full Article Section */
.ai-magic-one-click-section {
    background: #c8ff2a;
    padding: 0;
    border-radius: 0;
    color: #000;
    min-height: 200px;
}

.ai-magic-one-click-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    background: transparent;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ai-magic-one-click-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px;
}

.ai-magic-one-click-options {
    margin-top: 0;
    padding: 0 20px 20px 20px;
}

.ai-magic-one-click-header h4 {
    margin: 0;
    color: #000;
    font-size: 16px;
    font-weight: 700;
}

.ai-magic-badge-new {
    background: #000;
    color: #c8ff2a;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.ai-magic-one-click-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ai-magic-topic-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    color: #374151;
    resize: none;
    overflow: hidden;
    height: 48px;
    /* Match button height */
    line-height: 1.5;
    font-family: inherit;
}

.ai-magic-topic-input:focus {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

.ai-magic-topic-input::placeholder {
    color: #9ca3af;
}

.ai-magic-select-compact {
    padding: 0 32px 0 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px;
    color: #374151;
    height: 48px;
    line-height: 44px;
    /* Height minus borders */
}

.ai-magic-select-compact:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

.ai-magic-btn-large {
    background: #000;
    color: #c8ff2a;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ai-magic-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #1a1a1a;
}

.ai-magic-btn-large:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ai-magic-btn-large .icon {
    font-size: 18px;
}

.ai-magic-one-click-options {
    margin-top: 12px;
}

.ai-magic-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

.ai-magic-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #000;
}

/* Quick Actions */
.ai-magic-quick-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f0f4ff;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.ai-magic-quick-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
    color: #374151;
    font-weight: 500;
}

.ai-magic-quick-btn:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-1px);
}

.ai-magic-quick-btn .icon {
    font-size: 14px;
}

/* Progress Indicator */
.ai-magic-progress {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.ai-magic-progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.ai-magic-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.ai-magic-progress-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-magic-progress-status .step {
    font-size: 12px;
    color: #9ca3af;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.ai-magic-progress-status .step.active {
    background: #667eea;
    color: #fff;
}

.ai-magic-progress-status .step.completed {
    color: #10b981;
}

/* Icon Button */
.ai-magic-icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.ai-magic-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ai-magic-icon-btn .dashicons {
    color: #fff;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Titles Suggestions Modal */
.ai-magic-titles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-magic-titles-list li {
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-magic-titles-list li:hover {
    background: #f0f4ff;
    border-color: #667eea;
}

.ai-magic-titles-list li .number {
    background: #667eea;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.ai-magic-titles-list li .title-text {
    flex: 1;
    font-size: 14px;
    color: #374151;
}

/* Outline Preview */
.ai-magic-outline-preview {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Auto-insert checkbox in output area */
.ai-magic-auto-insert-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: #6b7280;
}

/* Settings Groups */
.ai-magic-settings-group {
    margin-bottom: 20px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
}

.ai-magic-settings-group:last-child {
    margin-bottom: 0;
}

.ai-magic-group-title {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

#ai-magic-tab-settings .ai-magic-options-panel {
    display: block;
    padding: 20px;
    background: #fff;
}

/* Title Suggestion Button */
.ai-magic-title-suggest-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: #1e1e1e;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    color: #c8ff2a;
    font-size: 10px;
    font-weight: 600;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    z-index: 10;
}

.ai-magic-title-suggest-btn span:first-child {
    font-size: 12px;
    line-height: 1;
}

.ai-magic-title-suggest-btn:hover {
    background: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ai-magic-title-suggest-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ai-magic-title-suggest-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

/* Title Suggestions Dropdown */
.ai-magic-title-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-width: 90vw;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 100001;
    margin-top: 4px;
    padding: 8px;
    display: none;
}

.ai-magic-title-dropdown.active {
    display: block;
    animation: ai-magic-fade-in 0.2s ease-out;
}

.ai-magic-title-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 8px;
}

.ai-magic-title-dropdown-header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.ai-magic-title-dropdown-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.ai-magic-title-dropdown-close:hover {
    color: #333;
}

.ai-magic-title-dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

.ai-magic-title-dropdown-list li {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    margin-bottom: 4px;
    border: 1px solid transparent;
}

.ai-magic-title-dropdown-list li:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

.ai-magic-title-dropdown-list li:hover .number {
    background: rgba(255, 255, 255, 0.3);
}

.ai-magic-title-dropdown-list li:hover .title-text {
    color: #fff;
}

.ai-magic-title-dropdown-list li .number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.ai-magic-title-dropdown-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 13px;
}

.ai-magic-title-dropdown-loading .ai-magic-spinner {
    margin: 0 auto 10px;
}

/* Title Container Wrapper for positioning */
#titlewrap {
    position: relative !important;
}

#titlewrap #title {
    padding-right: 70px !important;
}

/* Gutenberg Title Wrapper */
.editor-post-title__block {
    position: relative;
}

.editor-post-title__input {
    padding-right: 70px !important;
}

/* More Button */
.ai-magic-title-more-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 6px;
    color: #666;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-magic-title-more-btn:hover {
    background: #e9ecef;
    border-color: #aaa;
    color: #333;
}

.ai-magic-title-more-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* SVG in title button */
.ai-magic-title-suggest-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Inline spinner for More button */
.ai-magic-spinner-inline {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #ccc;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: ai-magic-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}