/* AI Content Generator for Toast UI Editor */
.ai-gen-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    color: #c4b5fd;
    background: rgba(124, 58, 237, 0.15);
    transition: all 0.2s;
    white-space: nowrap;
}
.ai-gen-btn:hover {
    background: rgba(124, 58, 237, 0.3);
    color: #e9d5ff;
}
.ai-gen-btn i { font-size: 10px; }

/* Modal */
.ai-gen-modal {
    position: fixed;
    z-index: 9999;
    width: 400px;
    max-width: calc(100vw - 32px);
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    overflow: hidden;
}
.ai-gen-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ai-gen-modal-title {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
}
.ai-gen-modal-close {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.ai-gen-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.ai-gen-modal-body { padding: 16px; }

.ai-gen-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    color: #e2e8f0;
    font-size: 13px;
    resize: vertical;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
}
.ai-gen-input:focus {
    border-color: rgba(139, 92, 246, 0.5);
}
.ai-gen-input::placeholder { color: #4b5563; }

.ai-gen-info {
    font-size: 10px;
    color: #6b7280;
    margin-top: 6px;
}
.ai-gen-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}
.ai-gen-replace-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #94a3b8;
    cursor: pointer;
}
.ai-gen-replace-label input {
    accent-color: #7c3aed;
    margin: 0;
}
.ai-gen-submit-btn {
    padding: 7px 16px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transition: all 0.2s;
}
.ai-gen-submit-btn:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
}
.ai-gen-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Overlay backdrop */
.ai-gen-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.3);
}
